mirror of
https://github.com/pnpm/pnpm.git
synced 2026-07-25 15:07:06 -04:00
fix(windows): splat arguments for pnpx (#8608)
This commit is contained in:
6
.changeset/forty-goats-exist.md
Normal file
6
.changeset/forty-goats-exist.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
"@pnpm/plugin-commands-setup": patch
|
||||
"pnpm": patch
|
||||
---
|
||||
|
||||
The pnpx command should work correctly on Windows, when pnpm is installed via the standalone installation script [#8608](https://github.com/pnpm/pnpm/pull/8608).
|
||||
@@ -86,7 +86,7 @@ function createPnpxScripts (targetDir: string): void {
|
||||
].join('\n')
|
||||
fs.writeFileSync(path.join(targetDir, 'pnpx.cmd'), batchScript)
|
||||
|
||||
const powershellScript = 'pnpm dlx $args'
|
||||
const powershellScript = 'pnpm dlx @args'
|
||||
fs.writeFileSync(path.join(targetDir, 'pnpx.ps1'), powershellScript)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user