-
Notifications
You must be signed in to change notification settings - Fork 743
Open
Description
Node version (or tell us if you're using electron or some other framework):
last
ShellJS version (the most recent version/Github branch you see the bug on):
last
Operating system:
windows
Description of the bug:
Using exec does not terminate the command process
Example ShellJS command to reproduce the error:
const scripts = {
dev: 'vite',
predev:'scripts'
};
exec('dev', function (code, stdout, stderr) {});When I execute dev, predev will be executed first according to the life cycle of npm. I have some logical judgments in predev. If I make an error, I will exit(1) the terminal command process, but when I use shelljs.exec('dev'), When predev is executed first, the command process will not be interrupted even if there is an error
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels