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
globs are handled differently #4118
Comments
looks like yarn is not respecting the "scripts": {
"foo": "shopt -s globstar && someCommand **/src/**/*.js",
} |
Yarn doesn't do anything with globs at all. It simply passes these to We've changed the way we invoke scripts slightly so you may wanna give 1.0.2 a shot to see if it fixes your issue. If it doesn't I'd try running the following to see if all behave the same way:
|
You are probably using there is some info in this blog post: https://medium.com/@jakubsynowiec/you-should-always-quote-your-globs-in-npm-scripts-621887a2a784 |
Yes I’m using zsh. Thanks
…On Fri, Feb 16, 2018 at 17:08 Jeff Valore ***@***.***> wrote:
You are probably using zsh, aren't you? zsh uses different globbing rules
than standard sh, and by default npm and yarn spawn commands in sh
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#4118 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAAwm7pLGIbGOgffWbGx9_rSTa6t00vfks5tVgqEgaJpZM4OwuXF>
.
|
Going to close this as it's a shell implementation difference (zsh vs sh). |
Do you want to request a feature or report a bug?
What is the current behavior?
package.json
isNODE_ENV=test mocha --compilers js:babel-register --recursive ./test/**/*.test.js
; which if a run directly, it runs the tests for all my files including one directly under./test/digestor.test.js
, but when I run it viayarn test
, it only executes the test files that are at a second level of depth (in other words, it doesn't run./test/digestor.test.js
).If the current behavior is a bug, please provide the steps to reproduce.
yarn test
and see results.NODE_ENV=test mocha --compilers js:babel-register --recursive ./test/**/*.test.js
and compare results from step 3.What is the expected behavior?
Step 3 should run the same tests as step 4.
Please mention your node.js, yarn and operating system version.
OS: macOS Sierra 10.12.6
Node: 6.11.1
Yarn: 0.27.5
The text was updated successfully, but these errors were encountered: