-
Notifications
You must be signed in to change notification settings - Fork 32
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
Variables are not supported / RFC21 compatibility #184
Comments
matzeeable
changed the title
Variables are not supported
Variables are not supported / RFC21 compatibility
May 7, 2021
I'd like to see this supported as well! It makes conditional build steps of specific configuration choices based on ENV variables possible! |
Bumping this as an important feature for us as well. |
bumping |
I think I ran into this issue too:
|
@nodkz and everyone else, do it like this, this kind of setup works for me:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey!
We need to search for an alternative to the
yarn berry
script runner as it is very slow. I came across this tool, and it looks really promising and it is compatible with Yarn Berry (#137). The scripts are executed very fast! Unfortunately, I stumbled over an issue with variables. Imagine the following:We need to set the
COMPOSE_PROJECT_NAME
variable as environment variable because we want to rundocker-compose
. Is this feature currently not possible or is there another syntax we need to use?EDIT: I just found out, that you are using
cross-spawn
to spawn the command to the correct shell. Unfortunately,cross-spawn
does not support setting and reading environment variables. For this,cross-env
should be used.RFC 21 compatibility
EDIT: I also noticed that the npm variables like
npm_lifecycle_event
andnpm_package_name
are missing. Perhaps it is worth to adopt the coding of@npmcli/run-script
toultra-runner
:npm_package_*
variables and pass it to the spawn (https://github.com/npm/run-script/blob/47a4d539fb07220e7215cc0e482683b76407ef9b/lib/run-script-pkg.js#L54-L62)npm_package_*
variables (https://github.com/npm/run-script/blob/47a4d539fb07220e7215cc0e482683b76407ef9b/lib/package-envs.js#L7)Regards,
Matthew 😊
The text was updated successfully, but these errors were encountered: