-
-
Notifications
You must be signed in to change notification settings - Fork 601
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(webpack-cli): don't spawn needless shells and replace execa …
…with cross-spawn (#3146) * chore(webpack-cli): replace execa with cross-spawn Remove 9 dependencies on a production install: - execa - get-stream - human-signals - is-stream - mimic-fn - npm-run-path - onetime - signal-exit - strip-final-newline * chore(webpack-cli): don't spawn a shell when installing packages Execute install command synchronously instead of spawning a shell asynchronously. - The requested action cannot proceed until the required install completes, so I don't see an advantage to an asynchronous process - Starting the subprocess directly should be more performant. It should also be more cross-plattform and secure, since it prevents interpolations and expansions. * test: fix cross-spawn mock in install tests Mock the `sync` property. Split command into command name and argument array. * test: increase smoke tests timeout to 60 seconds
- Loading branch information
1 parent
b1ad914
commit ce74898
Showing
5 changed files
with
38 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters