Comments (6)
@noahnu I'm not sure I understand your use case here or at least I could not reproduce the issue. yvm exec
is supposed to be equivalent yarn
, and I don't think yarn my-script.js
works.
Also if I have something like
// package.json
"scripts": {
"say": "echo"
}
then I get
$ yvm exec say "some/**/*.js"
yarn run v1.22.4
$ echo 'some/**/*.js'
some/**/*.js
Done in 0.09s.
from yvm.
I was modelling it after nvm exec
with stylelint's glob option. Can put together a better repro in a bit
from yvm.
Hmm.. you're right. I still think there's an issue here, but my steps to reproduce are incorrect. I encountered this when trying to use yvm exec to run stylelint. The glob was being expanded. When I switched to use nvm exec, it worked.
I'll try put together a better example with stylelint directly.
from yvm.
I see what you mean
$ yvm exec fake './*.js'
yarn run v1.22.4
$ /workspace/yvm/node_modules/.bin/fake ./fake.js
[
'/home/gitpod/.nvm/versions/node/v12.18.3/bin/node',
'/workspace/yvm/node_modules/.bin/fake',
'./fake.js'
]
Done in 0.15s.
vs
$ yarn fake './*.js'
yarn run v1.22.4
$ /workspace/yvm/node_modules/.bin/fake './*.js'
[
'/home/gitpod/.nvm/versions/node/v12.18.3/bin/node',
'/workspace/yvm/node_modules/.bin/fake',
'./*.js'
]
Done in 0.14s.
Both of those were run by yvm
and it seems like the culprit is, as you pointed out, the bash script expansion. 🐟 shell does not have this problem, proving without a doubt that it is the BASST!
from yvm.
Wrapping it in quotes does look like it'll fix this and probably is a breaking change to modify this behaviour 🤔
from yvm.
🎉 This issue has been resolved in version 4.0.1 🎉
The release is available on GitHub release
Your semantic-release bot 📦🚀
from yvm.
Related Issues (20)
- Cannot switch yarn version HOT 1
- Calling bottle :unneeded is deprecated! There is no replacement. HOT 2
- Installing yarn with homebrew: Error: invalid option: --without-node HOT 4
- How to uninstall yvm? HOT 2
- Loading yvm.fish adds . to PATH HOT 1
- `yvm.js.org` should be updated to include deprecation notice HOT 2
- An in-range update of husky is breaking the build 🚨 HOT 2
- An in-range update of @semantic-release/changelog is breaking the build 🚨 HOT 2
- An in-range update of core-js is breaking the build 🚨 HOT 2
- Support .bash_profile or .bashrc HOT 2
- missing ) after argument list HOT 1
- create a "current" symlink HOT 2
- Support versions variants HOT 2
- yvm configure-shell does not add entry to bash_profile HOT 5
- yvm releases should be available whenever direct dependencies are updated HOT 1
- Finish moving CI over from CircleCI to Github Actions HOT 1
- Possible integration with nvm? HOT 1
- YVM fails ungracefully when git merge conflicts exist in package.json HOT 3
- Can't use engines in package.json with yarn 2 and yvm HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yvm.