mirror of
https://github.com/moltbot/moltbot.git
synced 2026-04-24 07:01:49 +00:00
fix(ci): use target-platform npm path semantics
This commit is contained in:
@@ -91,7 +91,7 @@ export function resolveNpmRunner(params = {}) {
|
||||
const env = params.env ?? process.env;
|
||||
const platform = params.platform ?? process.platform;
|
||||
const comSpec = params.comSpec ?? env.ComSpec ?? "cmd.exe";
|
||||
const pathImpl = platform === "win32" ? path.win32 : path;
|
||||
const pathImpl = platform === "win32" ? path.win32 : path.posix;
|
||||
const nodeDir = pathImpl.dirname(execPath);
|
||||
const npmToolchain = resolveToolchainNpmRunner({
|
||||
comSpec,
|
||||
|
||||
Reference in New Issue
Block a user