Skip to content

Commit e365c08

Browse files
authored
Switch from exec to execFile in get-publishable-paths-from-semver-tags (#7432)
1 parent 79e27bd commit e365c08

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/get-publishable-paths-from-semver-tags.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
// @ts-check
88

9-
import { exec } from "node:child_process";
9+
import { execFile } from "node:child_process";
1010
import { join } from "node:path";
1111
import { argv } from "node:process";
1212
import yargs from "yargs";
@@ -16,7 +16,7 @@ const args = await cli.argv;
1616
const commitish = args._[0] || "HEAD";
1717
const monorepoRootDir = join(import.meta.dirname, "..");
1818

19-
exec(`git tag --points-at ${commitish}`, async (err, stdout) => {
19+
execFile("git", ["tag", "--points-at", `${commitish}`], async (err, stdout) => {
2020
if (err) {
2121
throw err;
2222
}

0 commit comments

Comments
 (0)