Skip to content

Conversation

@nlf
Copy link
Contributor

@nlf nlf commented Feb 26, 2021

adding puka as a dependency here was an effort to make scripts defined in your package.json run in a more cross-platform compatible way, unfortunately the side effects seem to be largely undesirable.

as this is implemented today, things like expanding %Path% style environment variables is impossible, passing "" as a parameter gets lost entirely, and there are some inconsistencies in the way arguments are handled in different shells.

removing puka is a step toward being consistent instead of trying to make a script written for unix work in windows, which IMO is where our focus should lie (consistency).

References

Fixes npm/cli#2731
Fixes #19

PR-URL: #22
Credit: @nlf
Close: #22
Reviewed-by: @ruyadorno
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Windows-style environment variables in npm scripts are no longer expanded [BUG] npm start ignores empty argument on windows

3 participants