Skip to content

Commit

Permalink
chore: deps updates (#3713)
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesHenry committed Jun 7, 2023
1 parent 83f9a05 commit 16df3e9
Show file tree
Hide file tree
Showing 5 changed files with 288 additions and 366 deletions.
14 changes: 12 additions & 2 deletions integration/__tests__/lerna-exec.spec.ts
@@ -1,12 +1,22 @@
import { cliRunner, initFixtureFactory } from "@lerna/test-helpers";
import path from "path";
import pathKey from "path-key";

function getPathKey() {
if (process.platform !== "win32") {
return "PATH";
}
return (
Object.keys(process.env)
.reverse()
.find((key) => key.toUpperCase() === "PATH") || "Path"
);
}

const initFixture = initFixtureFactory(__dirname);

const EXEC_TEST_COMMAND = process.platform === "win32" ? "exec-test.cmd" : "exec-test";

const pathName = pathKey(); // PATH (POSIX) or PATH/path/Path (Windows)
const pathName = getPathKey(); // PATH (POSIX) or PATH/path/Path (Windows)
const existingPath = process.env[pathName];
const fixturePath = path.resolve(__dirname, "__fixtures__");

Expand Down

0 comments on commit 16df3e9

Please sign in to comment.