diff --git a/__patches__/@pnpm__npm-lifecycle@3.0.2.patch b/__patches__/@pnpm__npm-lifecycle@3.0.2.patch new file mode 100644 index 00000000000..6d86b46d4d0 --- /dev/null +++ b/__patches__/@pnpm__npm-lifecycle@3.0.2.patch @@ -0,0 +1,15 @@ +diff --git a/index.js b/index.js +index 931c9170414e3161a86ea6661727e0822d144f2e..59fad26304099619ed8303fd1348b9136959c150 100644 +--- a/index.js ++++ b/index.js +@@ -273,7 +273,9 @@ function runCmd_ (cmd, pkg, env, wd, opts, stage, unsafe, uid, gid, cb_) { + return + } + +- const proc = spawn(sh, [shFlag, cmd], conf, opts.log) ++ const proc = customShell ++ ? spawn(cmd, { ...conf, shell: customShell }, opts.log) ++ : spawn(sh, [shFlag, cmd], conf, opts.log) + + proc.on('error', procError) + proc.on('close', (code, signal) => { diff --git a/package.json b/package.json index 8e76d983bf8..944a717c1b3 100644 --- a/package.json +++ b/package.json @@ -109,7 +109,8 @@ "onlyBuiltDependencies": [], "patchedDependencies": { "pkg@5.8.1": "__patches__/pkg.patch", - "graceful-fs@4.2.11": "__patches__/graceful-fs@4.2.11.patch" + "graceful-fs@4.2.11": "__patches__/graceful-fs@4.2.11.patch", + "@pnpm/npm-lifecycle@3.0.2": "__patches__/@pnpm__npm-lifecycle@3.0.2.patch" }, "updateConfig": { "ignoreDependencies": [ diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 45134afc511..e666bfb4d75 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -27,6 +27,9 @@ packageExtensionsChecksum: c10f23a87945689e805208f26d04480d pnpmfileChecksum: jkgwyaxgwfm2r3i2qpv7ox7i2u patchedDependencies: + '@pnpm/npm-lifecycle@3.0.2': + hash: wqahjcytylvndqztwee3kh4hna + path: __patches__/@pnpm__npm-lifecycle@3.0.2.patch graceful-fs@4.2.11: hash: ivtm2a2cfr5pomcfbedhmr5v2q path: __patches__/graceful-fs@4.2.11.patch @@ -1167,7 +1170,7 @@ importers: version: 5.0.0 '@pnpm/npm-lifecycle': specifier: ^3.0.2 - version: 3.0.2(typanion@3.14.0) + version: 3.0.2(patch_hash=wqahjcytylvndqztwee3kh4hna)(typanion@3.14.0) '@pnpm/read-package-json': specifier: workspace:* version: link:../../pkg-manifest/read-package-json @@ -14302,7 +14305,7 @@ snapshots: '@pnpm/network.ca-file': 1.0.2 config-chain: 1.1.13 - '@pnpm/npm-lifecycle@3.0.2(typanion@3.14.0)': + '@pnpm/npm-lifecycle@3.0.2(patch_hash=wqahjcytylvndqztwee3kh4hna)(typanion@3.14.0)': dependencies: '@pnpm/byline': 1.0.0 '@pnpm/error': 6.0.0