Skip to content

Commit 871e23b

Browse files
authored
fix(bin): pass { shell: true } as option to spawn (#18)
https://nodejs.org/en/blog/vulnerability/april-2024-security-releases-2
1 parent 0da630a commit 871e23b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Diff for: bin/npm-snapshot

+5-5
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,11 @@ const version = semverUtil.stringifySemver(semver);
5252
if (!version) error("Could not create a valid version string.");
5353

5454
// Run npm verison without tagging
55-
const npm = spawn(/^win/.test(process.platform) ? "npm.cmd" : "npm", [
56-
"--no-git-tag-version",
57-
"version",
58-
version,
59-
]);
55+
const npm = spawn(
56+
/^win/.test(process.platform) ? "npm.cmd" : "npm",
57+
["--no-git-tag-version", "version", version],
58+
{ shell: true }
59+
);
6060
npm.stderr.pipe(process.stderr);
6161

6262
npm.on("close", function (code) {

0 commit comments

Comments
 (0)