Skip to content

Commit 7c6c412

Browse files
Fix pkg-pr-new not working when multiple packages were modified (#9006)
1 parent e8d0f0f commit 7c6c412

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

eng/tsp-core/pkg-pr-new.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,10 @@ const modifiedPaths = paths.filter((x) => files.some((f) => f.startsWith(x)));
1717
// eslint-disable-next-line no-console
1818
console.log("Packages", { all: paths, modified: modifiedPaths });
1919
try {
20-
execSync(`pnpx pkg-pr-new publish '${modifiedPaths.join(" ")}' --pnpm`, {
20+
execSync(`pnpx pkg-pr-new publish ${modifiedPaths.map((x) => `'${x}'`).join(" ")} --pnpm`, {
2121
stdio: "inherit",
2222
encoding: "utf-8",
23+
cwd: repoRoot,
2324
});
2425
} catch (e: any) {
2526
// eslint-disable-next-line no-console

0 commit comments

Comments
 (0)