Skip to content

Commit

Permalink
fix(create robo)
Browse files Browse the repository at this point in the history
NPM and PNPM not working on windows for mystic reasons
  • Loading branch information
Nazeofel committed May 28, 2024
1 parent 1d760cf commit 8139a1b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/giant-hotels-design.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'create-robo': patch
---

Fix NPM and PNPM
1 change: 1 addition & 0 deletions packages/create-robo/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ export function exec(command: string, options?: ExecOptions) {
const args = command.split(' ')
const childProcess = spawn(args.shift(), args, {
env: { ...process.env, FORCE_COLOR: '1' },
shell: IS_WINDOWS,
stdio: verbose ? 'pipe' : 'inherit',
...(spawnOptions ?? {})
})
Expand Down

0 comments on commit 8139a1b

Please sign in to comment.