mirror of
https://github.com/nexu-io/open-design.git
synced 2026-05-31 19:04:39 +07:00
Fix pnpm native executable invocation (#2144)
This commit is contained in:
parent
831208b823
commit
94ad2284a0
1 changed files with 11 additions and 0 deletions
|
|
@ -655,6 +655,17 @@ describe("createPackageManagerInvocation", () => {
|
|||
expect(invocation.windowsVerbatimArguments).toBeUndefined();
|
||||
});
|
||||
|
||||
it("executes native npm_execpath directly instead of loading it through Node", () => {
|
||||
setPlatform("linux");
|
||||
const invocation = createPackageManagerInvocation(["--filter", "@open-design/desktop", "build"], {
|
||||
npm_execpath: "/home/u/.local/share/pnpm/.tools/@pnpm+linux-x64/10.33.2/node_modules/@pnpm/linux-x64/pnpm",
|
||||
} as NodeJS.ProcessEnv);
|
||||
expect(invocation).toEqual({
|
||||
args: ["--filter", "@open-design/desktop", "build"],
|
||||
command: "/home/u/.local/share/pnpm/.tools/@pnpm+linux-x64/10.33.2/node_modules/@pnpm/linux-x64/pnpm",
|
||||
});
|
||||
});
|
||||
|
||||
it("uses binary npm_execpath directly on POSIX", () => {
|
||||
setPlatform("linux");
|
||||
const invocation = createPackageManagerInvocation(["install"], {
|
||||
|
|
|
|||
Loading…
Reference in a new issue