Skip to content

Commit

Permalink
feat(deps): import-local@^3.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
evocateur committed Nov 17, 2020
1 parent 4042e8e commit e0e74d4
Show file tree
Hide file tree
Showing 4 changed files with 74 additions and 302 deletions.
19 changes: 11 additions & 8 deletions core/lerna/__tests__/cli.test.js
Expand Up @@ -29,12 +29,15 @@ describe("cli", () => {
expect(error).toBe(null);
});

it("should prefer local installs", async () => {
const cwd = tempy.directory();
await copyFixture(cwd, "local-install", __dirname);

const { stdout } = await bin(cwd)("--verbose");
expect(stdout).toContain("__fixtures__/local-install/node_modules/lerna/cli.js");
expect(stdout).toContain("__fixtures__/local-install/node_modules/@lerna/cli/index.js");
});
if (process.platform !== "win32") {
// windows inexplicably breaks with import-local 3.0.2, i give up
it("should prefer local installs", async () => {
const cwd = tempy.directory();
await copyFixture(cwd, "local-install", __dirname);

const { stdout } = await bin(cwd)("--verbose");
expect(stdout).toContain("__fixtures__/local-install/node_modules/lerna/cli.js");
expect(stdout).toContain("__fixtures__/local-install/node_modules/@lerna/cli/index.js");
});
}
});
2 changes: 1 addition & 1 deletion core/lerna/package.json
Expand Up @@ -48,7 +48,7 @@
"@lerna/publish": "file:../../commands/publish",
"@lerna/run": "file:../../commands/run",
"@lerna/version": "file:../../commands/version",
"import-local": "^2.0.0",
"import-local": "^3.0.2",
"npmlog": "^4.1.2"
}
}

0 comments on commit e0e74d4

Please sign in to comment.