fix(headless): forward extraBinPaths to runLifecycleHookConcurrently (#3320)

This make value of PATH environment alwasy contains node_modules/.bin of
workspace root, despite whether lockfile is up to date or not.

close #2086
This commit is contained in:
Xingcan LAN
2021-04-08 17:09:52 +08:00
committed by GitHub
parent e12793065b
commit cbc1a827ca
2 changed files with 6 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
---
"@pnpm/headless": patch
---
fix bug that extraBinPaths does not take effect

View File

@@ -156,6 +156,7 @@ export default async (opts: HeadlessOptions) => {
const scriptsOpts = {
optional: false,
extraBinPaths: opts.extraBinPaths,
rawConfig: opts.rawConfig,
scriptShell: opts.scriptShell,
shellEmulator: opts.shellEmulator,