boltpkg / bolt

⚡️ Super-powered JavaScript project management
MIT License
2.34k stars 84 forks source link

`bolt run` is not the same as `yarn run` #183

Open marcins opened 6 years ago

marcins commented 6 years ago
Title Description
Version v0.20.7
Type Issue
node 10.7.0 (but also happened on Node 8)
Operating System macOS
Short Description bolt run is not equivalent to yarn run
Detailed description

We have a 'dev' script defined as "dev": "node scripts/dev/index.js", and scripts like "lint:css": "yarn dev lint:css",. Running yarn lint:css --bamboo passes the --bamboo option all the way to the dev script, running bolt lint:css --bamboo loses this option somewhere.

› yarn run lint:css --bamboo
yarn run v1.9.2
$ yarn dev lint:css --bamboo
$ node scripts/dev/index.js lint:css --bamboo
Running stylelint --custom-formatter ./node_modules/stylelint-junit-formatter "./src/**/*.js"  >test-reports/stylelint-css.xml
› bolt run lint:css --bamboo
⚡️   bolt v0.20.7 (node v10.7.0)
$ yarn dev lint:css
$ node scripts/dev/index.js lint:css
Running stylelint "./src/**/*.js"

It would be good if both commands were equivalent so that our users would need to know when to use bolt and when to use yarn and could just always use bolt.

ajaymathur commented 6 years ago

Related to issue https://github.com/boltpkg/bolt/issues/90

marcins commented 6 years ago

Thanks @ajaymathur - I saw that issue but didn't make the connection that it was the related.

sesam commented 4 years ago

With #90 closed, maybe this should also be closed? Then maybe open a separate issue about not passing -- onward to yarn, as yarn doesn't want the --