Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Passing additional args breaks scripts #6

Open
ericclemmons opened this issue Jul 11, 2016 · 0 comments · May be fixed by #21
Open

Passing additional args breaks scripts #6

ericclemmons opened this issue Jul 11, 2016 · 0 comments · May be fixed by #21
Assignees
Labels

Comments

@ericclemmons
Copy link
Owner

package.json:

{
  "test": "per-env",
  "test:development": "mocha --watch",
  "test:test": "mocha"
}

Breaks:

$ npm test -- --grep api

> @terse/webpack@0.0.5 test /Users/Eric/Projects/ericclemmons/terse-webpack
> per-env "--grep" "api"


> @terse/webpack@0.0.5 test:development /Users/Eric/Projects/ericclemmons/terse-webpack
> mocha --watch "api"

/Users/Eric/Projects/ericclemmons/terse-webpack/node_modules/mocha/lib/utils.js:634
        throw new Error("cannot resolve path (or pattern) '" + path + "'");
        ^

Error: cannot resolve path (or pattern) 'api'

Works:

$ npm run test:development -- --grep api
@ericclemmons ericclemmons self-assigned this Jul 11, 2016
jackjocross added a commit to jackjocross/per-env that referenced this issue Sep 7, 2017
@lrills lrills linked a pull request May 4, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant