Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/actions/install-update.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ module.exports = function hydrator (params, callback) {
localPnpm = true
}
catch { /* noop */ }
let cmd = localPnpm ? `npx pnpm i ${prodFlag}` : `pnpm i ${prodFlag}`
let cmd = localPnpm ? `npx pnpm --config.node-linker=hoisted i ${prodFlag}` : `pnpm --config.node-linker=hoisted i ${prodFlag}`
exec(cmd, options, callback)
}
else if (isYarn) {
Expand All @@ -120,7 +120,7 @@ module.exports = function hydrator (params, callback) {
else if (isJs && !installing) {
if (isPnpm) {
let localPnpm = exists(join(cwd, 'node_modules', 'pnpm'))
let cmd = localPnpm ? 'npx pnpm update' : 'pnpm update'
let cmd = localPnpm ? 'npx pnpm --config.node-linker=hoisted update' : 'pnpm --config.node-linker=hoisted update'
exec(cmd, options, callback)
}
else if (isYarn) {
Expand All @@ -146,8 +146,8 @@ module.exports = function hydrator (params, callback) {
let arch = lambda.config.architecture === 'arm64' ? 'manylinux2014_aarch64' : 'manylinux2014_x86_64'
let ver = lambda.config.runtime.split('python')[1]
flags = '--only-binary=:all: ' +
`--platform=${arch} ` +
`--python-version ${ver} `
`--platform=${arch} ` +
`--python-version ${ver} `
// Reset flags if installing from Sandbox
if (local) flags = ''

Expand Down