Skip to content

fix: package.main with -- arguments#1773

Merged
remy merged 3 commits intomasterfrom
fix/1758
Oct 4, 2020
Merged

fix: package.main with -- arguments#1773
remy merged 3 commits intomasterfrom
fix/1758

Conversation

@remy
Copy link
Copy Markdown
Owner

@remy remy commented Oct 4, 2020

Fixes #1758

The combination of using a package.main (which sets the script position to index zero) and using the -- stop slurp meant that the arguments had the script appended to the end instead of prepended to the start. The net result meant that when the script was forked, it would drop the first user arg.

See diff for details of the fix - a simple check against null.

remy added 3 commits October 4, 2020 12:52
Fixes #1758

The combination of using a package.main (which sets the script
position to index zero) and using the -- stop slurp meant that
the arguments had the script appended to the end instead of
prepended to the start. The net result meant that when the script
was forked, it would drop the first user arg.

See diff for details of the fix - a simple check against null.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

nodemon .\src\server.js first second vs nodemon first second help...

1 participant