Skip to content

Commit

Permalink
fix(vp-update): fix yarn berry registry command
Browse files Browse the repository at this point in the history
  • Loading branch information
Mister-Hope committed May 16, 2024
1 parent 0976303 commit 4298469
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tools/vp-update/src/utils/registry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ export const getRegistry = (packageManager: PackageManager): string => {
.stdout.toString()
.startsWith('1')
)
return spawnSync(`${packageManager} config get npmRegistryServer`)
return spawnSync(`${packageManager} config get npmRegistryServer`, {
shell: true,
})
.stdout.toString()
.trim()
.replace(/\/?$/, '/')
Expand Down

0 comments on commit 4298469

Please sign in to comment.