Skip to content

Commit bb69432

Browse files
committed
fix: add shell option for pnpm spawn on Windows
Fixes ENOENT error when spawning pnpm on Windows in build script.
1 parent da85f25 commit bb69432

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

scripts/build.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,9 @@ async function buildTypes(options = {}) {
100100
commands.push({
101101
args: ['exec', 'tsgo', '--project', '.config/tsconfig.dts.json'],
102102
command: 'pnpm',
103+
options: {
104+
...(process.platform === 'win32' && { shell: true }),
105+
},
103106
})
104107

105108
const exitCode = await runSequence(commands)

0 commit comments

Comments
 (0)