Skip to content

Commit 7140bf7

Browse files
committed
add pnpm CI=true
1 parent f2b6de3 commit 7140bf7

2 files changed

Lines changed: 14 additions & 2 deletions

File tree

changelog.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# Architect Hydrate changelog
22
---
3+
## [5.0.3]
4+
5+
### Fixed
6+
7+
- pnpm install and update commands now use `--config.node-linker=hoisted` to produce a flat `node_modules` layout compatible with AWS Lambda (which does not support symlinks)
8+
- pnpm commands now pass `CI=true` in the environment to prevent interactive prompts in non-TTY contexts
9+
10+
---
11+
312

413
## [5.0.0]
514

src/actions/install-update.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,8 @@ module.exports = function hydrator (params, callback) {
9898
}
9999
catch { /* noop */ }
100100
let cmd = localPnpm ? `npx pnpm --config.node-linker=hoisted i ${prodFlag}` : `pnpm --config.node-linker=hoisted i ${prodFlag}`
101-
exec(cmd, options, callback)
101+
let pnpmOptions = { ...options, env: { ...(options.env || process.env), CI: 'true' } }
102+
exec(cmd, pnpmOptions, callback)
102103
}
103104
else if (isYarn) {
104105
let localYarn
@@ -121,12 +122,14 @@ module.exports = function hydrator (params, callback) {
121122
if (isPnpm) {
122123
let localPnpm = exists(join(cwd, 'node_modules', 'pnpm'))
123124
let cmd = localPnpm ? 'npx pnpm --config.node-linker=hoisted update' : 'pnpm update'
124-
exec(cmd, options, callback)
125+
let pnpmOptions = { ...options, env: { ...(options.env || process.env), CI: 'true' } }
126+
exec(cmd, pnpmOptions, callback)
125127
}
126128
else if (isYarn) {
127129
let localYarn = exists(join(cwd, 'node_modules', 'yarn'))
128130
let cmd = localYarn ? 'npx yarn upgrade' : 'yarn upgrade'
129131
exec(cmd, options, callback)
132+
130133
}
131134
else {
132135
exec(`npm update`, options, callback)

0 commit comments

Comments
 (0)