Skip to content

Commit f2b6de3

Browse files
committed
pnpm config command
1 parent 2b99a09 commit f2b6de3

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/actions/install-update.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ module.exports = function hydrator (params, callback) {
9797
localPnpm = true
9898
}
9999
catch { /* noop */ }
100-
let cmd = localPnpm ? `npx pnpm i ${prodFlag}` : `pnpm i ${prodFlag}`
100+
let cmd = localPnpm ? `npx pnpm --config.node-linker=hoisted i ${prodFlag}` : `pnpm --config.node-linker=hoisted i ${prodFlag}`
101101
exec(cmd, options, callback)
102102
}
103103
else if (isYarn) {
@@ -120,7 +120,7 @@ module.exports = function hydrator (params, callback) {
120120
else if (isJs && !installing) {
121121
if (isPnpm) {
122122
let localPnpm = exists(join(cwd, 'node_modules', 'pnpm'))
123-
let cmd = localPnpm ? 'npx pnpm update' : 'pnpm update'
123+
let cmd = localPnpm ? 'npx pnpm --config.node-linker=hoisted update' : 'pnpm update'
124124
exec(cmd, options, callback)
125125
}
126126
else if (isYarn) {
@@ -146,8 +146,8 @@ module.exports = function hydrator (params, callback) {
146146
let arch = lambda.config.architecture === 'arm64' ? 'manylinux2014_aarch64' : 'manylinux2014_x86_64'
147147
let ver = lambda.config.runtime.split('python')[1]
148148
flags = '--only-binary=:all: ' +
149-
`--platform=${arch} ` +
150-
`--python-version ${ver} `
149+
`--platform=${arch} ` +
150+
`--python-version ${ver} `
151151
// Reset flags if installing from Sandbox
152152
if (local) flags = ''
153153

0 commit comments

Comments
 (0)