mirror of
https://github.com/discourse/discourse.git
synced 2025-04-17 17:29:04 +08:00
DEV: Improve pnpmfile workspace workaround (#29881)
Some setups have pnpm installed as `pnpm.cjs`, so the `endsWith` check wasn't working
This commit is contained in:
parent
250a145361
commit
fe88e2239d
@ -31,7 +31,9 @@ if (
|
||||
"> pnpm was run inside a plugin directory. Re-executing with --ignore-workspace..."
|
||||
);
|
||||
|
||||
const indexOfPnpm = process.argv.findIndex((a) => a.endsWith("pnpm"));
|
||||
const indexOfPnpm = process.argv.findIndex(
|
||||
(a) => a.includes("/pnpm") || a.endsWith("pnpm")
|
||||
);
|
||||
const newArgs = [...process.argv];
|
||||
newArgs.splice(indexOfPnpm + 1, 0, "--ignore-workspace");
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user