Skip to content

Commit 7b1d8d5

Browse files
committed
chore: fix buildTs.js crashing on paths containing spaces
1 parent 46436a1 commit 7b1d8d5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/buildTs.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ const packagesWithTs = packages.filter((p) =>
2121
);
2222

2323
const args = [
24-
path.resolve(
24+
'"' + path.resolve(
2525
require.resolve('typescript/package.json'),
2626
'..',
2727
require('typescript/package.json').bin.tsc,
28-
),
28+
) + '"',
2929
'-b',
30-
...packagesWithTs,
30+
...packagesWithTs.map(p => '"' + p + '"'),
3131
...process.argv.slice(2),
3232
];
3333

0 commit comments

Comments
 (0)