From cbc1a827caf63dec887db0f7cd266da4e055c81a Mon Sep 17 00:00:00 2001 From: Xingcan LAN Date: Thu, 8 Apr 2021 17:09:52 +0800 Subject: [PATCH] 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 --- .changeset/nasty-lizards-dance.md | 5 +++++ packages/headless/src/index.ts | 1 + 2 files changed, 6 insertions(+) create mode 100644 .changeset/nasty-lizards-dance.md diff --git a/.changeset/nasty-lizards-dance.md b/.changeset/nasty-lizards-dance.md new file mode 100644 index 0000000000..445db2b023 --- /dev/null +++ b/.changeset/nasty-lizards-dance.md @@ -0,0 +1,5 @@ +--- +"@pnpm/headless": patch +--- + +fix bug that extraBinPaths does not take effect diff --git a/packages/headless/src/index.ts b/packages/headless/src/index.ts index f5fa3c4427..85c55e6e97 100644 --- a/packages/headless/src/index.ts +++ b/packages/headless/src/index.ts @@ -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,