-
-
Notifications
You must be signed in to change notification settings - Fork 242
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
Yarn and placeholder arguments #130
Comments
Hi here, I confirm, I got this issue when using the latest versions of Yarn since the v1. For now, we still have to use these arguments in scripts and wrap them with the script between
Run |
Its very unfortunate yarn has decided to diverge on behavior here. |
Made my own yall-scripts tool specifically to address this. It's yarn-friendly, lightweight and does the job. |
A partial workaround for this is to use
Then |
Yup, works for me with yarn 1.22.19 on linux: I want to run yarn start --port 8234 --cors And my scripts are: "start": "run-s build 'serve {@}' --",
"serve": "http-server bundles", The trailing |
It's currently working fine, but when using the placeholder for arguments with yarn, you get the following warning:
My scripts:
Yarn warning:
$ yarn build:ssr --env=dev warning From Yarn 1.0 onwards, scripts don't require "--" for options to be forwarded. In a future version, any explicit "--" will be forwarded as-is to the scripts.
It might become a problem in the next versions to come.
If I don't use the
--
, as you don't need them in yarn, npm-run-all won't pass the arguments.The text was updated successfully, but these errors were encountered: