Skip to content

Commit ac1cafe

Browse files
authored
fix(nextjs-config): fix windows execution (#2337)
1 parent b1f0c3c commit ac1cafe

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.changeset/thin-hoops-fix.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@posthog/nextjs-config': patch
3+
---
4+
5+
fix posthog-cli execution on windows

packages/nextjs-config/src/utils.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ async function callPosthogCli(args: string[], env: NodeJS.ProcessEnv, verbose: b
9191
}
9292

9393
const child = spawn(binaryLocation, [...args], {
94+
shell: true,
9495
stdio: verbose ? 'inherit' : 'ignore',
9596
env,
9697
cwd: process.cwd(),

0 commit comments

Comments
 (0)