diff --git a/CHANGELOG.md b/CHANGELOG.md index 056d47b8d5..d2d0496cc0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.0.0-alpha.1](https://github.com/lerna/lerna/compare/v5.6.2...v6.0.0-alpha.1) (2022-10-09) + +# [6.0.0-alpha.0](https://github.com/lerna/lerna/compare/v5.6.1...v6.0.0-alpha.0) (2022-10-07) + +**Note:** Version bump only for package lerna-monorepo + ## [5.6.2](https://github.com/lerna/lerna/compare/v5.6.1...v5.6.2) (2022-10-09) ### Bug Fixes diff --git a/__fixtures__/cycle-intersection/lerna.json b/__fixtures__/cycle-intersection/lerna.json index 743ceadeaa..b565238e10 100644 --- a/__fixtures__/cycle-intersection/lerna.json +++ b/__fixtures__/cycle-intersection/lerna.json @@ -1,4 +1,5 @@ { "version": "1.0.0", - "packages": ["packages/*"] + "packages": ["packages/*"], + "useNx": false } diff --git a/__fixtures__/cycle-separate/lerna.json b/__fixtures__/cycle-separate/lerna.json index 743ceadeaa..b565238e10 100644 --- a/__fixtures__/cycle-separate/lerna.json +++ b/__fixtures__/cycle-separate/lerna.json @@ -1,4 +1,5 @@ { "version": "1.0.0", - "packages": ["packages/*"] + "packages": ["packages/*"], + "useNx": false } diff --git a/__fixtures__/toposort/lerna.json b/__fixtures__/toposort/lerna.json index 743ceadeaa..b565238e10 100644 --- a/__fixtures__/toposort/lerna.json +++ b/__fixtures__/toposort/lerna.json @@ -1,4 +1,5 @@ { "version": "1.0.0", - "packages": ["packages/*"] + "packages": ["packages/*"], + "useNx": false } diff --git a/commands/add/CHANGELOG.md b/commands/add/CHANGELOG.md index 9b1008e14c..adac5e6e27 100644 --- a/commands/add/CHANGELOG.md +++ b/commands/add/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.0.0-alpha.1](https://github.com/lerna/lerna/compare/v5.6.2...v6.0.0-alpha.1) (2022-10-09) + +# [6.0.0-alpha.0](https://github.com/lerna/lerna/compare/v5.6.1...v6.0.0-alpha.0) (2022-10-07) + +**Note:** Version bump only for package @lerna/add + ## [5.6.2](https://github.com/lerna/lerna/compare/v5.6.1...v5.6.2) (2022-10-09) **Note:** Version bump only for package @lerna/add diff --git a/commands/add/package.json b/commands/add/package.json index dc46f126a9..4f5ecff67f 100644 --- a/commands/add/package.json +++ b/commands/add/package.json @@ -1,6 +1,6 @@ { "name": "@lerna/add", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "description": "Add a dependency to matched packages", "keywords": [ "lerna", diff --git a/commands/bootstrap/CHANGELOG.md b/commands/bootstrap/CHANGELOG.md index 1869768e77..e8b7f26300 100644 --- a/commands/bootstrap/CHANGELOG.md +++ b/commands/bootstrap/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.0.0-alpha.1](https://github.com/lerna/lerna/compare/v5.6.2...v6.0.0-alpha.1) (2022-10-09) + +# [6.0.0-alpha.0](https://github.com/lerna/lerna/compare/v5.6.1...v6.0.0-alpha.0) (2022-10-07) + +**Note:** Version bump only for package @lerna/bootstrap + ## [5.6.2](https://github.com/lerna/lerna/compare/v5.6.1...v5.6.2) (2022-10-09) ### Bug Fixes diff --git a/commands/bootstrap/__tests__/__fixtures__/ci/lerna.json b/commands/bootstrap/__tests__/__fixtures__/ci/lerna.json index 743ceadeaa..b565238e10 100644 --- a/commands/bootstrap/__tests__/__fixtures__/ci/lerna.json +++ b/commands/bootstrap/__tests__/__fixtures__/ci/lerna.json @@ -1,4 +1,5 @@ { "version": "1.0.0", - "packages": ["packages/*"] + "packages": ["packages/*"], + "useNx": false } diff --git a/commands/bootstrap/__tests__/__fixtures__/pnpm/lerna.json b/commands/bootstrap/__tests__/__fixtures__/pnpm/lerna.json index de57bb2a7a..1e6a046721 100644 --- a/commands/bootstrap/__tests__/__fixtures__/pnpm/lerna.json +++ b/commands/bootstrap/__tests__/__fixtures__/pnpm/lerna.json @@ -1,6 +1,5 @@ { "$schema": "node_modules/lerna/schemas/lerna-schema.json", - "useNx": true, "useWorkspaces": true, "version": "1.0.0", "npmClient": "pnpm" diff --git a/commands/bootstrap/package.json b/commands/bootstrap/package.json index 2f1084a558..82b35c1a65 100644 --- a/commands/bootstrap/package.json +++ b/commands/bootstrap/package.json @@ -1,6 +1,6 @@ { "name": "@lerna/bootstrap", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "description": "Link local packages together and install remaining package dependencies", "keywords": [ "lerna", diff --git a/commands/changed/CHANGELOG.md b/commands/changed/CHANGELOG.md index 64802c1518..20c70c1cbb 100644 --- a/commands/changed/CHANGELOG.md +++ b/commands/changed/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.0.0-alpha.1](https://github.com/lerna/lerna/compare/v5.6.2...v6.0.0-alpha.1) (2022-10-09) + +# [6.0.0-alpha.0](https://github.com/lerna/lerna/compare/v5.6.1...v6.0.0-alpha.0) (2022-10-07) + +**Note:** Version bump only for package @lerna/changed + ## [5.6.2](https://github.com/lerna/lerna/compare/v5.6.1...v5.6.2) (2022-10-09) **Note:** Version bump only for package @lerna/changed diff --git a/commands/changed/package.json b/commands/changed/package.json index 0d53add03e..7a0c05034f 100644 --- a/commands/changed/package.json +++ b/commands/changed/package.json @@ -1,6 +1,6 @@ { "name": "@lerna/changed", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "description": "List local packages that have changed since the last tagged release", "keywords": [ "lerna", diff --git a/commands/clean/CHANGELOG.md b/commands/clean/CHANGELOG.md index 422f28b10b..b38a6a9399 100644 --- a/commands/clean/CHANGELOG.md +++ b/commands/clean/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.0.0-alpha.1](https://github.com/lerna/lerna/compare/v5.6.2...v6.0.0-alpha.1) (2022-10-09) + +# [6.0.0-alpha.0](https://github.com/lerna/lerna/compare/v5.6.1...v6.0.0-alpha.0) (2022-10-07) + +**Note:** Version bump only for package @lerna/clean + ## [5.6.2](https://github.com/lerna/lerna/compare/v5.6.1...v5.6.2) (2022-10-09) **Note:** Version bump only for package @lerna/clean diff --git a/commands/clean/package.json b/commands/clean/package.json index 1a4ec936bc..e79687fb3c 100644 --- a/commands/clean/package.json +++ b/commands/clean/package.json @@ -1,6 +1,6 @@ { "name": "@lerna/clean", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "description": "Remove the node_modules directory from all packages", "keywords": [ "lerna", diff --git a/commands/create/CHANGELOG.md b/commands/create/CHANGELOG.md index d1568f6484..2be9607193 100644 --- a/commands/create/CHANGELOG.md +++ b/commands/create/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.0.0-alpha.1](https://github.com/lerna/lerna/compare/v5.6.2...v6.0.0-alpha.1) (2022-10-09) + +# [6.0.0-alpha.0](https://github.com/lerna/lerna/compare/v5.6.1...v6.0.0-alpha.0) (2022-10-07) + +**Note:** Version bump only for package @lerna/create + ## [5.6.2](https://github.com/lerna/lerna/compare/v5.6.1...v5.6.2) (2022-10-09) ### Bug Fixes diff --git a/commands/create/package.json b/commands/create/package.json index 916b01f65c..31e681bacd 100644 --- a/commands/create/package.json +++ b/commands/create/package.json @@ -1,6 +1,6 @@ { "name": "@lerna/create", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "description": "Create a new lerna-managed package", "keywords": [ "lerna", diff --git a/commands/diff/CHANGELOG.md b/commands/diff/CHANGELOG.md index 03af5a7a20..1ed6064dc1 100644 --- a/commands/diff/CHANGELOG.md +++ b/commands/diff/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.0.0-alpha.1](https://github.com/lerna/lerna/compare/v5.6.2...v6.0.0-alpha.1) (2022-10-09) + +# [6.0.0-alpha.0](https://github.com/lerna/lerna/compare/v5.6.1...v6.0.0-alpha.0) (2022-10-07) + +**Note:** Version bump only for package @lerna/diff + ## [5.6.2](https://github.com/lerna/lerna/compare/v5.6.1...v5.6.2) (2022-10-09) **Note:** Version bump only for package @lerna/diff diff --git a/commands/diff/package.json b/commands/diff/package.json index 893701def3..5a2d7371f1 100644 --- a/commands/diff/package.json +++ b/commands/diff/package.json @@ -1,6 +1,6 @@ { "name": "@lerna/diff", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "description": "Diff all packages or a single package since the last release", "keywords": [ "lerna", diff --git a/commands/exec/CHANGELOG.md b/commands/exec/CHANGELOG.md index fbcfe10fc7..dacc97b0c7 100644 --- a/commands/exec/CHANGELOG.md +++ b/commands/exec/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.0.0-alpha.1](https://github.com/lerna/lerna/compare/v5.6.2...v6.0.0-alpha.1) (2022-10-09) + +# [6.0.0-alpha.0](https://github.com/lerna/lerna/compare/v5.6.1...v6.0.0-alpha.0) (2022-10-07) + +**Note:** Version bump only for package @lerna/exec + ## [5.6.2](https://github.com/lerna/lerna/compare/v5.6.1...v5.6.2) (2022-10-09) **Note:** Version bump only for package @lerna/exec diff --git a/commands/exec/package.json b/commands/exec/package.json index d7b35f02b8..baef0eb3fc 100644 --- a/commands/exec/package.json +++ b/commands/exec/package.json @@ -1,6 +1,6 @@ { "name": "@lerna/exec", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "description": "Execute an arbitrary command in each package", "keywords": [ "lerna", diff --git a/commands/import/CHANGELOG.md b/commands/import/CHANGELOG.md index 9476e75ba1..352dd05ed5 100644 --- a/commands/import/CHANGELOG.md +++ b/commands/import/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.0.0-alpha.1](https://github.com/lerna/lerna/compare/v5.6.2...v6.0.0-alpha.1) (2022-10-09) + +# [6.0.0-alpha.0](https://github.com/lerna/lerna/compare/v5.6.1...v6.0.0-alpha.0) (2022-10-07) + +**Note:** Version bump only for package @lerna/import + ## [5.6.2](https://github.com/lerna/lerna/compare/v5.6.1...v5.6.2) (2022-10-09) **Note:** Version bump only for package @lerna/import diff --git a/commands/import/package.json b/commands/import/package.json index 5fed777973..3eee49828e 100644 --- a/commands/import/package.json +++ b/commands/import/package.json @@ -1,6 +1,6 @@ { "name": "@lerna/import", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "description": "Import a package into the monorepo with commit history", "keywords": [ "lerna", diff --git a/commands/info/CHANGELOG.md b/commands/info/CHANGELOG.md index e4f9dbac3f..a41b8c107c 100644 --- a/commands/info/CHANGELOG.md +++ b/commands/info/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.0.0-alpha.1](https://github.com/lerna/lerna/compare/v5.6.2...v6.0.0-alpha.1) (2022-10-09) + +# [6.0.0-alpha.0](https://github.com/lerna/lerna/compare/v5.6.1...v6.0.0-alpha.0) (2022-10-07) + +**Note:** Version bump only for package @lerna/info + ## [5.6.2](https://github.com/lerna/lerna/compare/v5.6.1...v5.6.2) (2022-10-09) **Note:** Version bump only for package @lerna/info diff --git a/commands/info/package.json b/commands/info/package.json index e5a6b1fb71..ec61043d69 100644 --- a/commands/info/package.json +++ b/commands/info/package.json @@ -1,6 +1,6 @@ { "name": "@lerna/info", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "description": "Prints local environment information", "keywords": [ "lerna", diff --git a/commands/init/CHANGELOG.md b/commands/init/CHANGELOG.md index b2782c1a9d..095863cdc6 100644 --- a/commands/init/CHANGELOG.md +++ b/commands/init/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.0.0-alpha.1](https://github.com/lerna/lerna/compare/v5.6.2...v6.0.0-alpha.1) (2022-10-09) + +# [6.0.0-alpha.0](https://github.com/lerna/lerna/compare/v5.6.1...v6.0.0-alpha.0) (2022-10-07) + +**Note:** Version bump only for package @lerna/init + ## [5.6.2](https://github.com/lerna/lerna/compare/v5.6.1...v5.6.2) (2022-10-09) **Note:** Version bump only for package @lerna/init diff --git a/commands/init/__tests__/init-command.test.js b/commands/init/__tests__/init-command.test.js index b66cdeb0af..f226cfaf59 100644 --- a/commands/init/__tests__/init-command.test.js +++ b/commands/init/__tests__/init-command.test.js @@ -42,7 +42,6 @@ describe("InitCommand", () => { expect(lernaJson).toMatchInlineSnapshot(` Object { "$schema": "node_modules/lerna/schemas/lerna-schema.json", - "useNx": true, "useWorkspaces": true, "version": "0.0.0", } @@ -137,7 +136,6 @@ describe("InitCommand", () => { expect(lernaJson).toMatchInlineSnapshot(` Object { "$schema": "node_modules/lerna/schemas/lerna-schema.json", - "useNx": true, "useWorkspaces": true, "version": "0.0.0", } @@ -279,7 +277,7 @@ describe("InitCommand", () => { describe("when lerna.json exists", () => { describe("when useWorkspaces is false or missing", () => { - it("updates to explicitly set useNx, $schema, and packages", async () => { + it("updates to explicitly set $schema, and packages", async () => { const testDir = await initFixture("has-lerna"); const lernaJsonPath = path.join(testDir, "lerna.json"); @@ -296,7 +294,6 @@ describe("InitCommand", () => { "packages": Array [ "packages/*", ], - "useNx": false, "useWorkspaces": false, "version": "1.2.3", } @@ -342,7 +339,7 @@ describe("InitCommand", () => { }); describe("when useNx is false", () => { - it("preserves useNx false and does not add nx as dependency", async () => { + it("preserves useNx false", async () => { const testDir = await initFixture("has-lerna"); const lernaJsonPath = path.join(testDir, "lerna.json"); @@ -379,7 +376,7 @@ describe("InitCommand", () => { }); describe("when useNx is true", () => { - it("preserves useNx true", async () => { + it("removes useNx true as it would do nothing", async () => { const testDir = await initFixture("has-lerna"); const lernaJsonPath = path.join(testDir, "lerna.json"); @@ -397,7 +394,6 @@ describe("InitCommand", () => { "packages": Array [ "packages/*", ], - "useNx": true, "useWorkspaces": false, "version": "1.2.3", } @@ -407,7 +403,7 @@ describe("InitCommand", () => { }); describe("when re-initializing with --exact", () => { - it("sets lerna.json command.init.exact to true and explicitly sets useNx, useWorkspaces, $schema, and packages", async () => { + it("sets lerna.json command.init.exact to true and explicitly sets useWorkspaces, $schema, and packages", async () => { const testDir = await initFixture("updates"); const lernaJsonPath = path.join(testDir, "lerna.json"); const pkgJsonPath = path.join(testDir, "package.json"); @@ -444,7 +440,6 @@ describe("InitCommand", () => { "packages": Array [ "packages/*", ], - "useNx": false, "useWorkspaces": false, "version": "1.2.3", } diff --git a/commands/init/index.js b/commands/init/index.js index 8773c775a6..62ffc51377 100644 --- a/commands/init/index.js +++ b/commands/init/index.js @@ -69,7 +69,7 @@ class InitCommand extends Command { const hasExistingLernaConfig = !!this.project.version; const hasExistingPackageJson = !!this.project.manifest; - const useNx = !hasExistingLernaConfig || this.project.config.useNx === true; + const useNx = !hasExistingLernaConfig || this.project.config.useNx !== false; const useWorkspaces = !hasExistingLernaConfig || this.project.config.useWorkspaces === true; let chain = Promise.resolve(); @@ -162,9 +162,10 @@ class InitCommand extends Command { Object.assign(this.project.config, { $schema: "node_modules/lerna/schemas/lerna-schema.json", - useNx, useWorkspaces, version, + // Only set if explicitly disabling + useNx: useNx === false ? false : undefined, }); return this.project.serializeConfig(); diff --git a/commands/init/package.json b/commands/init/package.json index 33c9dd894c..897c8bff64 100644 --- a/commands/init/package.json +++ b/commands/init/package.json @@ -1,6 +1,6 @@ { "name": "@lerna/init", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "description": "Create a new Lerna repo or upgrade an existing repo to the current version of Lerna", "keywords": [ "lerna", diff --git a/commands/link/CHANGELOG.md b/commands/link/CHANGELOG.md index 689b391d64..7160195d51 100644 --- a/commands/link/CHANGELOG.md +++ b/commands/link/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.0.0-alpha.1](https://github.com/lerna/lerna/compare/v5.6.2...v6.0.0-alpha.1) (2022-10-09) + +# [6.0.0-alpha.0](https://github.com/lerna/lerna/compare/v5.6.1...v6.0.0-alpha.0) (2022-10-07) + +**Note:** Version bump only for package @lerna/link + ## [5.6.2](https://github.com/lerna/lerna/compare/v5.6.1...v5.6.2) (2022-10-09) **Note:** Version bump only for package @lerna/link diff --git a/commands/link/__tests__/__fixtures__/pnpm/lerna.json b/commands/link/__tests__/__fixtures__/pnpm/lerna.json index de57bb2a7a..1e6a046721 100644 --- a/commands/link/__tests__/__fixtures__/pnpm/lerna.json +++ b/commands/link/__tests__/__fixtures__/pnpm/lerna.json @@ -1,6 +1,5 @@ { "$schema": "node_modules/lerna/schemas/lerna-schema.json", - "useNx": true, "useWorkspaces": true, "version": "1.0.0", "npmClient": "pnpm" diff --git a/commands/link/package.json b/commands/link/package.json index 4da9aa57b3..393f1984df 100644 --- a/commands/link/package.json +++ b/commands/link/package.json @@ -1,6 +1,6 @@ { "name": "@lerna/link", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "description": "Symlink together all packages that are dependencies of each other", "keywords": [ "lerna", diff --git a/commands/list/CHANGELOG.md b/commands/list/CHANGELOG.md index eccc7243aa..a1af9d82bc 100644 --- a/commands/list/CHANGELOG.md +++ b/commands/list/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.0.0-alpha.1](https://github.com/lerna/lerna/compare/v5.6.2...v6.0.0-alpha.1) (2022-10-09) + +# [6.0.0-alpha.0](https://github.com/lerna/lerna/compare/v5.6.1...v6.0.0-alpha.0) (2022-10-07) + +**Note:** Version bump only for package @lerna/list + ## [5.6.2](https://github.com/lerna/lerna/compare/v5.6.1...v5.6.2) (2022-10-09) **Note:** Version bump only for package @lerna/list diff --git a/commands/list/package.json b/commands/list/package.json index 4053f9553f..d55a9a8d00 100644 --- a/commands/list/package.json +++ b/commands/list/package.json @@ -1,6 +1,6 @@ { "name": "@lerna/list", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "description": "List local packages", "keywords": [ "lerna", diff --git a/commands/publish/CHANGELOG.md b/commands/publish/CHANGELOG.md index 9cecd5ff66..f979172c81 100644 --- a/commands/publish/CHANGELOG.md +++ b/commands/publish/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.0.0-alpha.1](https://github.com/lerna/lerna/compare/v5.6.2...v6.0.0-alpha.1) (2022-10-09) + +# [6.0.0-alpha.0](https://github.com/lerna/lerna/compare/v5.6.1...v6.0.0-alpha.0) (2022-10-07) + +**Note:** Version bump only for package @lerna/publish + ## [5.6.2](https://github.com/lerna/lerna/compare/v5.6.1...v5.6.2) (2022-10-09) **Note:** Version bump only for package @lerna/publish diff --git a/commands/publish/package.json b/commands/publish/package.json index 1fdf4033b0..0318644a49 100644 --- a/commands/publish/package.json +++ b/commands/publish/package.json @@ -1,6 +1,6 @@ { "name": "@lerna/publish", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "description": "Publish packages in the current project", "keywords": [ "lerna", diff --git a/commands/run/CHANGELOG.md b/commands/run/CHANGELOG.md index bdd7c57fb7..734ab48adb 100644 --- a/commands/run/CHANGELOG.md +++ b/commands/run/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.0.0-alpha.1](https://github.com/lerna/lerna/compare/v5.6.2...v6.0.0-alpha.1) (2022-10-09) + +# [6.0.0-alpha.0](https://github.com/lerna/lerna/compare/v5.6.1...v6.0.0-alpha.0) (2022-10-07) + +**Note:** Version bump only for package @lerna/run + ## [5.6.2](https://github.com/lerna/lerna/compare/v5.6.1...v5.6.2) (2022-10-09) **Note:** Version bump only for package @lerna/run diff --git a/commands/run/README.md b/commands/run/README.md index 2c0d5d3dee..bd1cbf8452 100644 --- a/commands/run/README.md +++ b/commands/run/README.md @@ -111,23 +111,6 @@ current working directory. $ lerna run build --profile --profile-location=logs/profile/ ``` -### `useNx` (experimental) +### `useNx=false` -Enables integration with [Nx](https://nx.dev). Setting `"useNx": true` in `lerna.json` will tell Lerna to delegate -running tasks to Nx instead of using `p-map` and `p-queue`. This only works if Nx is installed and `nx.json` is present. - -Example of `nx.json`: - -```json -{ - "extends": "nx/presets/npm.json", - "tasksRunnerOptions": { - "default": { - "runner": "nx/tasks-runners/default", - "options": { - "cacheableOperations": ["build"] - } - } - } -} -``` +By setting `useNx` to `false` you can use the legacy task running implementations in `lerna` (`p-map` and `p-queue`) instead of using the default modern task runner implementation powered by [Nx](https://nx.dev). diff --git a/commands/run/__tests__/__fixtures__/basic/lerna.json b/commands/run/__tests__/__fixtures__/basic/lerna.json index 1587a66968..4ba6e3b59c 100644 --- a/commands/run/__tests__/__fixtures__/basic/lerna.json +++ b/commands/run/__tests__/__fixtures__/basic/lerna.json @@ -1,3 +1,4 @@ { - "version": "1.0.0" + "version": "1.0.0", + "useNx": false } diff --git a/commands/run/__tests__/__fixtures__/include-filtered-dependencies/lerna.json b/commands/run/__tests__/__fixtures__/include-filtered-dependencies/lerna.json index 1587a66968..4ba6e3b59c 100644 --- a/commands/run/__tests__/__fixtures__/include-filtered-dependencies/lerna.json +++ b/commands/run/__tests__/__fixtures__/include-filtered-dependencies/lerna.json @@ -1,3 +1,4 @@ { - "version": "1.0.0" + "version": "1.0.0", + "useNx": false } diff --git a/commands/run/__tests__/__fixtures__/powered-by-nx/lerna.json b/commands/run/__tests__/__fixtures__/powered-by-nx/lerna.json index ae2904df3f..1587a66968 100644 --- a/commands/run/__tests__/__fixtures__/powered-by-nx/lerna.json +++ b/commands/run/__tests__/__fixtures__/powered-by-nx/lerna.json @@ -1,4 +1,3 @@ { - "version": "1.0.0", - "useNx": true + "version": "1.0.0" } diff --git a/commands/run/command.js b/commands/run/command.js index 98c25e68cf..0a78af2515 100644 --- a/commands/run/command.js +++ b/commands/run/command.js @@ -75,7 +75,7 @@ exports.builder = (yargs) => { }, verbose: { group: "Command Options:", - describe: "When useNx is true, show verbose output from dependent tasks.", + describe: "When useNx is not false, show verbose output from dependent tasks.", type: "boolean", }, }); diff --git a/commands/run/index.js b/commands/run/index.js index 30d77ee266..021c20c2d6 100644 --- a/commands/run/index.js +++ b/commands/run/index.js @@ -8,7 +8,7 @@ const { existsSync } = require("fs-extra"); const { Command } = require("@lerna/command"); const { npmRunScript, npmRunScriptStreaming } = require("@lerna/npm-run-script"); const { output } = require("@lerna/output"); -const { Profiler } = require("@lerna/profiler"); +const { Profiler, generateProfileOutputPath } = require("@lerna/profiler"); const { timer } = require("@lerna/timer"); const { runTopologically } = require("@lerna/run-topologically"); const { ValidationError } = require("@lerna/validation-error"); @@ -37,6 +37,14 @@ class RunCommand extends Command { throw new ValidationError("ENOSCRIPT", "You must specify a lifecycle script to run"); } + // Check this.argv (not this.options) so that we only error in this case when --npm-client is set via the CLI (not via lerna.json which is a legitimate use case for other things) + if (this.argv.npmClient && this.options.useNx !== false) { + throw new ValidationError( + "run", + "The legacy task runner option `--npm-client` is not currently supported. Please open an issue on https://github.com/lerna/lerna if you require this feature." + ); + } + // inverted boolean options this.bail = this.options.bail !== false; this.prefix = this.options.prefix !== false; @@ -66,7 +74,7 @@ class RunCommand extends Command { } execute() { - if (!this.options.useNx) { + if (this.options.useNx === false) { this.logger.info( "", "Executing command in %d %s: %j", @@ -79,7 +87,7 @@ class RunCommand extends Command { let chain = Promise.resolve(); const getElapsed = timer(); - if (this.options.useNx) { + if (this.options.useNx !== false) { chain = chain.then(() => this.runScriptsUsingNx()); } else if (this.options.parallel) { chain = chain.then(() => this.runScriptInPackagesParallel()); @@ -184,6 +192,11 @@ class RunCommand extends Command { if (this.options.ci) { process.env.CI = "true"; } + if (this.options.profile) { + const absolutePath = generateProfileOutputPath(this.options.profileLocation); + // Nx requires a workspace relative path for this + process.env.NX_PROFILE = path.relative(this.project.rootPath, absolutePath); + } performance.mark("init-local"); this.configureNxOutput(); const { targetDependencies, options, extraOptions } = this.prepNxOptions(); @@ -239,6 +252,10 @@ class RunCommand extends Command { } : {}; + if (this.options.prefix === false && !this.options.stream) { + this.logger.warn(this.name, `"no-prefix" is ignored when not using streaming output.`); + } + const outputStyle = this.options.stream ? this.prefix ? "stream" @@ -333,14 +350,13 @@ class RunCommand extends Command { nxOutput.output.cliName = "Lerna (powered by Nx)"; nxOutput.output.formatCommand = (taskId) => taskId; return nxOutput; - } catch (e) { + } catch (err) { + // This should be unreachable and we would want to know if it somehow occurred in a user's setup. this.logger.error( "\n", - "You have set 'useNx: true' in lerna.json, but you haven't installed Nx as a dependency.\n" + - "To do it run 'npm install -D nx@latest' or 'yarn add -D -W nx@latest'.\n" + - "Optional: To configure the caching and distribution run 'npx nx init' after installing it." + "There was a critical error when configuring the task runner, please report this on https://github.com/lerna/lerna" ); - process.exit(1); + throw err; } } } diff --git a/commands/run/package.json b/commands/run/package.json index a238651112..4ac58cec09 100644 --- a/commands/run/package.json +++ b/commands/run/package.json @@ -1,6 +1,6 @@ { "name": "@lerna/run", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "description": "Run an npm script in each package that contains that script", "keywords": [ "lerna", diff --git a/commands/version/CHANGELOG.md b/commands/version/CHANGELOG.md index 9ac1d170b8..490fccafa3 100644 --- a/commands/version/CHANGELOG.md +++ b/commands/version/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.0.0-alpha.1](https://github.com/lerna/lerna/compare/v5.6.2...v6.0.0-alpha.1) (2022-10-09) + +# [6.0.0-alpha.0](https://github.com/lerna/lerna/compare/v5.6.1...v6.0.0-alpha.0) (2022-10-07) + +**Note:** Version bump only for package @lerna/version + ## [5.6.2](https://github.com/lerna/lerna/compare/v5.6.1...v5.6.2) (2022-10-09) **Note:** Version bump only for package @lerna/version diff --git a/commands/version/package.json b/commands/version/package.json index 02013e7318..b2daeb7b04 100644 --- a/commands/version/package.json +++ b/commands/version/package.json @@ -1,6 +1,6 @@ { "name": "@lerna/version", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "description": "Bump version of packages changed since the last release", "keywords": [ "lerna", diff --git a/core/child-process/CHANGELOG.md b/core/child-process/CHANGELOG.md index 5fd63d5d84..4ac75b9b7f 100644 --- a/core/child-process/CHANGELOG.md +++ b/core/child-process/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.0.0-alpha.1](https://github.com/lerna/lerna/compare/v5.6.2...v6.0.0-alpha.1) (2022-10-09) + +# [6.0.0-alpha.0](https://github.com/lerna/lerna/compare/v5.6.1...v6.0.0-alpha.0) (2022-10-07) + +**Note:** Version bump only for package @lerna/child-process + ## [5.6.2](https://github.com/lerna/lerna/compare/v5.6.1...v5.6.2) (2022-10-09) ### Bug Fixes diff --git a/core/child-process/package.json b/core/child-process/package.json index 6d997ecd00..626da9be10 100644 --- a/core/child-process/package.json +++ b/core/child-process/package.json @@ -1,6 +1,6 @@ { "name": "@lerna/child-process", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "description": "Lerna's internal child_process wrapper", "keywords": [ "lerna", diff --git a/core/cli/CHANGELOG.md b/core/cli/CHANGELOG.md index 68d5ca9d15..87ed556c79 100644 --- a/core/cli/CHANGELOG.md +++ b/core/cli/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.0.0-alpha.1](https://github.com/lerna/lerna/compare/v5.6.2...v6.0.0-alpha.1) (2022-10-09) + +# [6.0.0-alpha.0](https://github.com/lerna/lerna/compare/v5.6.1...v6.0.0-alpha.0) (2022-10-07) + +**Note:** Version bump only for package @lerna/cli + ## [5.6.2](https://github.com/lerna/lerna/compare/v5.6.1...v5.6.2) (2022-10-09) **Note:** Version bump only for package @lerna/cli diff --git a/core/cli/package.json b/core/cli/package.json index 1816e39dc3..7922083dfe 100644 --- a/core/cli/package.json +++ b/core/cli/package.json @@ -1,6 +1,6 @@ { "name": "@lerna/cli", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "description": "Lerna's CLI", "keywords": [ "lerna", diff --git a/core/command/CHANGELOG.md b/core/command/CHANGELOG.md index b979848a1d..465751c920 100644 --- a/core/command/CHANGELOG.md +++ b/core/command/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.0.0-alpha.1](https://github.com/lerna/lerna/compare/v5.6.2...v6.0.0-alpha.1) (2022-10-09) + +# [6.0.0-alpha.0](https://github.com/lerna/lerna/compare/v5.6.1...v6.0.0-alpha.0) (2022-10-07) + +**Note:** Version bump only for package @lerna/command + ## [5.6.2](https://github.com/lerna/lerna/compare/v5.6.1...v5.6.2) (2022-10-09) **Note:** Version bump only for package @lerna/command diff --git a/core/command/package.json b/core/command/package.json index 7feb2a8be4..e77f67b462 100644 --- a/core/command/package.json +++ b/core/command/package.json @@ -1,6 +1,6 @@ { "name": "@lerna/command", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "description": "Lerna's internal base class for commands", "keywords": [ "lerna", diff --git a/core/conventional-commits/CHANGELOG.md b/core/conventional-commits/CHANGELOG.md index ad61fb207b..d80f8dd066 100644 --- a/core/conventional-commits/CHANGELOG.md +++ b/core/conventional-commits/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.0.0-alpha.1](https://github.com/lerna/lerna/compare/v5.6.2...v6.0.0-alpha.1) (2022-10-09) + +# [6.0.0-alpha.0](https://github.com/lerna/lerna/compare/v5.6.1...v6.0.0-alpha.0) (2022-10-07) + +**Note:** Version bump only for package @lerna/conventional-commits + ## [5.6.2](https://github.com/lerna/lerna/compare/v5.6.1...v5.6.2) (2022-10-09) **Note:** Version bump only for package @lerna/conventional-commits diff --git a/core/conventional-commits/package.json b/core/conventional-commits/package.json index 875b235700..eee96da865 100644 --- a/core/conventional-commits/package.json +++ b/core/conventional-commits/package.json @@ -1,6 +1,6 @@ { "name": "@lerna/conventional-commits", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "description": "Lerna's internal interface to conventional-changelog and friends", "keywords": [ "lerna", diff --git a/core/filter-options/CHANGELOG.md b/core/filter-options/CHANGELOG.md index 205208c5d6..dcc1a15ccd 100644 --- a/core/filter-options/CHANGELOG.md +++ b/core/filter-options/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.0.0-alpha.1](https://github.com/lerna/lerna/compare/v5.6.2...v6.0.0-alpha.1) (2022-10-09) + +# [6.0.0-alpha.0](https://github.com/lerna/lerna/compare/v5.6.1...v6.0.0-alpha.0) (2022-10-07) + +**Note:** Version bump only for package @lerna/filter-options + ## [5.6.2](https://github.com/lerna/lerna/compare/v5.6.1...v5.6.2) (2022-10-09) **Note:** Version bump only for package @lerna/filter-options diff --git a/core/filter-options/package.json b/core/filter-options/package.json index 8f90232a26..921534b59d 100644 --- a/core/filter-options/package.json +++ b/core/filter-options/package.json @@ -1,6 +1,6 @@ { "name": "@lerna/filter-options", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "description": "Options for lerna sub-commands that need filtering", "keywords": [ "lerna", diff --git a/core/global-options/CHANGELOG.md b/core/global-options/CHANGELOG.md index 03fdbf2b02..11408eebad 100644 --- a/core/global-options/CHANGELOG.md +++ b/core/global-options/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.0.0-alpha.1](https://github.com/lerna/lerna/compare/v5.6.2...v6.0.0-alpha.1) (2022-10-09) + +# [6.0.0-alpha.0](https://github.com/lerna/lerna/compare/v5.6.1...v6.0.0-alpha.0) (2022-10-07) + +**Note:** Version bump only for package @lerna/global-options + ## [5.6.2](https://github.com/lerna/lerna/compare/v5.6.1...v5.6.2) (2022-10-09) **Note:** Version bump only for package @lerna/global-options diff --git a/core/global-options/package.json b/core/global-options/package.json index 42a3a22016..2750c437a8 100644 --- a/core/global-options/package.json +++ b/core/global-options/package.json @@ -1,6 +1,6 @@ { "name": "@lerna/global-options", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "description": "Global options applicable to _every_ lerna sub-command", "keywords": [ "lerna", diff --git a/core/lerna/CHANGELOG.md b/core/lerna/CHANGELOG.md index b4364c7d20..8abf499197 100644 --- a/core/lerna/CHANGELOG.md +++ b/core/lerna/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.0.0-alpha.1](https://github.com/lerna/lerna/compare/v5.6.2...v6.0.0-alpha.1) (2022-10-09) + +# [6.0.0-alpha.0](https://github.com/lerna/lerna/compare/v5.6.1...v6.0.0-alpha.0) (2022-10-07) + +**Note:** Version bump only for package lerna + ## [5.6.2](https://github.com/lerna/lerna/compare/v5.6.1...v5.6.2) (2022-10-09) **Note:** Version bump only for package lerna diff --git a/core/lerna/commands/add-caching/index.js b/core/lerna/commands/add-caching/index.js index 5e5e8f89f7..7879da7d44 100644 --- a/core/lerna/commands/add-caching/index.js +++ b/core/lerna/commands/add-caching/index.js @@ -26,21 +26,6 @@ class AddCachingCommand extends Command { ); // eslint-disable-next-line no-process-exit process.exit(1); - } // TODO: remove auto-setting useNx: true in v6 - else if (!this.options.useNx) { - const lernaJsonPath = joinPathFragments(workspaceRoot, "lerna.json"); - try { - const lernaJson = readJsonFile(lernaJsonPath); - lernaJson.useNx = true; - writeJsonFile(lernaJsonPath, lernaJson); - } catch { - this.logger.error( - "add-caching", - "The `add-caching` command is only available when using the Nx task runner (set `useNx` to `true` in `lerna.json`)" - ); - // eslint-disable-next-line no-process-exit - process.exit(1); - } } const packages = this.packageGraph?.rawPackageList || []; diff --git a/core/lerna/migrations.json b/core/lerna/migrations.json index c58cd30fd0..d7e18903fd 100644 --- a/core/lerna/migrations.json +++ b/core/lerna/migrations.json @@ -1,10 +1,10 @@ { "generators": { - "noop": { + "remove-unnecessary-use-nx": { "cli": "nx", - "version": "5.3.0", - "description": "Noop example migration, can be removed once a real migration is created", - "implementation": "./migrations/noop/noop" + "version": "6.0.0-alpha.0", + "description": "Remove unnecessary `useNx: true` from lerna.json as it is the default", + "implementation": "./migrations/remove-unnecessary-use-nx/remove-unnecessary-use-nx" } } } diff --git a/core/lerna/migrations/noop/noop.js b/core/lerna/migrations/noop/noop.js deleted file mode 100644 index c0f703b8ea..0000000000 --- a/core/lerna/migrations/noop/noop.js +++ /dev/null @@ -1,6 +0,0 @@ -// @ts-check - -// eslint-disable-next-line no-unused-vars -exports.default = async function generator(tree) { - // This is a noop migration just to show how one would be written until the first real implementation is in place. -}; diff --git a/core/lerna/migrations/noop/noop.test.js b/core/lerna/migrations/noop/noop.test.js deleted file mode 100644 index 6f58b557c1..0000000000 --- a/core/lerna/migrations/noop/noop.test.js +++ /dev/null @@ -1,16 +0,0 @@ -// @ts-check - -const { createTreeWithEmptyWorkspace } = require("@nrwl/devkit/testing"); -const { default: noopMigration } = require("./noop"); - -describe("noop migration", () => { - let tree; - - beforeEach(() => { - tree = createTreeWithEmptyWorkspace(); - }); - - it("should be runnable and not throw", async () => { - await expect(noopMigration(tree)).resolves.toBeUndefined(); - }); -}); diff --git a/core/lerna/migrations/remove-unnecessary-use-nx/remove-unnecessary-use-nx.js b/core/lerna/migrations/remove-unnecessary-use-nx/remove-unnecessary-use-nx.js new file mode 100644 index 0000000000..184a1e935e --- /dev/null +++ b/core/lerna/migrations/remove-unnecessary-use-nx/remove-unnecessary-use-nx.js @@ -0,0 +1,13 @@ +// @ts-check +const { writeJson, readJson, formatFiles } = require("@nrwl/devkit"); + +exports.default = async function generator(tree) { + const lernaJson = readJson(tree, "lerna.json"); + + if (lernaJson.useNx) { + delete lernaJson.useNx; + writeJson(tree, "lerna.json", lernaJson); + } + + await formatFiles(tree); +}; diff --git a/core/lerna/migrations/remove-unnecessary-use-nx/remove-unnecessary-use-nx.test.js b/core/lerna/migrations/remove-unnecessary-use-nx/remove-unnecessary-use-nx.test.js new file mode 100644 index 0000000000..d05199b356 --- /dev/null +++ b/core/lerna/migrations/remove-unnecessary-use-nx/remove-unnecessary-use-nx.test.js @@ -0,0 +1,32 @@ +// @ts-check +const { createTreeWithEmptyWorkspace } = require("@nrwl/devkit/testing"); +const { writeJson, readJson } = require("@nrwl/devkit"); +const { default: removeUnnecessaryUseNxMigration } = require("./remove-unnecessary-use-nx"); + +describe("remove-unnecessary-use-nx migration", () => { + let tree; + + beforeEach(() => { + tree = createTreeWithEmptyWorkspace(); + }); + + it("should remove useNx if set to true", async () => { + writeJson(tree, "lerna.json", { + useNx: true, + }); + await removeUnnecessaryUseNxMigration(tree); + expect(readJson(tree, "lerna.json")).toMatchInlineSnapshot(`Object {}`); + }); + + it("should not remove useNx if set to false", async () => { + writeJson(tree, "lerna.json", { + useNx: false, + }); + await removeUnnecessaryUseNxMigration(tree); + expect(readJson(tree, "lerna.json")).toMatchInlineSnapshot(` + Object { + "useNx": false, + } + `); + }); +}); diff --git a/core/lerna/package.json b/core/lerna/package.json index f1b40cdec0..bd170cbc2a 100644 --- a/core/lerna/package.json +++ b/core/lerna/package.json @@ -1,6 +1,6 @@ { "name": "lerna", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "description": "A tool for managing JavaScript projects with multiple packages.", "keywords": [ "lerna", diff --git a/core/lerna/schemas/lerna-schema.json b/core/lerna/schemas/lerna-schema.json index 797011ee62..606ef66172 100644 --- a/core/lerna/schemas/lerna-schema.json +++ b/core/lerna/schemas/lerna-schema.json @@ -20,8 +20,8 @@ }, "useNx": { "type": "boolean", - "description": "When true, Lerna will delegate the implementation details of `lerna run` to the Nx task runner, instead of p-map or p-queue.", - "default": false + "description": "By setting `useNx` to `false` you can use the legacy task running implementations in `lerna` (`p-map` and `p-queue`) instead of using the default modern task runner implementation powered by [Nx](https://nx.dev).", + "default": true }, "command": { "type": "object", diff --git a/core/otplease/CHANGELOG.md b/core/otplease/CHANGELOG.md index 5ceabd870b..6f25f8f353 100644 --- a/core/otplease/CHANGELOG.md +++ b/core/otplease/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.0.0-alpha.1](https://github.com/lerna/lerna/compare/v5.6.2...v6.0.0-alpha.1) (2022-10-09) + +# [6.0.0-alpha.0](https://github.com/lerna/lerna/compare/v5.6.1...v6.0.0-alpha.0) (2022-10-07) + +**Note:** Version bump only for package @lerna/otplease + ## [5.6.2](https://github.com/lerna/lerna/compare/v5.6.1...v5.6.2) (2022-10-09) **Note:** Version bump only for package @lerna/otplease diff --git a/core/otplease/package.json b/core/otplease/package.json index ae05b5a27e..ec83b7405c 100644 --- a/core/otplease/package.json +++ b/core/otplease/package.json @@ -1,6 +1,6 @@ { "name": "@lerna/otplease", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "description": "Prompt for OTP when wrapped Promise fails", "keywords": [ "lerna", diff --git a/core/package-graph/CHANGELOG.md b/core/package-graph/CHANGELOG.md index 3a1f48fe47..52da9112c7 100644 --- a/core/package-graph/CHANGELOG.md +++ b/core/package-graph/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.0.0-alpha.1](https://github.com/lerna/lerna/compare/v5.6.2...v6.0.0-alpha.1) (2022-10-09) + +# [6.0.0-alpha.0](https://github.com/lerna/lerna/compare/v5.6.1...v6.0.0-alpha.0) (2022-10-07) + +**Note:** Version bump only for package @lerna/package-graph + ## [5.6.2](https://github.com/lerna/lerna/compare/v5.6.1...v5.6.2) (2022-10-09) ### Bug Fixes diff --git a/core/package-graph/package.json b/core/package-graph/package.json index 5729f27b8b..eed0916fcd 100644 --- a/core/package-graph/package.json +++ b/core/package-graph/package.json @@ -1,6 +1,6 @@ { "name": "@lerna/package-graph", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "description": "Lerna's internal representation of a package graph", "keywords": [ "lerna", diff --git a/core/package/CHANGELOG.md b/core/package/CHANGELOG.md index 8aa8bec8e6..c6cfae91cb 100644 --- a/core/package/CHANGELOG.md +++ b/core/package/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.0.0-alpha.1](https://github.com/lerna/lerna/compare/v5.6.2...v6.0.0-alpha.1) (2022-10-09) + +# [6.0.0-alpha.0](https://github.com/lerna/lerna/compare/v5.6.1...v6.0.0-alpha.0) (2022-10-07) + +**Note:** Version bump only for package @lerna/package + ## [5.6.2](https://github.com/lerna/lerna/compare/v5.6.1...v5.6.2) (2022-10-09) **Note:** Version bump only for package @lerna/package diff --git a/core/package/package.json b/core/package/package.json index fd252c418d..07603b1f49 100644 --- a/core/package/package.json +++ b/core/package/package.json @@ -1,6 +1,6 @@ { "name": "@lerna/package", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "description": "Lerna's internal representation of a package", "keywords": [ "lerna", diff --git a/core/project/CHANGELOG.md b/core/project/CHANGELOG.md index 91eed3b241..5cad385144 100644 --- a/core/project/CHANGELOG.md +++ b/core/project/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.0.0-alpha.1](https://github.com/lerna/lerna/compare/v5.6.2...v6.0.0-alpha.1) (2022-10-09) + +# [6.0.0-alpha.0](https://github.com/lerna/lerna/compare/v5.6.1...v6.0.0-alpha.0) (2022-10-07) + +**Note:** Version bump only for package @lerna/project + ## [5.6.2](https://github.com/lerna/lerna/compare/v5.6.1...v5.6.2) (2022-10-09) **Note:** Version bump only for package @lerna/project diff --git a/core/project/package.json b/core/project/package.json index 2048c34197..9541b29b38 100644 --- a/core/project/package.json +++ b/core/project/package.json @@ -1,6 +1,6 @@ { "name": "@lerna/project", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "description": "Lerna project configuration", "keywords": [ "lerna", diff --git a/core/prompt/CHANGELOG.md b/core/prompt/CHANGELOG.md index 0b3d8ddb0a..bfdf577f30 100644 --- a/core/prompt/CHANGELOG.md +++ b/core/prompt/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.0.0-alpha.1](https://github.com/lerna/lerna/compare/v5.6.2...v6.0.0-alpha.1) (2022-10-09) + +# [6.0.0-alpha.0](https://github.com/lerna/lerna/compare/v5.6.1...v6.0.0-alpha.0) (2022-10-07) + +**Note:** Version bump only for package @lerna/prompt + ## [5.6.2](https://github.com/lerna/lerna/compare/v5.6.1...v5.6.2) (2022-10-09) **Note:** Version bump only for package @lerna/prompt diff --git a/core/prompt/package.json b/core/prompt/package.json index 6805363332..9f6a6cc00f 100644 --- a/core/prompt/package.json +++ b/core/prompt/package.json @@ -1,6 +1,6 @@ { "name": "@lerna/prompt", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "description": "An internal Lerna tool", "keywords": [ "lerna", diff --git a/core/validation-error/CHANGELOG.md b/core/validation-error/CHANGELOG.md index 5ce34e2208..655728768b 100644 --- a/core/validation-error/CHANGELOG.md +++ b/core/validation-error/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.0.0-alpha.1](https://github.com/lerna/lerna/compare/v5.6.2...v6.0.0-alpha.1) (2022-10-09) + +# [6.0.0-alpha.0](https://github.com/lerna/lerna/compare/v5.6.1...v6.0.0-alpha.0) (2022-10-07) + +**Note:** Version bump only for package @lerna/validation-error + ## [5.6.2](https://github.com/lerna/lerna/compare/v5.6.1...v5.6.2) (2022-10-09) **Note:** Version bump only for package @lerna/validation-error diff --git a/core/validation-error/package.json b/core/validation-error/package.json index b833c4b848..21536b2894 100644 --- a/core/validation-error/package.json +++ b/core/validation-error/package.json @@ -1,6 +1,6 @@ { "name": "@lerna/validation-error", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "description": "An internal Lerna tool", "keywords": [ "lerna", diff --git a/e2e/tests/lerna-create/lerna-create.spec.ts b/e2e/tests/lerna-create/lerna-create.spec.ts index 5df4e54796..af53be9427 100644 --- a/e2e/tests/lerna-create/lerna-create.spec.ts +++ b/e2e/tests/lerna-create/lerna-create.spec.ts @@ -1186,15 +1186,18 @@ describe("lerna-create", () => { lerna notice cli v999.9.9-e2e.0 lerna notice filter including "test-script" lerna info filter [ 'test-script' ] - lerna info Executing command in 1 package: "npm run test" - lerna info run Ran npm script 'test' in 'test-script' in X.Xs: + + > test-script:test > test-script@0.0.0 test > node ./__tests__/test-script.test.js - testScript tests passed - lerna success run Ran npm script 'test' in 1 package in X.Xs: - lerna success - test-script + + + + > Lerna (powered by Nx) Successfully ran target test for project test-script + + `); }); diff --git a/e2e/tests/lerna-init/lerna-init.spec.ts b/e2e/tests/lerna-init/lerna-init.spec.ts index d94807fa90..57cda3edac 100644 --- a/e2e/tests/lerna-init/lerna-init.spec.ts +++ b/e2e/tests/lerna-init/lerna-init.spec.ts @@ -32,7 +32,6 @@ describe("lerna-init", () => { expect(await fixture.readWorkspaceFile("lerna.json")).toMatchInlineSnapshot(` "{ \\"$schema\\": \\"node_modules/lerna/schemas/lerna-schema.json\\", - \\"useNx\\": true, \\"useWorkspaces\\": true, \\"version\\": \\"0.0.0\\" } @@ -73,7 +72,6 @@ describe("lerna-init", () => { expect(await fixture.readWorkspaceFile("lerna.json")).toMatchInlineSnapshot(` "{ \\"$schema\\": \\"node_modules/lerna/schemas/lerna-schema.json\\", - \\"useNx\\": true, \\"useWorkspaces\\": true, \\"version\\": \\"independent\\" } @@ -120,7 +118,6 @@ describe("lerna-init", () => { } }, \\"$schema\\": \\"node_modules/lerna/schemas/lerna-schema.json\\", - \\"useNx\\": true, \\"useWorkspaces\\": true, \\"version\\": \\"0.0.0\\" } @@ -167,7 +164,6 @@ describe("lerna-init", () => { } }, \\"$schema\\": \\"node_modules/lerna/schemas/lerna-schema.json\\", - \\"useNx\\": true, \\"useWorkspaces\\": true, \\"version\\": \\"independent\\" } diff --git a/e2e/tests/lerna-run/lerna-run-legacy-task-runner.spec.ts b/e2e/tests/lerna-run/lerna-run-legacy-task-runner.spec.ts new file mode 100644 index 0000000000..25a09f2f07 --- /dev/null +++ b/e2e/tests/lerna-run/lerna-run-legacy-task-runner.spec.ts @@ -0,0 +1,352 @@ +import { existsSync } from "fs-extra"; +import { Fixture } from "../../utils/fixture"; +import { normalizeCommandOutput, normalizeEnvironment } from "../../utils/snapshot-serializer-utils"; + +expect.addSnapshotSerializer({ + serialize(str: string) { + return normalizeCommandOutput(normalizeEnvironment(str)); + }, + test(val: string) { + return val != null && typeof val === "string"; + }, +}); + +describe("lerna-run-legacy-task-runner", () => { + let fixture: Fixture; + + beforeAll(async () => { + fixture = await Fixture.create({ + name: "lerna-run-legacy-task-runner", + packageManager: "npm", + initializeGit: true, + runLernaInit: true, + installDependencies: true, + /** + * Because lerna run involves spawning further child processes, the tests would be too flaky + * if we didn't force deterministic terminal output by appending stderr to stdout instead + * of interleaving them. + */ + forceDeterministicTerminalOutput: true, + }); + + // Enable legacy task runner + await fixture.overrideLernaConfig({ + useNx: false, + }); + + await fixture.lerna("create package-1 -y"); + await fixture.addScriptsToPackage({ + packagePath: "packages/package-1", + scripts: { + "print-name": "echo test-package-1", + }, + }); + await fixture.lerna("create package-2 -y"); + await fixture.addScriptsToPackage({ + packagePath: "packages/package-2", + scripts: { + "print-name": "echo test-package-2", + }, + }); + await fixture.lerna("create package-3 -y"); + await fixture.addScriptsToPackage({ + packagePath: "packages/package-3", + scripts: { + "print-name": "echo test-package-3", + }, + }); + }); + afterAll(() => fixture.destroy()); + + it("should run script on all child packages", async () => { + const output = await fixture.lerna("run print-name -- --silent"); + + expect(output.combinedOutput).toMatchInlineSnapshot(` + test-package-X + test-package-X + test-package-X + lerna notice cli v999.9.9-e2e.0 + lerna info Executing command in 3 packages: "npm run print-name --silent" + lerna info run Ran npm script 'print-name' in 'package-X' in X.Xs: + lerna info run Ran npm script 'print-name' in 'package-X' in X.Xs: + lerna info run Ran npm script 'print-name' in 'package-X' in X.Xs: + lerna success run Ran npm script 'print-name' in 3 packages in X.Xs: + lerna success - package-X + lerna success - package-X + lerna success - package-X + + `); + }); + + describe("--stream", () => { + it("should run script on all child packages with package name prefixes", async () => { + const output = await fixture.lerna("run print-name --stream -- --silent"); + + expect(output.combinedOutput).toMatchInlineSnapshot(` + package-X: test-package-X + package-X: test-package-X + package-X: test-package-X + lerna notice cli v999.9.9-e2e.0 + lerna info Executing command in 3 packages: "npm run print-name --silent" + lerna success run Ran npm script 'print-name' in 3 packages in X.Xs: + lerna success - package-X + lerna success - package-X + lerna success - package-X + + `); + }); + }); + + describe("--parallel", () => { + it("should run script on all child packages with package name prefixes", async () => { + const output = await fixture.lerna("run print-name --parallel -- --silent"); + + expect(output.combinedOutput).toMatchInlineSnapshot(` + package-X: test-package-X + package-X: test-package-X + package-X: test-package-X + lerna notice cli v999.9.9-e2e.0 + lerna info Executing command in 3 packages: "npm run print-name --silent" + lerna success run Ran npm script 'print-name' in 3 packages in X.Xs: + lerna success - package-X + lerna success - package-X + lerna success - package-X + + `); + }); + }); + + describe("--no-prefix", () => { + describe("--parallel", () => { + it("should run script on all child packages and suppress package name prefixes", async () => { + const output = await fixture.lerna("run print-name --no-prefix --parallel -- --silent"); + + expect(output.combinedOutput).toMatchInlineSnapshot(` + test-package-X + test-package-X + test-package-X + lerna notice cli v999.9.9-e2e.0 + lerna info Executing command in 3 packages: "npm run print-name --silent" + lerna success run Ran npm script 'print-name' in 3 packages in X.Xs: + lerna success - package-X + lerna success - package-X + lerna success - package-X + + `); + }); + }); + + describe("--stream", () => { + it("should run script on all child packages and suppress package name prefixes", async () => { + const output = await fixture.lerna("run print-name --no-prefix --stream -- --silent"); + + expect(output.combinedOutput).toMatchInlineSnapshot(` + test-package-X + test-package-X + test-package-X + lerna notice cli v999.9.9-e2e.0 + lerna info Executing command in 3 packages: "npm run print-name --silent" + lerna success run Ran npm script 'print-name' in 3 packages in X.Xs: + lerna success - package-X + lerna success - package-X + lerna success - package-X + + `); + }); + }); + }); + + describe("--profile", () => { + it("should run script on all child packages and create a performance profile", async () => { + const output = await fixture.lerna("run print-name --profile -- --silent"); + + expect(output.combinedOutput).toMatchInlineSnapshot(` + test-package-X + test-package-X + test-package-X + lerna notice cli v999.9.9-e2e.0 + lerna info Executing command in 3 packages: "npm run print-name --silent" + lerna info run Ran npm script 'print-name' in 'package-X' in X.Xs: + lerna info run Ran npm script 'print-name' in 'package-X' in X.Xs: + lerna info run Ran npm script 'print-name' in 'package-X' in X.Xs: + lerna info profiler Performance profile saved to /tmp/lerna-e2e/lerna-run-legacy-task-runner/lerna-workspace/Lerna-Profile-XXXXXXXXTXXXXXX.json + lerna success run Ran npm script 'print-name' in 3 packages in X.Xs: + lerna success - package-X + lerna success - package-X + lerna success - package-X + + `); + + const lernaProfileSavedOutputLine = output.combinedOutput.split("\n")[8]; + + const lernaProfileFileName = lernaProfileSavedOutputLine.split( + "lerna-run-legacy-task-runner/lerna-workspace/" + )[1]; + + expect(existsSync(fixture.getWorkspacePath(lernaProfileFileName))).toBe(true); + }); + }); + + describe("--profile --profile-location", () => { + it("should run script on all child packages and create a performance profile at provided location", async () => { + const output = await fixture.lerna(`run print-name --profile --profile-location=profiles -- --silent`); + + expect(output.combinedOutput).toMatchInlineSnapshot(` + test-package-X + test-package-X + test-package-X + lerna notice cli v999.9.9-e2e.0 + lerna info Executing command in 3 packages: "npm run print-name --silent" + lerna info run Ran npm script 'print-name' in 'package-X' in X.Xs: + lerna info run Ran npm script 'print-name' in 'package-X' in X.Xs: + lerna info run Ran npm script 'print-name' in 'package-X' in X.Xs: + lerna info profiler Performance profile saved to /tmp/lerna-e2e/lerna-run-legacy-task-runner/lerna-workspace/profiles/Lerna-Profile-XXXXXXXXTXXXXXX.json + lerna success run Ran npm script 'print-name' in 3 packages in X.Xs: + lerna success - package-X + lerna success - package-X + lerna success - package-X + + `); + + const lernaProfileSavedOutputLine = output.combinedOutput.split("\n")[8]; + + const lernaProfileFileName = lernaProfileSavedOutputLine.split( + "lerna-run-legacy-task-runner/lerna-workspace/" + )[1]; + + expect(existsSync(fixture.getWorkspacePath(lernaProfileFileName))).toBe(true); + }); + }); + + describe("--npm-client", () => { + it("should run script on all child packages using yarn", async () => { + const output = await fixture.lerna(`run print-name --npm-client=yarn`); + + expect(output.combinedOutput).toMatchInlineSnapshot(` + yarn run v1.22.18 + $ echo test-package-X + test-package-X + Done in X.Xs. + yarn run v1.22.18 + $ echo test-package-X + test-package-X + Done in X.Xs. + yarn run v1.22.18 + $ echo test-package-X + test-package-X + Done in X.Xs. + lerna notice cli v999.9.9-e2e.0 + lerna info Executing command in 3 packages: "yarn run print-name" + lerna info run Ran npm script 'print-name' in 'package-X' in X.Xs: + lerna info run Ran npm script 'print-name' in 'package-X' in X.Xs: + lerna info run Ran npm script 'print-name' in 'package-X' in X.Xs: + lerna success run Ran npm script 'print-name' in 3 packages in X.Xs: + lerna success - package-X + lerna success - package-X + lerna success - package-X + + `); + }); + + it("should run script on all child packages using npm", async () => { + const output = await fixture.lerna(`run print-name --npm-client=npm`); + + expect(output.combinedOutput).toMatchInlineSnapshot(` + + > package-X@0.0.0 print-name + > echo test-package-X + + test-package-X + + > package-X@0.0.0 print-name + > echo test-package-X + + test-package-X + + > package-X@0.0.0 print-name + > echo test-package-X + + test-package-X + lerna notice cli v999.9.9-e2e.0 + lerna info Executing command in 3 packages: "npm run print-name" + lerna info run Ran npm script 'print-name' in 'package-X' in X.Xs: + lerna info run Ran npm script 'print-name' in 'package-X' in X.Xs: + lerna info run Ran npm script 'print-name' in 'package-X' in X.Xs: + lerna success run Ran npm script 'print-name' in 3 packages in X.Xs: + lerna success - package-X + lerna success - package-X + lerna success - package-X + + `); + }); + }); + + describe("--ci", () => { + it("should log that ci is enabled", async () => { + const output = await fixture.lerna(`run print-name --ci`); + + expect(output.combinedOutput).toContain("lerna info ci enabled"); + }); + }); +}); + +describe("--no-bail", () => { + let fixture: Fixture; + + beforeAll(async () => { + fixture = await Fixture.create({ + name: "lerna-run-legacy-task-runner-no-bail", + packageManager: "npm", + initializeGit: true, + runLernaInit: true, + installDependencies: true, + forceDeterministicTerminalOutput: true, + }); + + // Enable legacy task runner + await fixture.overrideLernaConfig({ + useNx: false, + }); + + await fixture.lerna("create package-1 -y"); + await fixture.addScriptsToPackage({ + packagePath: "packages/package-1", + scripts: { + "print-name": "echo test-package-1", + }, + }); + await fixture.lerna("create package-2 -y"); + await fixture.addScriptsToPackage({ + packagePath: "packages/package-2", + scripts: { + "print-name": "echo test-package-2", + }, + }); + await fixture.lerna("create package-3 -y"); + await fixture.addScriptsToPackage({ + packagePath: "packages/package-3", + scripts: { + "print-name": "exit 100", + }, + }); + }); + afterAll(() => fixture.destroy()); + + it("should run script on all child packages and throw, but not abort, on script failure", async () => { + await expect(fixture.lerna("run print-name --no-bail -- --silent")).rejects + .toThrowErrorMatchingInlineSnapshot(` + Command failed: npx --offline --no lerna run print-name --no-bail -- --silent + lerna notice cli v999.9.9-e2e.0 + lerna info Executing command in 3 packages: "npm run print-name --silent" + lerna info run Ran npm script 'print-name' in 'package-X' in X.Xs: + lerna info run Ran npm script 'print-name' in 'package-X' in X.Xs: + lerna info run Ran npm script 'print-name' in 'package-X' in X.Xs: + lerna ERR! Received non-zero exit code 100 during execution + lerna success run Ran npm script 'print-name' in 3 packages in X.Xs: + lerna success - package-X + lerna success - package-X + lerna success - package-X + + `); + }); +}); diff --git a/e2e/tests/lerna-run/lerna-run-nx-include-dependencies.spec.ts b/e2e/tests/lerna-run/lerna-run-nx-include-dependencies.spec.ts index 07065375e9..3215333f75 100644 --- a/e2e/tests/lerna-run/lerna-run-nx-include-dependencies.spec.ts +++ b/e2e/tests/lerna-run/lerna-run-nx-include-dependencies.spec.ts @@ -60,6 +60,11 @@ describe("lerna-run-nx-include-dependencies", () => { describe("without nx enabled", () => { it("should exclude dependencies by default", async () => { + // Enable legacy task runner + await fixture.overrideLernaConfig({ + useNx: false, + }); + const output = await fixture.lerna("run print-name --scope package-3 -- --silent"); expect(output.combinedOutput).toMatchInlineSnapshot(` @@ -79,7 +84,7 @@ describe("lerna-run-nx-include-dependencies", () => { describe("with nx enabled, but no nx.json", () => { it("should exclude dependencies by default", async () => { - await fixture.addNxToWorkspace(); + await fixture.addNxJsonToWorkspace(); await remove(fixture.getWorkspacePath("nx.json")); @@ -93,9 +98,9 @@ describe("lerna-run-nx-include-dependencies", () => { > echo test-package-X "--silent" test-package-X --silent - - > Lerna (powered by Nx) Successfully ran target print-name for project package-X + + > Lerna (powered by Nx) Successfully ran target print-name for project package-X lerna notice cli v999.9.9-e2e.0 @@ -110,7 +115,7 @@ describe("lerna-run-nx-include-dependencies", () => { describe("with nx enabled and with nx.json without targetDefaults", () => { it("should exclude dependencies by default", async () => { - await fixture.addNxToWorkspace(); + await fixture.addNxJsonToWorkspace(); const output = await fixture.lerna("run print-name --scope package-3 -- --silent"); @@ -122,9 +127,9 @@ describe("lerna-run-nx-include-dependencies", () => { > echo test-package-X "--silent" test-package-X --silent - - > Lerna (powered by Nx) Successfully ran target print-name for project package-X + + > Lerna (powered by Nx) Successfully ran target print-name for project package-X lerna notice cli v999.9.9-e2e.0 @@ -139,7 +144,7 @@ describe("lerna-run-nx-include-dependencies", () => { describe("with nx enabled and with nx.json with targetDefaults", () => { it("should include package dependencies by default", async () => { - await fixture.addNxToWorkspace(); + await fixture.addNxJsonToWorkspace(); await fixture.updateJson("nx.json", (json) => ({ ...json, targetDefaults: { @@ -152,48 +157,48 @@ describe("lerna-run-nx-include-dependencies", () => { expect(output.combinedOutput).toMatchInlineSnapshot(` - > Lerna (powered by Nx) Running target print-name for project package-X and 2 task(s) it depends on + > Lerna (powered by Nx) Running target print-name for project package-X and 2 task(s) it depends on - -> package-X:print-name + > package-X:print-name -> package-X@0.0.0 print-name -> echo test-package-X -test-package-X + > package-X@0.0.0 print-name + > echo test-package-X -> package-X:print-name + test-package-X + > package-X:print-name -> package-X@0.0.0 print-name -> echo test-package-X -test-package-X + > package-X@0.0.0 print-name + > echo test-package-X -> package-X:print-name + test-package-X -> package-X@0.0.0 print-name -> echo test-package-X -test-package-X + > package-X:print-name - + > package-X@0.0.0 print-name + > echo test-package-X + test-package-X - > Lerna (powered by Nx) Successfully ran target print-name for project package-X -lerna notice cli v999.9.9-e2e.0 -lerna verb rootPath /tmp/lerna-e2e/lerna-run-nx-include-dependencies/lerna-workspace -lerna notice filter including "package-X" -lerna info filter [ 'package-X' ] -lerna verb run nx.json with targetDefaults was found. Task dependencies will be automatically included. + > Lerna (powered by Nx) Successfully ran target print-name for project package-X -`); + + lerna notice cli v999.9.9-e2e.0 + lerna verb rootPath /tmp/lerna-e2e/lerna-run-nx-include-dependencies/lerna-workspace + lerna notice filter including "package-X" + lerna info filter [ 'package-X' ] + lerna verb run nx.json with targetDefaults was found. Task dependencies will be automatically included. + + `); }); it("should include package dependencies with --include-dependencies", async () => { - await fixture.addNxToWorkspace(); + await fixture.addNxJsonToWorkspace(); await fixture.updateJson("nx.json", (json) => ({ ...json, targetDefaults: { @@ -207,56 +212,56 @@ lerna verb run nx.json with targetDefaults was found. Task dependencies will be expect(output.combinedOutput).toMatchInlineSnapshot(` - > Lerna (powered by Nx) Running target print-name for 3 project(s): + > Lerna (powered by Nx) Running target print-name for 3 project(s): - - package-X - - package-X - - package-X + - package-X + - package-X + - package-X - -> package-X:print-name + > package-X:print-name -> package-X@0.0.0 print-name -> echo test-package-X -test-package-X + > package-X@0.0.0 print-name + > echo test-package-X -> package-X:print-name + test-package-X + > package-X:print-name -> package-X@0.0.0 print-name -> echo test-package-X -test-package-X + > package-X@0.0.0 print-name + > echo test-package-X -> package-X:print-name + test-package-X + > package-X:print-name -> package-X@0.0.0 print-name -> echo test-package-X -test-package-X + > package-X@0.0.0 print-name + > echo test-package-X + + test-package-X + - - > Lerna (powered by Nx) Successfully ran target print-name for 3 projects + > Lerna (powered by Nx) Successfully ran target print-name for 3 projects -lerna notice cli v999.9.9-e2e.0 -lerna verb rootPath /tmp/lerna-e2e/lerna-run-nx-include-dependencies/lerna-workspace -lerna notice filter including "package-X" -lerna notice filter including dependencies -lerna info filter [ 'package-X' ] -lerna verb run nx.json with targetDefaults was found. Task dependencies will be automatically included. -lerna info run Using the "include-dependencies" option when nx.json has targetDefaults defined will include both task dependencies detected by Nx and project dependencies detected by Lerna. See https://lerna.js.org/docs/recipes/using-lerna-powered-by-nx-to-run-tasks#--include-dependencies for details. + lerna notice cli v999.9.9-e2e.0 + lerna verb rootPath /tmp/lerna-e2e/lerna-run-nx-include-dependencies/lerna-workspace + lerna notice filter including "package-X" + lerna notice filter including dependencies + lerna info filter [ 'package-X' ] + lerna verb run nx.json with targetDefaults was found. Task dependencies will be automatically included. + lerna info run Using the "include-dependencies" option when nx.json has targetDefaults defined will include both task dependencies detected by Nx and project dependencies detected by Lerna. See https://lerna.js.org/docs/recipes/using-lerna-powered-by-nx-to-run-tasks#--include-dependencies for details. -`); + `); }); it("with --ignore should still include dependencies", async () => { - await fixture.addNxToWorkspace(); + await fixture.addNxJsonToWorkspace(); await fixture.updateJson("nx.json", (json) => ({ ...json, targetDefaults: { @@ -270,46 +275,46 @@ lerna info run Using the "include-dependencies" option when nx.json has targetDe expect(output.combinedOutput).toMatchInlineSnapshot(` - > Lerna (powered by Nx) Running target print-name for project package-X and 2 task(s) it depends on + > Lerna (powered by Nx) Running target print-name for project package-X and 2 task(s) it depends on + + - + > package-X:print-name -> package-X:print-name + > package-X@0.0.0 print-name + > echo test-package-X -> package-X@0.0.0 print-name -> echo test-package-X + test-package-X -test-package-X + > package-X:print-name -> package-X:print-name + > package-X@0.0.0 print-name + > echo test-package-X -> package-X@0.0.0 print-name -> echo test-package-X + test-package-X -test-package-X + > package-X:print-name -> package-X:print-name + > package-X@0.0.0 print-name + > echo test-package-X + test-package-X -> package-X@0.0.0 print-name -> echo test-package-X -test-package-X - - > Lerna (powered by Nx) Successfully ran target print-name for project package-X + > Lerna (powered by Nx) Successfully ran target print-name for project package-X -lerna notice cli v999.9.9-e2e.0 -lerna verb rootPath /tmp/lerna-e2e/lerna-run-nx-include-dependencies/lerna-workspace -lerna notice filter including "package-X" -lerna notice filter excluding "package-X" -lerna info filter [ 'package-X', '!package-X' ] -lerna verb run nx.json with targetDefaults was found. Task dependencies will be automatically included. -lerna info run Using the "ignore" option when nx.json has targetDefaults defined will exclude only tasks that are not determined to be required by Nx. See https://lerna.js.org/docs/recipes/using-lerna-powered-by-nx-to-run-tasks#--ignore for details. + lerna notice cli v999.9.9-e2e.0 + lerna verb rootPath /tmp/lerna-e2e/lerna-run-nx-include-dependencies/lerna-workspace + lerna notice filter including "package-X" + lerna notice filter excluding "package-X" + lerna info filter [ 'package-X', '!package-X' ] + lerna verb run nx.json with targetDefaults was found. Task dependencies will be automatically included. + lerna info run Using the "ignore" option when nx.json has targetDefaults defined will exclude only tasks that are not determined to be required by Nx. See https://lerna.js.org/docs/recipes/using-lerna-powered-by-nx-to-run-tasks#--ignore for details. -`); + `); }); }); }); diff --git a/e2e/tests/lerna-run/lerna-run-nx-incompatible-options.spec.ts b/e2e/tests/lerna-run/lerna-run-nx-incompatible-options.spec.ts index 433a2d01d5..08384b154a 100644 --- a/e2e/tests/lerna-run/lerna-run-nx-incompatible-options.spec.ts +++ b/e2e/tests/lerna-run/lerna-run-nx-incompatible-options.spec.ts @@ -29,7 +29,7 @@ describe("lerna-run-nx-incompatible-options", () => { forceDeterministicTerminalOutput: true, }); - await fixture.addNxToWorkspace(); + await fixture.addNxJsonToWorkspace(); await fixture.updateJson("nx.json", (json) => ({ ...json, targetDefaults: { @@ -68,46 +68,46 @@ describe("lerna-run-nx-incompatible-options", () => { expect(output.combinedOutput).toMatchInlineSnapshot(` - > Lerna (powered by Nx) Running target print-name for 3 project(s): + > Lerna (powered by Nx) Running target print-name for 3 project(s): - - package-X - - package-X - - package-X + - package-X + - package-X + - package-X - -> package-X:print-name + > package-X:print-name -> package-X@0.0.0 print-name -> echo test-package-X -test-package-X + > package-X@0.0.0 print-name + > echo test-package-X -> package-X:print-name + test-package-X + > package-X:print-name -> package-X@0.0.0 print-name -> echo test-package-X -test-package-X + > package-X@0.0.0 print-name + > echo test-package-X -> package-X:print-name + test-package-X + > package-X:print-name -> package-X@0.0.0 print-name -> echo test-package-X -test-package-X + > package-X@0.0.0 print-name + > echo test-package-X - + test-package-X - > Lerna (powered by Nx) Successfully ran target print-name for 3 projects -lerna notice cli v999.9.9-e2e.0 + > Lerna (powered by Nx) Successfully ran target print-name for 3 projects -`); + + lerna notice cli v999.9.9-e2e.0 + + `); }); it("--parallel should warn", async () => { @@ -115,47 +115,47 @@ lerna notice cli v999.9.9-e2e.0 expect(output.combinedOutput).toMatchInlineSnapshot(` - > Lerna (powered by Nx) Running target print-name for 3 project(s): + > Lerna (powered by Nx) Running target print-name for 3 project(s): + + - package-X + - package-X + - package-X - - package-X - - package-X - - package-X - -> package-X:print-name + > package-X:print-name -> package-X@0.0.0 print-name -> echo test-package-X + > package-X@0.0.0 print-name + > echo test-package-X -test-package-X + test-package-X -> package-X:print-name + > package-X:print-name -> package-X@0.0.0 print-name -> echo test-package-X + > package-X@0.0.0 print-name + > echo test-package-X -test-package-X + test-package-X -> package-X:print-name + > package-X:print-name -> package-X@0.0.0 print-name -> echo test-package-X + > package-X@0.0.0 print-name + > echo test-package-X -test-package-X + test-package-X - - > Lerna (powered by Nx) Successfully ran target print-name for 3 projects + > Lerna (powered by Nx) Successfully ran target print-name for 3 projects -lerna notice cli v999.9.9-e2e.0 -lerna WARN run "parallel", "sort", and "no-sort" are ignored when nx.json has targetDefaults defined. See https://lerna.js.org/docs/recipes/using-lerna-powered-by-nx-to-run-tasks for details. -`); + lerna notice cli v999.9.9-e2e.0 + lerna WARN run "parallel", "sort", and "no-sort" are ignored when nx.json has targetDefaults defined. See https://lerna.js.org/docs/recipes/using-lerna-powered-by-nx-to-run-tasks for details. + + `); }); it("--sort should warn", async () => { @@ -163,47 +163,47 @@ lerna WARN run "parallel", "sort", and "no-sort" are ignored when nx.json has ta expect(output.combinedOutput).toMatchInlineSnapshot(` - > Lerna (powered by Nx) Running target print-name for 3 project(s): + > Lerna (powered by Nx) Running target print-name for 3 project(s): + + - package-X + - package-X + - package-X - - package-X - - package-X - - package-X - -> package-X:print-name + > package-X:print-name -> package-X@0.0.0 print-name -> echo test-package-X + > package-X@0.0.0 print-name + > echo test-package-X -test-package-X + test-package-X -> package-X:print-name + > package-X:print-name -> package-X@0.0.0 print-name -> echo test-package-X + > package-X@0.0.0 print-name + > echo test-package-X -test-package-X + test-package-X -> package-X:print-name + > package-X:print-name -> package-X@0.0.0 print-name -> echo test-package-X + > package-X@0.0.0 print-name + > echo test-package-X -test-package-X + test-package-X - - > Lerna (powered by Nx) Successfully ran target print-name for 3 projects + > Lerna (powered by Nx) Successfully ran target print-name for 3 projects -lerna notice cli v999.9.9-e2e.0 -lerna WARN run "parallel", "sort", and "no-sort" are ignored when nx.json has targetDefaults defined. See https://lerna.js.org/docs/recipes/using-lerna-powered-by-nx-to-run-tasks for details. -`); + lerna notice cli v999.9.9-e2e.0 + lerna WARN run "parallel", "sort", and "no-sort" are ignored when nx.json has targetDefaults defined. See https://lerna.js.org/docs/recipes/using-lerna-powered-by-nx-to-run-tasks for details. + + `); }); it("--no-sort should warn", async () => { @@ -211,47 +211,47 @@ lerna WARN run "parallel", "sort", and "no-sort" are ignored when nx.json has ta expect(output.combinedOutput).toMatchInlineSnapshot(` - > Lerna (powered by Nx) Running target print-name for 3 project(s): + > Lerna (powered by Nx) Running target print-name for 3 project(s): + + - package-X + - package-X + - package-X + - - package-X - - package-X - - package-X - + > package-X:print-name -> package-X:print-name + > package-X@0.0.0 print-name + > echo test-package-X -> package-X@0.0.0 print-name -> echo test-package-X + test-package-X -test-package-X + > package-X:print-name -> package-X:print-name + > package-X@0.0.0 print-name + > echo test-package-X -> package-X@0.0.0 print-name -> echo test-package-X + test-package-X -test-package-X + > package-X:print-name -> package-X:print-name + > package-X@0.0.0 print-name + > echo test-package-X -> package-X@0.0.0 print-name -> echo test-package-X + test-package-X -test-package-X - - > Lerna (powered by Nx) Successfully ran target print-name for 3 projects + > Lerna (powered by Nx) Successfully ran target print-name for 3 projects -lerna notice cli v999.9.9-e2e.0 -lerna WARN run "parallel", "sort", and "no-sort" are ignored when nx.json has targetDefaults defined. See https://lerna.js.org/docs/recipes/using-lerna-powered-by-nx-to-run-tasks for details. + lerna notice cli v999.9.9-e2e.0 + lerna WARN run "parallel", "sort", and "no-sort" are ignored when nx.json has targetDefaults defined. See https://lerna.js.org/docs/recipes/using-lerna-powered-by-nx-to-run-tasks for details. -`); + `); }); it("--include-dependencies should warn", async () => { @@ -259,48 +259,48 @@ lerna WARN run "parallel", "sort", and "no-sort" are ignored when nx.json has ta expect(output.combinedOutput).toMatchInlineSnapshot(` - > Lerna (powered by Nx) Running target print-name for 3 project(s): + > Lerna (powered by Nx) Running target print-name for 3 project(s): + + - package-X + - package-X + - package-X + - - package-X - - package-X - - package-X - + > package-X:print-name -> package-X:print-name + > package-X@0.0.0 print-name + > echo test-package-X -> package-X@0.0.0 print-name -> echo test-package-X + test-package-X -test-package-X + > package-X:print-name -> package-X:print-name + > package-X@0.0.0 print-name + > echo test-package-X -> package-X@0.0.0 print-name -> echo test-package-X + test-package-X -test-package-X + > package-X:print-name -> package-X:print-name + > package-X@0.0.0 print-name + > echo test-package-X -> package-X@0.0.0 print-name -> echo test-package-X + test-package-X -test-package-X - - > Lerna (powered by Nx) Successfully ran target print-name for 3 projects + > Lerna (powered by Nx) Successfully ran target print-name for 3 projects -lerna notice cli v999.9.9-e2e.0 -lerna notice filter including dependencies -lerna info run Using the "include-dependencies" option when nx.json has targetDefaults defined will include both task dependencies detected by Nx and project dependencies detected by Lerna. See https://lerna.js.org/docs/recipes/using-lerna-powered-by-nx-to-run-tasks#--include-dependencies for details. + lerna notice cli v999.9.9-e2e.0 + lerna notice filter including dependencies + lerna info run Using the "include-dependencies" option when nx.json has targetDefaults defined will include both task dependencies detected by Nx and project dependencies detected by Lerna. See https://lerna.js.org/docs/recipes/using-lerna-powered-by-nx-to-run-tasks#--include-dependencies for details. -`); + `); }); }); @@ -322,7 +322,7 @@ describe("lerna-run-nx-incompatible-options without nx.json", () => { forceDeterministicTerminalOutput: true, }); - await fixture.addNxToWorkspace(); + await fixture.addNxJsonToWorkspace(); await remove(fixture.getWorkspacePath("nx.json")); await fixture.lerna("create package-1 -y"); @@ -354,46 +354,46 @@ describe("lerna-run-nx-incompatible-options without nx.json", () => { expect(output.combinedOutput).toMatchInlineSnapshot(` - > Lerna (powered by Nx) Running target print-name for 3 project(s): + > Lerna (powered by Nx) Running target print-name for 3 project(s): - - package-X - - package-X - - package-X + - package-X + - package-X + - package-X - -> package-X:print-name + > package-X:print-name -> package-X@0.0.0 print-name -> echo test-package-X -test-package-X + > package-X@0.0.0 print-name + > echo test-package-X -> package-X:print-name + test-package-X + > package-X:print-name -> package-X@0.0.0 print-name -> echo test-package-X -test-package-X + > package-X@0.0.0 print-name + > echo test-package-X -> package-X:print-name + test-package-X + > package-X:print-name -> package-X@0.0.0 print-name -> echo test-package-X -test-package-X + > package-X@0.0.0 print-name + > echo test-package-X - + test-package-X - > Lerna (powered by Nx) Successfully ran target print-name for 3 projects -lerna notice cli v999.9.9-e2e.0 + > Lerna (powered by Nx) Successfully ran target print-name for 3 projects -`); + + lerna notice cli v999.9.9-e2e.0 + + `); }); it("--parallel should not warn", async () => { @@ -401,46 +401,46 @@ lerna notice cli v999.9.9-e2e.0 expect(output.combinedOutput).toMatchInlineSnapshot(` - > Lerna (powered by Nx) Running target print-name for 3 project(s): + > Lerna (powered by Nx) Running target print-name for 3 project(s): + + - package-X + - package-X + - package-X - - package-X - - package-X - - package-X - -> package-X:print-name + > package-X:print-name -> package-X@0.0.0 print-name -> echo test-package-X + > package-X@0.0.0 print-name + > echo test-package-X -test-package-X + test-package-X -> package-X:print-name + > package-X:print-name -> package-X@0.0.0 print-name -> echo test-package-X + > package-X@0.0.0 print-name + > echo test-package-X -test-package-X + test-package-X -> package-X:print-name + > package-X:print-name -> package-X@0.0.0 print-name -> echo test-package-X + > package-X@0.0.0 print-name + > echo test-package-X -test-package-X + test-package-X - - > Lerna (powered by Nx) Successfully ran target print-name for 3 projects + > Lerna (powered by Nx) Successfully ran target print-name for 3 projects -lerna notice cli v999.9.9-e2e.0 -`); + lerna notice cli v999.9.9-e2e.0 + + `); }); it("--sort should not warn", async () => { @@ -448,46 +448,46 @@ lerna notice cli v999.9.9-e2e.0 expect(output.combinedOutput).toMatchInlineSnapshot(` - > Lerna (powered by Nx) Running target print-name for 3 project(s): + > Lerna (powered by Nx) Running target print-name for 3 project(s): + + - package-X + - package-X + - package-X - - package-X - - package-X - - package-X - -> package-X:print-name + > package-X:print-name -> package-X@0.0.0 print-name -> echo test-package-X + > package-X@0.0.0 print-name + > echo test-package-X -test-package-X + test-package-X -> package-X:print-name + > package-X:print-name -> package-X@0.0.0 print-name -> echo test-package-X + > package-X@0.0.0 print-name + > echo test-package-X -test-package-X + test-package-X -> package-X:print-name + > package-X:print-name -> package-X@0.0.0 print-name -> echo test-package-X + > package-X@0.0.0 print-name + > echo test-package-X -test-package-X + test-package-X - - > Lerna (powered by Nx) Successfully ran target print-name for 3 projects + > Lerna (powered by Nx) Successfully ran target print-name for 3 projects -lerna notice cli v999.9.9-e2e.0 -`); + lerna notice cli v999.9.9-e2e.0 + + `); }); it("--no-sort should not warn", async () => { @@ -495,46 +495,46 @@ lerna notice cli v999.9.9-e2e.0 expect(output.combinedOutput).toMatchInlineSnapshot(` - > Lerna (powered by Nx) Running target print-name for 3 project(s): + > Lerna (powered by Nx) Running target print-name for 3 project(s): + + - package-X + - package-X + - package-X + - - package-X - - package-X - - package-X - + > package-X:print-name -> package-X:print-name + > package-X@0.0.0 print-name + > echo test-package-X -> package-X@0.0.0 print-name -> echo test-package-X + test-package-X -test-package-X + > package-X:print-name -> package-X:print-name + > package-X@0.0.0 print-name + > echo test-package-X -> package-X@0.0.0 print-name -> echo test-package-X + test-package-X -test-package-X + > package-X:print-name -> package-X:print-name + > package-X@0.0.0 print-name + > echo test-package-X -> package-X@0.0.0 print-name -> echo test-package-X + test-package-X -test-package-X - - > Lerna (powered by Nx) Successfully ran target print-name for 3 projects + > Lerna (powered by Nx) Successfully ran target print-name for 3 projects -lerna notice cli v999.9.9-e2e.0 + lerna notice cli v999.9.9-e2e.0 -`); + `); }); it("--include-dependencies should not warn", async () => { @@ -542,46 +542,46 @@ lerna notice cli v999.9.9-e2e.0 expect(output.combinedOutput).toMatchInlineSnapshot(` - > Lerna (powered by Nx) Running target print-name for 3 project(s): + > Lerna (powered by Nx) Running target print-name for 3 project(s): + + - package-X + - package-X + - package-X + - - package-X - - package-X - - package-X - + > package-X:print-name -> package-X:print-name + > package-X@0.0.0 print-name + > echo test-package-X -> package-X@0.0.0 print-name -> echo test-package-X + test-package-X -test-package-X + > package-X:print-name -> package-X:print-name + > package-X@0.0.0 print-name + > echo test-package-X -> package-X@0.0.0 print-name -> echo test-package-X + test-package-X -test-package-X + > package-X:print-name -> package-X:print-name + > package-X@0.0.0 print-name + > echo test-package-X -> package-X@0.0.0 print-name -> echo test-package-X + test-package-X -test-package-X - - > Lerna (powered by Nx) Successfully ran target print-name for 3 projects + > Lerna (powered by Nx) Successfully ran target print-name for 3 projects -lerna notice cli v999.9.9-e2e.0 -lerna notice filter including dependencies + lerna notice cli v999.9.9-e2e.0 + lerna notice filter including dependencies -`); + `); }); }); diff --git a/e2e/tests/lerna-run/lerna-run-nx-pnpm.spec.ts b/e2e/tests/lerna-run/lerna-run-nx-pnpm.spec.ts index be097ab465..99e7c94904 100644 --- a/e2e/tests/lerna-run/lerna-run-nx-pnpm.spec.ts +++ b/e2e/tests/lerna-run/lerna-run-nx-pnpm.spec.ts @@ -186,29 +186,31 @@ describe("lerna-run-nx", () => { version: "workspace:~", }); }); - afterAll(() => fixture.destroy()); + afterAll(() => { + fixture?.destroy(); + }); it("should run script on all child packages", async () => { const output = await fixture.lerna("run print-name"); expect(output.combinedOutput).toMatchInlineSnapshot(` - > Lerna (powered by Nx) Running target print-name for 12 project(s): +> Lerna (powered by Nx) Running target print-name for 12 project(s): + +- package-X +- package-X +- package-X +- package-X +- package-X +- package-X +- package-X +- package-X +- package-X +- package-X +- package-X +- package-app - - package-X - - package-X - - package-X - - package-X - - package-X - - package-X - - package-X - - package-X - - package-X - - package-X - - package-X - - package-app - > package-X:print-name @@ -306,9 +308,9 @@ test-package-X test-package-app - - > Lerna (powered by Nx) Successfully ran target print-name for 12 projects + +> Lerna (powered by Nx) Successfully ran target print-name for 12 projects lerna notice cli v999.9.9-e2e.0 diff --git a/e2e/tests/lerna-run/lerna-run.spec.ts b/e2e/tests/lerna-run/lerna-run.spec.ts index d7903584f5..d44d325cf0 100644 --- a/e2e/tests/lerna-run/lerna-run.spec.ts +++ b/e2e/tests/lerna-run/lerna-run.spec.ts @@ -55,38 +55,94 @@ describe("lerna-run", () => { it("should run script on all child packages", async () => { const output = await fixture.lerna("run print-name -- --silent"); - expect(output.combinedOutput).toMatchInlineSnapshot(` - test-package-X - test-package-X - test-package-X - lerna notice cli v999.9.9-e2e.0 - lerna info Executing command in 3 packages: "npm run print-name --silent" - lerna info run Ran npm script 'print-name' in 'package-X' in X.Xs: - lerna info run Ran npm script 'print-name' in 'package-X' in X.Xs: - lerna info run Ran npm script 'print-name' in 'package-X' in X.Xs: - lerna success run Ran npm script 'print-name' in 3 packages in X.Xs: - lerna success - package-X - lerna success - package-X - lerna success - package-X - - `); + + > Lerna (powered by Nx) Running target print-name for 3 project(s): + + - package-X + - package-X + - package-X + + With additional flags: + --silent=true + + + + > package-X:print-name --silent + + + > package-X@0.0.0 print-name + > echo test-package-X "--silent" + + test-package-X --silent + + > package-X:print-name --silent + + + > package-X@0.0.0 print-name + > echo test-package-X "--silent" + + test-package-X --silent + + > package-X:print-name --silent + + + > package-X@0.0.0 print-name + > echo test-package-X "--silent" + + test-package-X --silent + + + + > Lerna (powered by Nx) Successfully ran target print-name for 3 projects + + + lerna notice cli v999.9.9-e2e.0 + + `); }); describe("--stream", () => { it("should run script on all child packages with package name prefixes", async () => { - const output = await fixture.lerna("run print-name --stream -- --silent"); + const output = await fixture.lerna("run print-name --stream --concurrency=1 -- --silent"); expect(output.combinedOutput).toMatchInlineSnapshot(` - package-X: test-package-X - package-X: test-package-X - package-X: test-package-X + + > Lerna (powered by Nx) Running target print-name for 3 project(s): + + - package-X + - package-X + - package-X + + With additional flags: + --silent=true + + + + > package-X:print-name --silent + + package-X: > package-X@0.0.0 print-name + package-X: > echo test-package-X "--silent" + package-X: test-package-X --silent + + > package-X:print-name --silent + + package-X: > package-X@0.0.0 print-name + package-X: > echo test-package-X "--silent" + package-X: test-package-X --silent + + > package-X:print-name --silent + + package-X: > package-X@0.0.0 print-name + package-X: > echo test-package-X "--silent" + package-X: test-package-X --silent + + + + > Lerna (powered by Nx) Successfully ran target print-name for 3 projects + + lerna notice cli v999.9.9-e2e.0 - lerna info Executing command in 3 packages: "npm run print-name --silent" - lerna success run Ran npm script 'print-name' in 3 packages in X.Xs: - lerna success - package-X - lerna success - package-X - lerna success - package-X `); }); @@ -97,17 +153,50 @@ describe("lerna-run", () => { const output = await fixture.lerna("run print-name --parallel -- --silent"); expect(output.combinedOutput).toMatchInlineSnapshot(` - package-X: test-package-X - package-X: test-package-X - package-X: test-package-X - lerna notice cli v999.9.9-e2e.0 - lerna info Executing command in 3 packages: "npm run print-name --silent" - lerna success run Ran npm script 'print-name' in 3 packages in X.Xs: - lerna success - package-X - lerna success - package-X - lerna success - package-X - `); + > Lerna (powered by Nx) Running target print-name for 3 project(s): + + - package-X + - package-X + - package-X + + With additional flags: + --silent=true + + + + > package-X:print-name --silent + + + > package-X@0.0.0 print-name + > echo test-package-X "--silent" + + test-package-X --silent + + > package-X:print-name --silent + + + > package-X@0.0.0 print-name + > echo test-package-X "--silent" + + test-package-X --silent + + > package-X:print-name --silent + + + > package-X@0.0.0 print-name + > echo test-package-X "--silent" + + test-package-X --silent + + + + > Lerna (powered by Nx) Successfully ran target print-name for 3 projects + + + lerna notice cli v999.9.9-e2e.0 + + `); }); }); @@ -117,34 +206,95 @@ describe("lerna-run", () => { const output = await fixture.lerna("run print-name --no-prefix --parallel -- --silent"); expect(output.combinedOutput).toMatchInlineSnapshot(` - test-package-X - test-package-X - test-package-X - lerna notice cli v999.9.9-e2e.0 - lerna info Executing command in 3 packages: "npm run print-name --silent" - lerna success run Ran npm script 'print-name' in 3 packages in X.Xs: - lerna success - package-X - lerna success - package-X - lerna success - package-X - `); + > Lerna (powered by Nx) Running target print-name for 3 project(s): + + - package-X + - package-X + - package-X + + With additional flags: + --silent=true + + + + > package-X:print-name --silent + + + > package-X@0.0.0 print-name + > echo test-package-X "--silent" + + test-package-X --silent + + > package-X:print-name --silent + + + > package-X@0.0.0 print-name + > echo test-package-X "--silent" + + test-package-X --silent + + > package-X:print-name --silent + + + > package-X@0.0.0 print-name + > echo test-package-X "--silent" + + test-package-X --silent + + + + > Lerna (powered by Nx) Successfully ran target print-name for 3 projects + + + lerna notice cli v999.9.9-e2e.0 + lerna WARN run "no-prefix" is ignored when not using streaming output. + + `); }); }); describe("--stream", () => { it("should run script on all child packages and suppress package name prefixes", async () => { - const output = await fixture.lerna("run print-name --no-prefix --stream -- --silent"); + const output = await fixture.lerna("run print-name --no-prefix --concurrency=1 --stream -- --silent"); expect(output.combinedOutput).toMatchInlineSnapshot(` - test-package-X - test-package-X - test-package-X + + > Lerna (powered by Nx) Running target print-name for 3 project(s): + + - package-X + - package-X + - package-X + + With additional flags: + --silent=true + + + + > package-X:print-name --silent + + > package-X@0.0.0 print-name + > echo test-package-X "--silent" + test-package-X --silent + + > package-X:print-name --silent + + > package-X@0.0.0 print-name + > echo test-package-X "--silent" + test-package-X --silent + + > package-X:print-name --silent + + > package-X@0.0.0 print-name + > echo test-package-X "--silent" + test-package-X --silent + + + + > Lerna (powered by Nx) Successfully ran target print-name for 3 projects + + lerna notice cli v999.9.9-e2e.0 - lerna info Executing command in 3 packages: "npm run print-name --silent" - lerna success run Ran npm script 'print-name' in 3 packages in X.Xs: - lerna success - package-X - lerna success - package-X - lerna success - package-X `); }); @@ -156,21 +306,51 @@ describe("lerna-run", () => { const output = await fixture.lerna("run print-name --profile -- --silent"); expect(output.combinedOutput).toMatchInlineSnapshot(` - test-package-X - test-package-X - test-package-X - lerna notice cli v999.9.9-e2e.0 - lerna info Executing command in 3 packages: "npm run print-name --silent" - lerna info run Ran npm script 'print-name' in 'package-X' in X.Xs: - lerna info run Ran npm script 'print-name' in 'package-X' in X.Xs: - lerna info run Ran npm script 'print-name' in 'package-X' in X.Xs: - lerna info profiler Performance profile saved to /tmp/lerna-e2e/lerna-run/lerna-workspace/Lerna-Profile-XXXXXXXXTXXXXXX.json - lerna success run Ran npm script 'print-name' in 3 packages in X.Xs: - lerna success - package-X - lerna success - package-X - lerna success - package-X - `); + > Lerna (powered by Nx) Running target print-name for 3 project(s): + + - package-X + - package-X + - package-X + + With additional flags: + --silent=true + + + + > package-X:print-name --silent + + + > package-X@0.0.0 print-name + > echo test-package-X "--silent" + + test-package-X --silent + + > package-X:print-name --silent + + + > package-X@0.0.0 print-name + > echo test-package-X "--silent" + + test-package-X --silent + + > package-X:print-name --silent + + + > package-X@0.0.0 print-name + > echo test-package-X "--silent" + + test-package-X --silent + + + + > Lerna (powered by Nx) Successfully ran target print-name for 3 projects + + + Performance Profile: /tmp/lerna-e2e/lerna-run/lerna-workspace/Lerna-Profile-XXXXXXXXTXXXXXX.json + lerna notice cli v999.9.9-e2e.0 + + `); const lernaProfileSavedOutputLine = output.combinedOutput.split("\n")[8]; @@ -185,88 +365,67 @@ describe("lerna-run", () => { const output = await fixture.lerna(`run print-name --profile --profile-location=profiles -- --silent`); expect(output.combinedOutput).toMatchInlineSnapshot(` - test-package-X - test-package-X - test-package-X - lerna notice cli v999.9.9-e2e.0 - lerna info Executing command in 3 packages: "npm run print-name --silent" - lerna info run Ran npm script 'print-name' in 'package-X' in X.Xs: - lerna info run Ran npm script 'print-name' in 'package-X' in X.Xs: - lerna info run Ran npm script 'print-name' in 'package-X' in X.Xs: - lerna info profiler Performance profile saved to /tmp/lerna-e2e/lerna-run/lerna-workspace/profiles/Lerna-Profile-XXXXXXXXTXXXXXX.json - lerna success run Ran npm script 'print-name' in 3 packages in X.Xs: - lerna success - package-X - lerna success - package-X - lerna success - package-X - `); + > Lerna (powered by Nx) Running target print-name for 3 project(s): - const lernaProfileSavedOutputLine = output.combinedOutput.split("\n")[8]; + - package-X + - package-X + - package-X - const lernaProfileFileName = lernaProfileSavedOutputLine.split("lerna-run/lerna-workspace/")[1]; + With additional flags: + --silent=true - expect(existsSync(fixture.getWorkspacePath(lernaProfileFileName))).toBe(true); - }); - }); - describe("--npm-client", () => { - it("should run script on all child packages using yarn", async () => { - const output = await fixture.lerna(`run print-name --npm-client=yarn`); - expect(output.combinedOutput).toMatchInlineSnapshot(` - yarn run v1.22.18 - $ echo test-package-X - test-package-X - Done in X.Xs. - yarn run v1.22.18 - $ echo test-package-X - test-package-X - Done in X.Xs. - yarn run v1.22.18 - $ echo test-package-X - test-package-X - Done in X.Xs. - lerna notice cli v999.9.9-e2e.0 - lerna info Executing command in 3 packages: "yarn run print-name" - lerna info run Ran npm script 'print-name' in 'package-X' in X.Xs: - lerna info run Ran npm script 'print-name' in 'package-X' in X.Xs: - lerna info run Ran npm script 'print-name' in 'package-X' in X.Xs: - lerna success run Ran npm script 'print-name' in 3 packages in X.Xs: - lerna success - package-X - lerna success - package-X - lerna success - package-X + > package-X:print-name --silent - `); - }); - it("should run script on all child packages using npm", async () => { - const output = await fixture.lerna(`run print-name --npm-client=npm`); + > package-X@0.0.0 print-name + > echo test-package-X "--silent" - expect(output.combinedOutput).toMatchInlineSnapshot(` + test-package-X --silent + + > package-X:print-name --silent + + + > package-X@0.0.0 print-name + > echo test-package-X "--silent" - > package-X@0.0.0 print-name - > echo test-package-X + test-package-X --silent - test-package-X + > package-X:print-name --silent - > package-X@0.0.0 print-name - > echo test-package-X - test-package-X + > package-X@0.0.0 print-name + > echo test-package-X "--silent" - > package-X@0.0.0 print-name - > echo test-package-X + test-package-X --silent - test-package-X + + + > Lerna (powered by Nx) Successfully ran target print-name for 3 projects + + + Performance Profile: /tmp/lerna-e2e/lerna-run/lerna-workspace/profiles/Lerna-Profile-XXXXXXXXTXXXXXX.json + lerna notice cli v999.9.9-e2e.0 + + `); + + const lernaProfileSavedOutputLine = output.combinedOutput.split("\n")[8]; + + const lernaProfileFileName = lernaProfileSavedOutputLine.split("lerna-run/lerna-workspace/")[1]; + + expect(existsSync(fixture.getWorkspacePath(lernaProfileFileName))).toBe(true); + }); + }); + + describe("--npm-client", () => { + it("should error when attempting to use the legacy option", async () => { + const output = await fixture.lerna(`run print-name --npm-client=yarn`, { silenceError: true }); + + expect(output.combinedOutput).toMatchInlineSnapshot(` lerna notice cli v999.9.9-e2e.0 - lerna info Executing command in 3 packages: "npm run print-name" - lerna info run Ran npm script 'print-name' in 'package-X' in X.Xs: - lerna info run Ran npm script 'print-name' in 'package-X' in X.Xs: - lerna info run Ran npm script 'print-name' in 'package-X' in X.Xs: - lerna success run Ran npm script 'print-name' in 3 packages in X.Xs: - lerna success - package-X - lerna success - package-X - lerna success - package-X + lerna ERR! run The legacy task runner option \`--npm-client\` is not currently supported. Please open an issue on https://github.com/lerna/lerna if you require this feature. `); }); @@ -281,7 +440,7 @@ describe("lerna-run", () => { }); }); -describe("useNx", () => { +describe("lerna run with nx config", () => { let fixture: Fixture; beforeAll(async () => { @@ -299,7 +458,7 @@ describe("useNx", () => { forceDeterministicTerminalOutput: true, }); - await fixture.addNxToWorkspace(); + await fixture.addNxJsonToWorkspace(); await fixture.lerna("create package-1 -y"); await fixture.addScriptsToPackage({ @@ -346,46 +505,46 @@ describe("useNx", () => { expect(output.combinedOutput).toMatchInlineSnapshot(` - > Lerna (powered by Nx) Running target print-name for 3 project(s): + > Lerna (powered by Nx) Running target print-name for 3 project(s): - - package-X - - package-X - - package-X + - package-X + - package-X + - package-X - -> package-X:print-name + > package-X:print-name -> package-X@0.0.0 print-name -> echo test-package-X -test-package-X + > package-X@0.0.0 print-name + > echo test-package-X -> package-X:print-name + test-package-X + > package-X:print-name -> package-X@0.0.0 print-name -> echo test-package-X -test-package-X + > package-X@0.0.0 print-name + > echo test-package-X -> package-X:print-name + test-package-X + > package-X:print-name -> package-X@0.0.0 print-name -> echo test-package-X -test-package-X + > package-X@0.0.0 print-name + > echo test-package-X - + test-package-X - > Lerna (powered by Nx) Successfully ran target print-name for 3 projects -lerna notice cli v999.9.9-e2e.0 + > Lerna (powered by Nx) Successfully ran target print-name for 3 projects + + + lerna notice cli v999.9.9-e2e.0 -`); + `); }); describe("run one", () => { @@ -393,21 +552,21 @@ lerna notice cli v999.9.9-e2e.0 const output = await fixture.lerna(`run print-name-run-one-only`); expect(output.combinedOutput).toMatchInlineSnapshot(` - - > package-X:print-name-run-one-only - - > package-X@0.0.0 print-name-run-one-only - > echo test-package-X-run-one-only - test-package-X-run-one-only - - - - > Lerna (powered by Nx) Successfully ran target print-name-run-one-only for project package-X - - - lerna notice cli v999.9.9-e2e.0 - - `); + + > package-X:print-name-run-one-only + + > package-X@0.0.0 print-name-run-one-only + > echo test-package-X-run-one-only + test-package-X-run-one-only + + + + > Lerna (powered by Nx) Successfully ran target print-name-run-one-only for project package-X + + + lerna notice cli v999.9.9-e2e.0 + + `); }); it("should run script with colon on single child package using nx", async () => { @@ -415,20 +574,20 @@ lerna notice cli v999.9.9-e2e.0 expect(output.combinedOutput).toMatchInlineSnapshot(` - > package-X:"print:name:run-one-only" - - > package-X@0.0.0 print:name:run-one-only - > echo test-package-X-run-one-only-with-colon - test-package-X-run-one-only-with-colon - - - - > Lerna (powered by Nx) Successfully ran target print:name:run-one-only for project package-X - - - lerna notice cli v999.9.9-e2e.0 - - `); + > package-X:"print:name:run-one-only" + + > package-X@0.0.0 print:name:run-one-only + > echo test-package-X-run-one-only-with-colon + test-package-X-run-one-only-with-colon + + + + > Lerna (powered by Nx) Successfully ran target print:name:run-one-only for project package-X + + + lerna notice cli v999.9.9-e2e.0 + + `); }); }); @@ -437,92 +596,36 @@ lerna notice cli v999.9.9-e2e.0 expect(output.combinedOutput).toMatchInlineSnapshot(` - > Lerna (powered by Nx) Running target print:name for 2 project(s): + > Lerna (powered by Nx) Running target print:name for 2 project(s): - - package-X - - package-X + - package-X + - package-X - -> package-X:"print:name" + > package-X:"print:name" -> package-X@0.0.0 print:name -> echo test-package-X -test-package-X + > package-X@0.0.0 print:name + > echo test-package-X -> package-X:"print:name" + test-package-X + > package-X:"print:name" -> package-X@0.0.0 print:name -> echo test-package-X -test-package-X + > package-X@0.0.0 print:name + > echo test-package-X - + test-package-X - > Lerna (powered by Nx) Successfully ran target print:name for 2 projects -lerna notice cli v999.9.9-e2e.0 - -`); - }); -}); - -describe("--no-bail", () => { - let fixture: Fixture; - - beforeAll(async () => { - fixture = await Fixture.create({ - name: "lerna-run-no-bail", - packageManager: "npm", - initializeGit: true, - runLernaInit: true, - installDependencies: true, - forceDeterministicTerminalOutput: true, - }); + > Lerna (powered by Nx) Successfully ran target print:name for 2 projects - await fixture.lerna("create package-1 -y"); - await fixture.addScriptsToPackage({ - packagePath: "packages/package-1", - scripts: { - "print-name": "echo test-package-1", - }, - }); - await fixture.lerna("create package-2 -y"); - await fixture.addScriptsToPackage({ - packagePath: "packages/package-2", - scripts: { - "print-name": "echo test-package-2", - }, - }); - await fixture.lerna("create package-3 -y"); - await fixture.addScriptsToPackage({ - packagePath: "packages/package-3", - scripts: { - "print-name": "exit 100", - }, - }); - }); - afterAll(() => fixture.destroy()); - it("should run script on all child packages and throw, but not abort, on script failure", async () => { - await expect(fixture.lerna("run print-name --no-bail -- --silent")).rejects - .toThrowErrorMatchingInlineSnapshot(` - Command failed: npx --offline --no lerna run print-name --no-bail -- --silent lerna notice cli v999.9.9-e2e.0 - lerna info Executing command in 3 packages: "npm run print-name --silent" - lerna info run Ran npm script 'print-name' in 'package-X' in X.Xs: - lerna info run Ran npm script 'print-name' in 'package-X' in X.Xs: - lerna info run Ran npm script 'print-name' in 'package-X' in X.Xs: - lerna ERR! Received non-zero exit code 100 during execution - lerna success run Ran npm script 'print-name' in 3 packages in X.Xs: - lerna success - package-X - lerna success - package-X - lerna success - package-X - - `); + + `); }); }); diff --git a/e2e/utils/fixture.ts b/e2e/utils/fixture.ts index 33137698cb..680f20506a 100644 --- a/e2e/utils/fixture.ts +++ b/e2e/utils/fixture.ts @@ -68,7 +68,7 @@ export class Fixture { forceDeterministicTerminalOutput || false ); - fixture.createFixtureRoot(); + await fixture.createFixtureRoot(); await fixture.createGitOrigin(); if (initializeGit) { @@ -191,7 +191,6 @@ export class Fixture { private async revertDefaultInitOptions(): Promise { await this.overrideLernaConfig({ - useNx: false, useWorkspaces: false, packages: ["packages/*"], }); @@ -240,12 +239,7 @@ export class Fixture { } } - async addNxToWorkspace(): Promise { - await this.updateJson("lerna.json", (json) => ({ - ...json, - useNx: true, - })); - + async addNxJsonToWorkspace(): Promise { writeJsonFile(this.getWorkspacePath("nx.json"), { extends: "nx/presets/npm.json", tasksRunnerOptions: { @@ -254,8 +248,6 @@ export class Fixture { }, }, }); - - await this.install("-D nx@latest"); } async addPackagesDirectory(path: string): Promise { diff --git a/e2e/utils/snapshot-serializer-utils.ts b/e2e/utils/snapshot-serializer-utils.ts index 8fa06ffb3f..97f9d6094e 100644 --- a/e2e/utils/snapshot-serializer-utils.ts +++ b/e2e/utils/snapshot-serializer-utils.ts @@ -42,8 +42,13 @@ export function normalizeEnvironment(str: string): string { * strip the specifics of individual package names and execution timings. */ export function normalizeCommandOutput(str: string): string { - return str + const lines = str .replaceAll(/package-\d/g, "package-X") .replaceAll(/\d\.(\d{1,2})s/g, "X.Xs") .replaceAll(/Lerna-Profile-\d{8}T\d{6}\.json/g, "Lerna-Profile-XXXXXXXXTXXXXXX.json"); + // We trim each line to reduce the changes of snapshot flakiness + return lines + .split("\n") + .map((r) => r.trim()) + .join("\n"); } diff --git a/integration/__fixtures__/lerna-bootstrap/lerna.json b/integration/__fixtures__/lerna-bootstrap/lerna.json index 6f150973ba..4ef483ffc9 100644 --- a/integration/__fixtures__/lerna-bootstrap/lerna.json +++ b/integration/__fixtures__/lerna-bootstrap/lerna.json @@ -2,5 +2,6 @@ "packages": [ "package-*" ], - "version": "1.0.0" + "version": "1.0.0", + "useNx": false } diff --git a/integration/__fixtures__/lerna-run/lerna.json b/integration/__fixtures__/lerna-run/lerna.json index 743ceadeaa..b565238e10 100644 --- a/integration/__fixtures__/lerna-run/lerna.json +++ b/integration/__fixtures__/lerna-run/lerna.json @@ -1,4 +1,5 @@ { "version": "1.0.0", - "packages": ["packages/*"] + "packages": ["packages/*"], + "useNx": false } diff --git a/integration/lerna-init.test.js b/integration/lerna-init.test.js index 36d63386d8..c3679278c1 100644 --- a/integration/lerna-init.test.js +++ b/integration/lerna-init.test.js @@ -43,7 +43,6 @@ describe("lerna init", () => { expect(lernaJson).toMatchInlineSnapshot(` Object { "$schema": "node_modules/lerna/schemas/lerna-schema.json", - "useNx": true, "useWorkspaces": true, "version": "0.0.0", } @@ -88,7 +87,6 @@ describe("lerna init", () => { "packages": Array [ "packages/*", ], - "useNx": false, "useWorkspaces": false, "version": "1.0.0", } diff --git a/lerna.json b/lerna.json index 31f53e03a3..16ca2d3435 100644 --- a/lerna.json +++ b/lerna.json @@ -9,7 +9,6 @@ "tempTag": true }, "version": { - "allowBranch": "main", "conventionalCommits": true, "createRelease": "github", "exact": true, @@ -18,6 +17,5 @@ }, "ignoreChanges": ["**/__fixtures__/**", "**/__tests__/**", "**/*.md"], "useWorkspaces": true, - "useNx": true, - "version": "5.6.2" + "version": "6.0.0-alpha.1" } diff --git a/package-lock.json b/package-lock.json index 47a99dd922..c35102da56 100644 --- a/package-lock.json +++ b/package-lock.json @@ -129,7 +129,7 @@ }, "commands/add": { "name": "@lerna/add", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "license": "MIT", "dependencies": { "@lerna/bootstrap": "file:../bootstrap", @@ -149,7 +149,7 @@ }, "commands/bootstrap": { "name": "@lerna/bootstrap", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "license": "MIT", "dependencies": { "@lerna/command": "file:../../core/command", @@ -181,7 +181,7 @@ }, "commands/changed": { "name": "@lerna/changed", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "license": "MIT", "dependencies": { "@lerna/collect-updates": "file:../../utils/collect-updates", @@ -195,7 +195,7 @@ }, "commands/clean": { "name": "@lerna/clean", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "license": "MIT", "dependencies": { "@lerna/command": "file:../../core/command", @@ -213,7 +213,7 @@ }, "commands/create": { "name": "@lerna/create", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "license": "MIT", "dependencies": { "@lerna/child-process": "file:../../core/child-process", @@ -239,7 +239,7 @@ }, "commands/diff": { "name": "@lerna/diff", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "license": "MIT", "dependencies": { "@lerna/child-process": "file:../../core/child-process", @@ -253,7 +253,7 @@ }, "commands/exec": { "name": "@lerna/exec", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "license": "MIT", "dependencies": { "@lerna/child-process": "file:../../core/child-process", @@ -270,7 +270,7 @@ }, "commands/import": { "name": "@lerna/import", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "license": "MIT", "dependencies": { "@lerna/child-process": "file:../../core/child-process", @@ -288,7 +288,7 @@ }, "commands/info": { "name": "@lerna/info", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "license": "MIT", "dependencies": { "@lerna/command": "file:../../core/command", @@ -301,7 +301,7 @@ }, "commands/init": { "name": "@lerna/init", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "license": "MIT", "dependencies": { "@lerna/child-process": "file:../../core/child-process", @@ -317,7 +317,7 @@ }, "commands/link": { "name": "@lerna/link", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "license": "MIT", "dependencies": { "@lerna/command": "file:../../core/command", @@ -333,7 +333,7 @@ }, "commands/list": { "name": "@lerna/list", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "license": "MIT", "dependencies": { "@lerna/command": "file:../../core/command", @@ -347,7 +347,7 @@ }, "commands/publish": { "name": "@lerna/publish", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "license": "MIT", "dependencies": { "@lerna/check-working-tree": "file:../../utils/check-working-tree", @@ -385,7 +385,7 @@ }, "commands/run": { "name": "@lerna/run", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "license": "MIT", "dependencies": { "@lerna/command": "file:../../core/command", @@ -405,7 +405,7 @@ }, "commands/version": { "name": "@lerna/version", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "license": "MIT", "dependencies": { "@lerna/check-working-tree": "file:../../utils/check-working-tree", @@ -442,7 +442,7 @@ }, "core/child-process": { "name": "@lerna/child-process", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "license": "MIT", "dependencies": { "chalk": "^4.1.0", @@ -455,7 +455,7 @@ }, "core/cli": { "name": "@lerna/cli", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "license": "MIT", "dependencies": { "@lerna/global-options": "file:../global-options", @@ -469,7 +469,7 @@ }, "core/command": { "name": "@lerna/command", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "license": "MIT", "dependencies": { "@lerna/child-process": "file:../child-process", @@ -489,7 +489,7 @@ }, "core/conventional-commits": { "name": "@lerna/conventional-commits", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "license": "MIT", "dependencies": { "@lerna/validation-error": "file:../validation-error", @@ -509,7 +509,7 @@ }, "core/filter-options": { "name": "@lerna/filter-options", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "license": "MIT", "dependencies": { "@lerna/collect-updates": "file:../../utils/collect-updates", @@ -523,14 +523,14 @@ }, "core/global-options": { "name": "@lerna/global-options", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "license": "MIT", "engines": { "node": "^14.15.0 || >=16.0.0" } }, "core/lerna": { - "version": "5.6.2", + "version": "6.0.0-alpha.1", "license": "MIT", "dependencies": { "@lerna/add": "file:../../commands/add", @@ -566,7 +566,7 @@ }, "core/otplease": { "name": "@lerna/otplease", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "license": "MIT", "dependencies": { "@lerna/prompt": "file:../prompt" @@ -577,7 +577,7 @@ }, "core/package": { "name": "@lerna/package", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "license": "MIT", "dependencies": { "load-json-file": "^6.2.0", @@ -590,7 +590,7 @@ }, "core/package-graph": { "name": "@lerna/package-graph", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "license": "MIT", "dependencies": { "@lerna/prerelease-id-from-version": "file:../../utils/prerelease-id-from-version", @@ -605,7 +605,7 @@ }, "core/project": { "name": "@lerna/project", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "license": "MIT", "dependencies": { "@lerna/package": "file:../package", @@ -628,7 +628,7 @@ }, "core/prompt": { "name": "@lerna/prompt", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "license": "MIT", "dependencies": { "inquirer": "^8.2.4", @@ -640,7 +640,7 @@ }, "core/validation-error": { "name": "@lerna/validation-error", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "license": "MIT", "dependencies": { "npmlog": "^6.0.2" @@ -17524,7 +17524,7 @@ }, "utils/check-working-tree": { "name": "@lerna/check-working-tree", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "license": "MIT", "dependencies": { "@lerna/collect-uncommitted": "file:../collect-uncommitted", @@ -17537,7 +17537,7 @@ }, "utils/collect-uncommitted": { "name": "@lerna/collect-uncommitted", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "license": "MIT", "dependencies": { "@lerna/child-process": "file:../../core/child-process", @@ -17550,7 +17550,7 @@ }, "utils/collect-updates": { "name": "@lerna/collect-updates", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "license": "MIT", "dependencies": { "@lerna/child-process": "file:../../core/child-process", @@ -17565,7 +17565,7 @@ }, "utils/create-symlink": { "name": "@lerna/create-symlink", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "license": "MIT", "dependencies": { "cmd-shim": "^5.0.0", @@ -17578,7 +17578,7 @@ }, "utils/describe-ref": { "name": "@lerna/describe-ref", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "license": "MIT", "dependencies": { "@lerna/child-process": "file:../../core/child-process", @@ -17590,7 +17590,7 @@ }, "utils/filter-packages": { "name": "@lerna/filter-packages", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "license": "MIT", "dependencies": { "@lerna/validation-error": "file:../../core/validation-error", @@ -17603,7 +17603,7 @@ }, "utils/get-npm-exec-opts": { "name": "@lerna/get-npm-exec-opts", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "license": "MIT", "dependencies": { "npmlog": "^6.0.2" @@ -17614,7 +17614,7 @@ }, "utils/get-packed": { "name": "@lerna/get-packed", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "license": "MIT", "dependencies": { "fs-extra": "^9.1.0", @@ -17627,7 +17627,7 @@ }, "utils/github-client": { "name": "@lerna/github-client", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "license": "MIT", "dependencies": { "@lerna/child-process": "file:../../core/child-process", @@ -17642,7 +17642,7 @@ }, "utils/gitlab-client": { "name": "@lerna/gitlab-client", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "license": "MIT", "dependencies": { "node-fetch": "^2.6.1", @@ -17654,7 +17654,7 @@ }, "utils/has-npm-version": { "name": "@lerna/has-npm-version", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "license": "MIT", "dependencies": { "@lerna/child-process": "file:../../core/child-process", @@ -17666,7 +17666,7 @@ }, "utils/listable": { "name": "@lerna/listable", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "license": "MIT", "dependencies": { "@lerna/query-graph": "file:../query-graph", @@ -17679,7 +17679,7 @@ }, "utils/log-packed": { "name": "@lerna/log-packed", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "license": "MIT", "dependencies": { "byte-size": "^7.0.0", @@ -17693,7 +17693,7 @@ }, "utils/map-to-registry": { "name": "@lerna/map-to-registry", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "license": "MIT", "dependencies": { "npm-package-arg": "8.1.1", @@ -17705,7 +17705,7 @@ }, "utils/npm-conf": { "name": "@lerna/npm-conf", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "license": "MIT", "dependencies": { "config-chain": "^1.1.12", @@ -17717,7 +17717,7 @@ }, "utils/npm-dist-tag": { "name": "@lerna/npm-dist-tag", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "license": "MIT", "dependencies": { "@lerna/otplease": "file:../../core/otplease", @@ -17731,7 +17731,7 @@ }, "utils/npm-install": { "name": "@lerna/npm-install", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "license": "MIT", "dependencies": { "@lerna/child-process": "file:../../core/child-process", @@ -17748,7 +17748,7 @@ }, "utils/npm-publish": { "name": "@lerna/npm-publish", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "license": "MIT", "dependencies": { "@lerna/otplease": "file:../../core/otplease", @@ -17766,7 +17766,7 @@ }, "utils/npm-run-script": { "name": "@lerna/npm-run-script", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "license": "MIT", "dependencies": { "@lerna/child-process": "file:../../core/child-process", @@ -17779,7 +17779,7 @@ }, "utils/output": { "name": "@lerna/output", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "license": "MIT", "dependencies": { "npmlog": "^6.0.2" @@ -17790,7 +17790,7 @@ }, "utils/pack-directory": { "name": "@lerna/pack-directory", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "license": "MIT", "dependencies": { "@lerna/get-packed": "file:../get-packed", @@ -17807,7 +17807,7 @@ }, "utils/prerelease-id-from-version": { "name": "@lerna/prerelease-id-from-version", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "license": "MIT", "dependencies": { "semver": "^7.3.4" @@ -17818,7 +17818,7 @@ }, "utils/profiler": { "name": "@lerna/profiler", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "license": "MIT", "dependencies": { "fs-extra": "^9.1.0", @@ -17831,7 +17831,7 @@ }, "utils/pulse-till-done": { "name": "@lerna/pulse-till-done", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "license": "MIT", "dependencies": { "npmlog": "^6.0.2" @@ -17842,7 +17842,7 @@ }, "utils/query-graph": { "name": "@lerna/query-graph", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "license": "MIT", "dependencies": { "@lerna/package-graph": "file:../../core/package-graph" @@ -17853,7 +17853,7 @@ }, "utils/resolve-symlink": { "name": "@lerna/resolve-symlink", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "license": "MIT", "dependencies": { "fs-extra": "^9.1.0", @@ -17866,7 +17866,7 @@ }, "utils/rimraf-dir": { "name": "@lerna/rimraf-dir", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "license": "MIT", "dependencies": { "@lerna/child-process": "file:../../core/child-process", @@ -17880,7 +17880,7 @@ }, "utils/run-lifecycle": { "name": "@lerna/run-lifecycle", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "license": "MIT", "dependencies": { "@lerna/npm-conf": "file:../npm-conf", @@ -17894,7 +17894,7 @@ }, "utils/run-topologically": { "name": "@lerna/run-topologically", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "license": "MIT", "dependencies": { "@lerna/query-graph": "file:../query-graph", @@ -17906,7 +17906,7 @@ }, "utils/symlink-binary": { "name": "@lerna/symlink-binary", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "license": "MIT", "dependencies": { "@lerna/create-symlink": "file:../create-symlink", @@ -17920,7 +17920,7 @@ }, "utils/symlink-dependencies": { "name": "@lerna/symlink-dependencies", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "license": "MIT", "dependencies": { "@lerna/create-symlink": "file:../create-symlink", @@ -17936,7 +17936,7 @@ }, "utils/temp-write": { "name": "@lerna/temp-write", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "license": "MIT", "dependencies": { "graceful-fs": "^4.1.15", @@ -17948,7 +17948,7 @@ }, "utils/timer": { "name": "@lerna/timer", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "license": "MIT", "engines": { "node": "^14.15.0 || >=16.0.0" @@ -17956,7 +17956,7 @@ }, "utils/write-log-file": { "name": "@lerna/write-log-file", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "license": "MIT", "dependencies": { "npmlog": "^6.0.2", diff --git a/utils/check-working-tree/CHANGELOG.md b/utils/check-working-tree/CHANGELOG.md index e7aca69d77..c7980ef8fb 100644 --- a/utils/check-working-tree/CHANGELOG.md +++ b/utils/check-working-tree/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.0.0-alpha.1](https://github.com/lerna/lerna/compare/v5.6.2...v6.0.0-alpha.1) (2022-10-09) + +# [6.0.0-alpha.0](https://github.com/lerna/lerna/compare/v5.6.1...v6.0.0-alpha.0) (2022-10-07) + +**Note:** Version bump only for package @lerna/check-working-tree + ## [5.6.2](https://github.com/lerna/lerna/compare/v5.6.1...v5.6.2) (2022-10-09) **Note:** Version bump only for package @lerna/check-working-tree diff --git a/utils/check-working-tree/package.json b/utils/check-working-tree/package.json index 141aeef819..cac6c8cc53 100644 --- a/utils/check-working-tree/package.json +++ b/utils/check-working-tree/package.json @@ -1,6 +1,6 @@ { "name": "@lerna/check-working-tree", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "description": "Check git working tree status and error appropriately", "keywords": [ "lerna", diff --git a/utils/collect-uncommitted/CHANGELOG.md b/utils/collect-uncommitted/CHANGELOG.md index 25ba165701..1d7329c57d 100644 --- a/utils/collect-uncommitted/CHANGELOG.md +++ b/utils/collect-uncommitted/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.0.0-alpha.1](https://github.com/lerna/lerna/compare/v5.6.2...v6.0.0-alpha.1) (2022-10-09) + +# [6.0.0-alpha.0](https://github.com/lerna/lerna/compare/v5.6.1...v6.0.0-alpha.0) (2022-10-07) + +**Note:** Version bump only for package @lerna/collect-uncommitted + ## [5.6.2](https://github.com/lerna/lerna/compare/v5.6.1...v5.6.2) (2022-10-09) **Note:** Version bump only for package @lerna/collect-uncommitted diff --git a/utils/collect-uncommitted/package.json b/utils/collect-uncommitted/package.json index 5f99304e09..cea3cd2405 100644 --- a/utils/collect-uncommitted/package.json +++ b/utils/collect-uncommitted/package.json @@ -1,6 +1,6 @@ { "name": "@lerna/collect-uncommitted", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "description": "Collect uncommitted changes to working tree for display in error messages", "keywords": [ "lerna", diff --git a/utils/collect-updates/CHANGELOG.md b/utils/collect-updates/CHANGELOG.md index 35de970d29..d753df5789 100644 --- a/utils/collect-updates/CHANGELOG.md +++ b/utils/collect-updates/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.0.0-alpha.1](https://github.com/lerna/lerna/compare/v5.6.2...v6.0.0-alpha.1) (2022-10-09) + +# [6.0.0-alpha.0](https://github.com/lerna/lerna/compare/v5.6.1...v6.0.0-alpha.0) (2022-10-07) + +**Note:** Version bump only for package @lerna/collect-updates + ## [5.6.2](https://github.com/lerna/lerna/compare/v5.6.1...v5.6.2) (2022-10-09) **Note:** Version bump only for package @lerna/collect-updates diff --git a/utils/collect-updates/package.json b/utils/collect-updates/package.json index 86467ca954..87c97f01b5 100644 --- a/utils/collect-updates/package.json +++ b/utils/collect-updates/package.json @@ -1,6 +1,6 @@ { "name": "@lerna/collect-updates", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "description": "An internal Lerna tool", "keywords": [ "lerna", diff --git a/utils/create-symlink/CHANGELOG.md b/utils/create-symlink/CHANGELOG.md index fc8c65102c..92c3356e13 100644 --- a/utils/create-symlink/CHANGELOG.md +++ b/utils/create-symlink/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.0.0-alpha.1](https://github.com/lerna/lerna/compare/v5.6.2...v6.0.0-alpha.1) (2022-10-09) + +# [6.0.0-alpha.0](https://github.com/lerna/lerna/compare/v5.6.1...v6.0.0-alpha.0) (2022-10-07) + +**Note:** Version bump only for package @lerna/create-symlink + ## [5.6.2](https://github.com/lerna/lerna/compare/v5.6.1...v5.6.2) (2022-10-09) **Note:** Version bump only for package @lerna/create-symlink diff --git a/utils/create-symlink/package.json b/utils/create-symlink/package.json index 895547a7dd..df182148db 100644 --- a/utils/create-symlink/package.json +++ b/utils/create-symlink/package.json @@ -1,6 +1,6 @@ { "name": "@lerna/create-symlink", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "description": "An internal Lerna tool", "keywords": [ "lerna", diff --git a/utils/describe-ref/CHANGELOG.md b/utils/describe-ref/CHANGELOG.md index 915bca094d..0851e7ac92 100644 --- a/utils/describe-ref/CHANGELOG.md +++ b/utils/describe-ref/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.0.0-alpha.1](https://github.com/lerna/lerna/compare/v5.6.2...v6.0.0-alpha.1) (2022-10-09) + +# [6.0.0-alpha.0](https://github.com/lerna/lerna/compare/v5.6.1...v6.0.0-alpha.0) (2022-10-07) + +**Note:** Version bump only for package @lerna/describe-ref + ## [5.6.2](https://github.com/lerna/lerna/compare/v5.6.1...v5.6.2) (2022-10-09) **Note:** Version bump only for package @lerna/describe-ref diff --git a/utils/describe-ref/package.json b/utils/describe-ref/package.json index 844d63e52f..74ac85ed72 100644 --- a/utils/describe-ref/package.json +++ b/utils/describe-ref/package.json @@ -1,6 +1,6 @@ { "name": "@lerna/describe-ref", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "description": "Parse git describe output for lerna-related tags", "keywords": [ "lerna", diff --git a/utils/filter-packages/CHANGELOG.md b/utils/filter-packages/CHANGELOG.md index 1065a62d46..cd4c6671b2 100644 --- a/utils/filter-packages/CHANGELOG.md +++ b/utils/filter-packages/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.0.0-alpha.1](https://github.com/lerna/lerna/compare/v5.6.2...v6.0.0-alpha.1) (2022-10-09) + +# [6.0.0-alpha.0](https://github.com/lerna/lerna/compare/v5.6.1...v6.0.0-alpha.0) (2022-10-07) + +**Note:** Version bump only for package @lerna/filter-packages + ## [5.6.2](https://github.com/lerna/lerna/compare/v5.6.1...v5.6.2) (2022-10-09) **Note:** Version bump only for package @lerna/filter-packages diff --git a/utils/filter-packages/package.json b/utils/filter-packages/package.json index 29efda711b..2d2b255f4c 100644 --- a/utils/filter-packages/package.json +++ b/utils/filter-packages/package.json @@ -1,6 +1,6 @@ { "name": "@lerna/filter-packages", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "description": "An internal Lerna tool", "keywords": [ "lerna", diff --git a/utils/get-npm-exec-opts/CHANGELOG.md b/utils/get-npm-exec-opts/CHANGELOG.md index 270a3cc1f5..99362a3d55 100644 --- a/utils/get-npm-exec-opts/CHANGELOG.md +++ b/utils/get-npm-exec-opts/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.0.0-alpha.1](https://github.com/lerna/lerna/compare/v5.6.2...v6.0.0-alpha.1) (2022-10-09) + +# [6.0.0-alpha.0](https://github.com/lerna/lerna/compare/v5.6.1...v6.0.0-alpha.0) (2022-10-07) + +**Note:** Version bump only for package @lerna/get-npm-exec-opts + ## [5.6.2](https://github.com/lerna/lerna/compare/v5.6.1...v5.6.2) (2022-10-09) ### Bug Fixes diff --git a/utils/get-npm-exec-opts/package.json b/utils/get-npm-exec-opts/package.json index 6276896712..ab79634702 100644 --- a/utils/get-npm-exec-opts/package.json +++ b/utils/get-npm-exec-opts/package.json @@ -1,6 +1,6 @@ { "name": "@lerna/get-npm-exec-opts", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "description": "An internal Lerna tool", "keywords": [ "lerna", diff --git a/utils/get-packed/CHANGELOG.md b/utils/get-packed/CHANGELOG.md index 9ba385bf4c..abd5f67e4c 100644 --- a/utils/get-packed/CHANGELOG.md +++ b/utils/get-packed/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.0.0-alpha.1](https://github.com/lerna/lerna/compare/v5.6.2...v6.0.0-alpha.1) (2022-10-09) + +# [6.0.0-alpha.0](https://github.com/lerna/lerna/compare/v5.6.1...v6.0.0-alpha.0) (2022-10-07) + +**Note:** Version bump only for package @lerna/get-packed + ## [5.6.2](https://github.com/lerna/lerna/compare/v5.6.1...v5.6.2) (2022-10-09) **Note:** Version bump only for package @lerna/get-packed diff --git a/utils/get-packed/package.json b/utils/get-packed/package.json index 4c0dd304d6..c44739d5aa 100644 --- a/utils/get-packed/package.json +++ b/utils/get-packed/package.json @@ -1,6 +1,6 @@ { "name": "@lerna/get-packed", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "description": "Read contents of package tarball created by npm pack", "keywords": [ "lerna", diff --git a/utils/github-client/CHANGELOG.md b/utils/github-client/CHANGELOG.md index 66851609d4..41a8bb0a25 100644 --- a/utils/github-client/CHANGELOG.md +++ b/utils/github-client/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.0.0-alpha.1](https://github.com/lerna/lerna/compare/v5.6.2...v6.0.0-alpha.1) (2022-10-09) + +# [6.0.0-alpha.0](https://github.com/lerna/lerna/compare/v5.6.1...v6.0.0-alpha.0) (2022-10-07) + +**Note:** Version bump only for package @lerna/github-client + ## [5.6.2](https://github.com/lerna/lerna/compare/v5.6.1...v5.6.2) (2022-10-09) **Note:** Version bump only for package @lerna/github-client diff --git a/utils/github-client/package.json b/utils/github-client/package.json index 6a915582e9..08520359dc 100644 --- a/utils/github-client/package.json +++ b/utils/github-client/package.json @@ -1,6 +1,6 @@ { "name": "@lerna/github-client", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "description": "An internal Lerna tool", "keywords": [ "lerna", diff --git a/utils/gitlab-client/CHANGELOG.md b/utils/gitlab-client/CHANGELOG.md index e04236af93..9a19f62bef 100644 --- a/utils/gitlab-client/CHANGELOG.md +++ b/utils/gitlab-client/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.0.0-alpha.1](https://gitlab.com/lerna/lerna/compare/v5.6.2...v6.0.0-alpha.1) (2022-10-09) + +# [6.0.0-alpha.0](https://gitlab.com/lerna/lerna/compare/v5.6.1...v6.0.0-alpha.0) (2022-10-07) + +**Note:** Version bump only for package @lerna/gitlab-client + ## [5.6.2](https://gitlab.com/lerna/lerna/compare/v5.6.1...v5.6.2) (2022-10-09) **Note:** Version bump only for package @lerna/gitlab-client diff --git a/utils/gitlab-client/package.json b/utils/gitlab-client/package.json index 033a2cf4d8..c2061a7605 100644 --- a/utils/gitlab-client/package.json +++ b/utils/gitlab-client/package.json @@ -1,6 +1,6 @@ { "name": "@lerna/gitlab-client", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "description": "An internal Lerna tool", "keywords": [ "lerna", diff --git a/utils/has-npm-version/CHANGELOG.md b/utils/has-npm-version/CHANGELOG.md index e5299b0540..bc751d5ebb 100644 --- a/utils/has-npm-version/CHANGELOG.md +++ b/utils/has-npm-version/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.0.0-alpha.1](https://github.com/lerna/lerna/compare/v5.6.2...v6.0.0-alpha.1) (2022-10-09) + +# [6.0.0-alpha.0](https://github.com/lerna/lerna/compare/v5.6.1...v6.0.0-alpha.0) (2022-10-07) + +**Note:** Version bump only for package @lerna/has-npm-version + ## [5.6.2](https://github.com/lerna/lerna/compare/v5.6.1...v5.6.2) (2022-10-09) **Note:** Version bump only for package @lerna/has-npm-version diff --git a/utils/has-npm-version/package.json b/utils/has-npm-version/package.json index cfa6007149..ac071af453 100644 --- a/utils/has-npm-version/package.json +++ b/utils/has-npm-version/package.json @@ -1,6 +1,6 @@ { "name": "@lerna/has-npm-version", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "description": "Test if the current version of npm satisfies a given semver range", "keywords": [ "lerna", diff --git a/utils/listable/CHANGELOG.md b/utils/listable/CHANGELOG.md index d2de9f6b70..89aa6280ac 100644 --- a/utils/listable/CHANGELOG.md +++ b/utils/listable/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.0.0-alpha.1](https://github.com/lerna/lerna/compare/v5.6.2...v6.0.0-alpha.1) (2022-10-09) + +# [6.0.0-alpha.0](https://github.com/lerna/lerna/compare/v5.6.1...v6.0.0-alpha.0) (2022-10-07) + +**Note:** Version bump only for package @lerna/listable + ## [5.6.2](https://github.com/lerna/lerna/compare/v5.6.1...v5.6.2) (2022-10-09) **Note:** Version bump only for package @lerna/listable diff --git a/utils/listable/package.json b/utils/listable/package.json index 5e0951a7de..7949f7cb6d 100644 --- a/utils/listable/package.json +++ b/utils/listable/package.json @@ -1,6 +1,6 @@ { "name": "@lerna/listable", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "description": "Shared logic for listing package information", "keywords": [ "lerna", diff --git a/utils/log-packed/CHANGELOG.md b/utils/log-packed/CHANGELOG.md index 3e94b0cf1f..48a9c4c395 100644 --- a/utils/log-packed/CHANGELOG.md +++ b/utils/log-packed/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.0.0-alpha.1](https://github.com/lerna/lerna/compare/v5.6.2...v6.0.0-alpha.1) (2022-10-09) + +# [6.0.0-alpha.0](https://github.com/lerna/lerna/compare/v5.6.1...v6.0.0-alpha.0) (2022-10-07) + +**Note:** Version bump only for package @lerna/log-packed + ## [5.6.2](https://github.com/lerna/lerna/compare/v5.6.1...v5.6.2) (2022-10-09) **Note:** Version bump only for package @lerna/log-packed diff --git a/utils/log-packed/package.json b/utils/log-packed/package.json index 930c449e5b..94a4747833 100644 --- a/utils/log-packed/package.json +++ b/utils/log-packed/package.json @@ -1,6 +1,6 @@ { "name": "@lerna/log-packed", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "description": "Log the result of npm pack --json", "keywords": [ "lerna", diff --git a/utils/map-to-registry/CHANGELOG.md b/utils/map-to-registry/CHANGELOG.md index b7c79bbcdc..f250689726 100644 --- a/utils/map-to-registry/CHANGELOG.md +++ b/utils/map-to-registry/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.0.0-alpha.1](https://github.com/lerna/lerna/compare/v5.6.2...v6.0.0-alpha.1) (2022-10-09) + +# [6.0.0-alpha.0](https://github.com/lerna/lerna/compare/v5.6.1...v6.0.0-alpha.0) (2022-10-07) + +**Note:** Version bump only for package @lerna/map-to-registry + ## [5.6.2](https://github.com/lerna/lerna/compare/v5.6.1...v5.6.2) (2022-10-09) **Note:** Version bump only for package @lerna/map-to-registry diff --git a/utils/map-to-registry/package.json b/utils/map-to-registry/package.json index d712d02eb9..4fd3882cee 100644 --- a/utils/map-to-registry/package.json +++ b/utils/map-to-registry/package.json @@ -1,6 +1,6 @@ { "name": "@lerna/map-to-registry", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "description": "Produce registry uri and auth of package name from npm config", "keywords": [ "lerna", diff --git a/utils/npm-conf/CHANGELOG.md b/utils/npm-conf/CHANGELOG.md index a182c3a27d..0eafbcf286 100644 --- a/utils/npm-conf/CHANGELOG.md +++ b/utils/npm-conf/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.0.0-alpha.1](https://github.com/lerna/lerna/compare/v5.6.2...v6.0.0-alpha.1) (2022-10-09) + +# [6.0.0-alpha.0](https://github.com/lerna/lerna/compare/v5.6.1...v6.0.0-alpha.0) (2022-10-07) + +**Note:** Version bump only for package @lerna/npm-conf + ## [5.6.2](https://github.com/lerna/lerna/compare/v5.6.1...v5.6.2) (2022-10-09) **Note:** Version bump only for package @lerna/npm-conf diff --git a/utils/npm-conf/package.json b/utils/npm-conf/package.json index 10bbe36b90..3dff749b10 100644 --- a/utils/npm-conf/package.json +++ b/utils/npm-conf/package.json @@ -1,6 +1,6 @@ { "name": "@lerna/npm-conf", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "description": "Vendored npm-conf with updates", "keywords": [ "lerna", diff --git a/utils/npm-dist-tag/CHANGELOG.md b/utils/npm-dist-tag/CHANGELOG.md index a4497bdec6..9e31ff4cf4 100644 --- a/utils/npm-dist-tag/CHANGELOG.md +++ b/utils/npm-dist-tag/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.0.0-alpha.1](https://github.com/lerna/lerna/compare/v5.6.2...v6.0.0-alpha.1) (2022-10-09) + +# [6.0.0-alpha.0](https://github.com/lerna/lerna/compare/v5.6.1...v6.0.0-alpha.0) (2022-10-07) + +**Note:** Version bump only for package @lerna/npm-dist-tag + ## [5.6.2](https://github.com/lerna/lerna/compare/v5.6.1...v5.6.2) (2022-10-09) **Note:** Version bump only for package @lerna/npm-dist-tag diff --git a/utils/npm-dist-tag/package.json b/utils/npm-dist-tag/package.json index 29079b8908..2dd563f214 100644 --- a/utils/npm-dist-tag/package.json +++ b/utils/npm-dist-tag/package.json @@ -1,6 +1,6 @@ { "name": "@lerna/npm-dist-tag", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "description": "An internal Lerna tool", "keywords": [ "lerna", diff --git a/utils/npm-install/CHANGELOG.md b/utils/npm-install/CHANGELOG.md index ce5beca18e..febf648c61 100644 --- a/utils/npm-install/CHANGELOG.md +++ b/utils/npm-install/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.0.0-alpha.1](https://github.com/lerna/lerna/compare/v5.6.2...v6.0.0-alpha.1) (2022-10-09) + +# [6.0.0-alpha.0](https://github.com/lerna/lerna/compare/v5.6.1...v6.0.0-alpha.0) (2022-10-07) + +**Note:** Version bump only for package @lerna/npm-install + ## [5.6.2](https://github.com/lerna/lerna/compare/v5.6.1...v5.6.2) (2022-10-09) ### Bug Fixes diff --git a/utils/npm-install/package.json b/utils/npm-install/package.json index f304103982..c982a91ae6 100644 --- a/utils/npm-install/package.json +++ b/utils/npm-install/package.json @@ -1,6 +1,6 @@ { "name": "@lerna/npm-install", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "description": "An internal Lerna tool", "keywords": [ "lerna", diff --git a/utils/npm-publish/CHANGELOG.md b/utils/npm-publish/CHANGELOG.md index b4db6098ea..44581b9649 100644 --- a/utils/npm-publish/CHANGELOG.md +++ b/utils/npm-publish/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.0.0-alpha.1](https://github.com/lerna/lerna/compare/v5.6.2...v6.0.0-alpha.1) (2022-10-09) + +# [6.0.0-alpha.0](https://github.com/lerna/lerna/compare/v5.6.1...v6.0.0-alpha.0) (2022-10-07) + +**Note:** Version bump only for package @lerna/npm-publish + ## [5.6.2](https://github.com/lerna/lerna/compare/v5.6.1...v5.6.2) (2022-10-09) ### Bug Fixes diff --git a/utils/npm-publish/package.json b/utils/npm-publish/package.json index 254739b9d9..30d402085c 100644 --- a/utils/npm-publish/package.json +++ b/utils/npm-publish/package.json @@ -1,6 +1,6 @@ { "name": "@lerna/npm-publish", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "description": "An internal Lerna tool", "keywords": [ "lerna", diff --git a/utils/npm-run-script/CHANGELOG.md b/utils/npm-run-script/CHANGELOG.md index 327ac80a7a..bee7372459 100644 --- a/utils/npm-run-script/CHANGELOG.md +++ b/utils/npm-run-script/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.0.0-alpha.1](https://github.com/lerna/lerna/compare/v5.6.2...v6.0.0-alpha.1) (2022-10-09) + +# [6.0.0-alpha.0](https://github.com/lerna/lerna/compare/v5.6.1...v6.0.0-alpha.0) (2022-10-07) + +**Note:** Version bump only for package @lerna/npm-run-script + ## [5.6.2](https://github.com/lerna/lerna/compare/v5.6.1...v5.6.2) (2022-10-09) ### Bug Fixes diff --git a/utils/npm-run-script/package.json b/utils/npm-run-script/package.json index bae61e5914..3613a0c51d 100644 --- a/utils/npm-run-script/package.json +++ b/utils/npm-run-script/package.json @@ -1,6 +1,6 @@ { "name": "@lerna/npm-run-script", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "description": "An internal Lerna tool", "keywords": [ "lerna", diff --git a/utils/output/CHANGELOG.md b/utils/output/CHANGELOG.md index 623876fc85..bf160668f5 100644 --- a/utils/output/CHANGELOG.md +++ b/utils/output/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.0.0-alpha.1](https://github.com/lerna/lerna/compare/v5.6.2...v6.0.0-alpha.1) (2022-10-09) + +# [6.0.0-alpha.0](https://github.com/lerna/lerna/compare/v5.6.1...v6.0.0-alpha.0) (2022-10-07) + +**Note:** Version bump only for package @lerna/output + ## [5.6.2](https://github.com/lerna/lerna/compare/v5.6.1...v5.6.2) (2022-10-09) **Note:** Version bump only for package @lerna/output diff --git a/utils/output/package.json b/utils/output/package.json index 2d7fd11279..b7c840217f 100644 --- a/utils/output/package.json +++ b/utils/output/package.json @@ -1,6 +1,6 @@ { "name": "@lerna/output", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "description": "An internal Lerna tool", "keywords": [ "lerna", diff --git a/utils/pack-directory/CHANGELOG.md b/utils/pack-directory/CHANGELOG.md index cb0c6d6588..d45287da3d 100644 --- a/utils/pack-directory/CHANGELOG.md +++ b/utils/pack-directory/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.0.0-alpha.1](https://github.com/lerna/lerna/compare/v5.6.2...v6.0.0-alpha.1) (2022-10-09) + +# [6.0.0-alpha.0](https://github.com/lerna/lerna/compare/v5.6.1...v6.0.0-alpha.0) (2022-10-07) + +**Note:** Version bump only for package @lerna/pack-directory + ## [5.6.2](https://github.com/lerna/lerna/compare/v5.6.1...v5.6.2) (2022-10-09) **Note:** Version bump only for package @lerna/pack-directory diff --git a/utils/pack-directory/package.json b/utils/pack-directory/package.json index d404a719f8..52e4fa20ac 100644 --- a/utils/pack-directory/package.json +++ b/utils/pack-directory/package.json @@ -1,6 +1,6 @@ { "name": "@lerna/pack-directory", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "description": "Pack a directory into an npm package tarball", "keywords": [ "lerna", diff --git a/utils/prerelease-id-from-version/CHANGELOG.md b/utils/prerelease-id-from-version/CHANGELOG.md index 3df6e7ed32..8051cd801d 100644 --- a/utils/prerelease-id-from-version/CHANGELOG.md +++ b/utils/prerelease-id-from-version/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.0.0-alpha.1](https://github.com/lerna/lerna/compare/v5.6.2...v6.0.0-alpha.1) (2022-10-09) + +# [6.0.0-alpha.0](https://github.com/lerna/lerna/compare/v5.6.1...v6.0.0-alpha.0) (2022-10-07) + +**Note:** Version bump only for package @lerna/prerelease-id-from-version + ## [5.6.2](https://github.com/lerna/lerna/compare/v5.6.1...v5.6.2) (2022-10-09) **Note:** Version bump only for package @lerna/prerelease-id-from-version diff --git a/utils/prerelease-id-from-version/package.json b/utils/prerelease-id-from-version/package.json index a47f6c99c5..0611388ba6 100644 --- a/utils/prerelease-id-from-version/package.json +++ b/utils/prerelease-id-from-version/package.json @@ -1,6 +1,6 @@ { "name": "@lerna/prerelease-id-from-version", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "description": "Get the prerelease ID from a version string", "keywords": [ "lerna", diff --git a/utils/profiler/CHANGELOG.md b/utils/profiler/CHANGELOG.md index 5abefa2b9a..8423d9d236 100644 --- a/utils/profiler/CHANGELOG.md +++ b/utils/profiler/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.0.0-alpha.1](https://github.com/lerna/lerna/compare/v5.6.2...v6.0.0-alpha.1) (2022-10-09) + +# [6.0.0-alpha.0](https://github.com/lerna/lerna/compare/v5.6.1...v6.0.0-alpha.0) (2022-10-07) + +**Note:** Version bump only for package @lerna/profiler + ## [5.6.2](https://github.com/lerna/lerna/compare/v5.6.1...v5.6.2) (2022-10-09) **Note:** Version bump only for package @lerna/profiler diff --git a/utils/profiler/package.json b/utils/profiler/package.json index f9680a36ed..b4db47666f 100644 --- a/utils/profiler/package.json +++ b/utils/profiler/package.json @@ -1,6 +1,6 @@ { "name": "@lerna/profiler", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "description": "An internal Lerna tool", "keywords": [ "lerna", diff --git a/utils/profiler/profiler.js b/utils/profiler/profiler.js index a867a5c527..1a8ae4a819 100644 --- a/utils/profiler/profiler.js +++ b/utils/profiler/profiler.js @@ -21,6 +21,11 @@ const getTimeBasedFilename = () => { return `Lerna-Profile-${datetimeNormalized}.json`; }; +function generateProfileOutputPath(/** @type {string} */ outputDirectory) { + return upath.join(upath.resolve(outputDirectory || "."), getTimeBasedFilename()); +} +module.exports.generateProfileOutputPath = generateProfileOutputPath; + /** * @typedef {object} ProfilerConfig * @property {number} concurrency @@ -38,7 +43,7 @@ class Profiler { constructor({ concurrency, log = npmlog, outputDirectory }) { this.events = []; this.logger = log; - this.outputPath = upath.join(upath.resolve(outputDirectory || "."), getTimeBasedFilename()); + this.outputPath = generateProfileOutputPath(outputDirectory); this.threads = range(concurrency); } diff --git a/utils/pulse-till-done/CHANGELOG.md b/utils/pulse-till-done/CHANGELOG.md index 9be089a7e6..0997f04232 100644 --- a/utils/pulse-till-done/CHANGELOG.md +++ b/utils/pulse-till-done/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.0.0-alpha.1](https://github.com/lerna/lerna/compare/v5.6.2...v6.0.0-alpha.1) (2022-10-09) + +# [6.0.0-alpha.0](https://github.com/lerna/lerna/compare/v5.6.1...v6.0.0-alpha.0) (2022-10-07) + +**Note:** Version bump only for package @lerna/pulse-till-done + ## [5.6.2](https://github.com/lerna/lerna/compare/v5.6.1...v5.6.2) (2022-10-09) **Note:** Version bump only for package @lerna/pulse-till-done diff --git a/utils/pulse-till-done/package.json b/utils/pulse-till-done/package.json index 8aab34018b..77cdebb160 100644 --- a/utils/pulse-till-done/package.json +++ b/utils/pulse-till-done/package.json @@ -1,6 +1,6 @@ { "name": "@lerna/pulse-till-done", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "description": "An internal Lerna tool", "keywords": [ "lerna", diff --git a/utils/query-graph/CHANGELOG.md b/utils/query-graph/CHANGELOG.md index 708c23e3cf..d5be7fbf2e 100644 --- a/utils/query-graph/CHANGELOG.md +++ b/utils/query-graph/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.0.0-alpha.1](https://github.com/lerna/lerna/compare/v5.6.2...v6.0.0-alpha.1) (2022-10-09) + +# [6.0.0-alpha.0](https://github.com/lerna/lerna/compare/v5.6.1...v6.0.0-alpha.0) (2022-10-07) + +**Note:** Version bump only for package @lerna/query-graph + ## [5.6.2](https://github.com/lerna/lerna/compare/v5.6.1...v5.6.2) (2022-10-09) **Note:** Version bump only for package @lerna/query-graph diff --git a/utils/query-graph/package.json b/utils/query-graph/package.json index 2818c7c363..fe4b6ffd07 100644 --- a/utils/query-graph/package.json +++ b/utils/query-graph/package.json @@ -1,6 +1,6 @@ { "name": "@lerna/query-graph", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "description": "An internal Lerna tool", "keywords": [ "lerna", diff --git a/utils/resolve-symlink/CHANGELOG.md b/utils/resolve-symlink/CHANGELOG.md index 0d8f0f3b0d..69e22a00c4 100644 --- a/utils/resolve-symlink/CHANGELOG.md +++ b/utils/resolve-symlink/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.0.0-alpha.1](https://github.com/lerna/lerna/compare/v5.6.2...v6.0.0-alpha.1) (2022-10-09) + +# [6.0.0-alpha.0](https://github.com/lerna/lerna/compare/v5.6.1...v6.0.0-alpha.0) (2022-10-07) + +**Note:** Version bump only for package @lerna/resolve-symlink + ## [5.6.2](https://github.com/lerna/lerna/compare/v5.6.1...v5.6.2) (2022-10-09) **Note:** Version bump only for package @lerna/resolve-symlink diff --git a/utils/resolve-symlink/package.json b/utils/resolve-symlink/package.json index b57d48d3e8..15622ef507 100644 --- a/utils/resolve-symlink/package.json +++ b/utils/resolve-symlink/package.json @@ -1,6 +1,6 @@ { "name": "@lerna/resolve-symlink", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "description": "An internal Lerna tool", "keywords": [ "lerna", diff --git a/utils/rimraf-dir/CHANGELOG.md b/utils/rimraf-dir/CHANGELOG.md index e06323a2c7..943e38d5d8 100644 --- a/utils/rimraf-dir/CHANGELOG.md +++ b/utils/rimraf-dir/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.0.0-alpha.1](https://github.com/lerna/lerna/compare/v5.6.2...v6.0.0-alpha.1) (2022-10-09) + +# [6.0.0-alpha.0](https://github.com/lerna/lerna/compare/v5.6.1...v6.0.0-alpha.0) (2022-10-07) + +**Note:** Version bump only for package @lerna/rimraf-dir + ## [5.6.2](https://github.com/lerna/lerna/compare/v5.6.1...v5.6.2) (2022-10-09) **Note:** Version bump only for package @lerna/rimraf-dir diff --git a/utils/rimraf-dir/package.json b/utils/rimraf-dir/package.json index 920edc0626..2154c556ff 100644 --- a/utils/rimraf-dir/package.json +++ b/utils/rimraf-dir/package.json @@ -1,6 +1,6 @@ { "name": "@lerna/rimraf-dir", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "description": "Run rimraf on a directory in a subprocess to hack around slowness", "keywords": [ "lerna", diff --git a/utils/run-lifecycle/CHANGELOG.md b/utils/run-lifecycle/CHANGELOG.md index 17e88a7977..0df9b9cd00 100644 --- a/utils/run-lifecycle/CHANGELOG.md +++ b/utils/run-lifecycle/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.0.0-alpha.1](https://github.com/lerna/lerna/compare/v5.6.2...v6.0.0-alpha.1) (2022-10-09) + +# [6.0.0-alpha.0](https://github.com/lerna/lerna/compare/v5.6.1...v6.0.0-alpha.0) (2022-10-07) + +**Note:** Version bump only for package @lerna/run-lifecycle + ## [5.6.2](https://github.com/lerna/lerna/compare/v5.6.1...v5.6.2) (2022-10-09) **Note:** Version bump only for package @lerna/run-lifecycle diff --git a/utils/run-lifecycle/package.json b/utils/run-lifecycle/package.json index 2297df3f9b..109827623e 100644 --- a/utils/run-lifecycle/package.json +++ b/utils/run-lifecycle/package.json @@ -1,6 +1,6 @@ { "name": "@lerna/run-lifecycle", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "description": "An internal Lerna tool", "keywords": [ "lerna", diff --git a/utils/run-topologically/CHANGELOG.md b/utils/run-topologically/CHANGELOG.md index e1f381484d..a47821eff7 100644 --- a/utils/run-topologically/CHANGELOG.md +++ b/utils/run-topologically/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.0.0-alpha.1](https://github.com/lerna/lerna/compare/v5.6.2...v6.0.0-alpha.1) (2022-10-09) + +# [6.0.0-alpha.0](https://github.com/lerna/lerna/compare/v5.6.1...v6.0.0-alpha.0) (2022-10-07) + +**Note:** Version bump only for package @lerna/run-topologically + ## [5.6.2](https://github.com/lerna/lerna/compare/v5.6.1...v5.6.2) (2022-10-09) **Note:** Version bump only for package @lerna/run-topologically diff --git a/utils/run-topologically/package.json b/utils/run-topologically/package.json index 9bc40d4fd4..87decf50cc 100644 --- a/utils/run-topologically/package.json +++ b/utils/run-topologically/package.json @@ -1,6 +1,6 @@ { "name": "@lerna/run-topologically", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "description": "An internal Lerna tool", "keywords": [ "lerna", diff --git a/utils/symlink-binary/CHANGELOG.md b/utils/symlink-binary/CHANGELOG.md index 7a1c8253f9..12d83d0120 100644 --- a/utils/symlink-binary/CHANGELOG.md +++ b/utils/symlink-binary/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.0.0-alpha.1](https://github.com/lerna/lerna/compare/v5.6.2...v6.0.0-alpha.1) (2022-10-09) + +# [6.0.0-alpha.0](https://github.com/lerna/lerna/compare/v5.6.1...v6.0.0-alpha.0) (2022-10-07) + +**Note:** Version bump only for package @lerna/symlink-binary + ## [5.6.2](https://github.com/lerna/lerna/compare/v5.6.1...v5.6.2) (2022-10-09) **Note:** Version bump only for package @lerna/symlink-binary diff --git a/utils/symlink-binary/package.json b/utils/symlink-binary/package.json index 1c97ae973b..6890314019 100644 --- a/utils/symlink-binary/package.json +++ b/utils/symlink-binary/package.json @@ -1,6 +1,6 @@ { "name": "@lerna/symlink-binary", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "description": "An internal Lerna tool", "keywords": [ "lerna", diff --git a/utils/symlink-dependencies/CHANGELOG.md b/utils/symlink-dependencies/CHANGELOG.md index 4a5a933fff..a0651bd85f 100644 --- a/utils/symlink-dependencies/CHANGELOG.md +++ b/utils/symlink-dependencies/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.0.0-alpha.1](https://github.com/lerna/lerna/compare/v5.6.2...v6.0.0-alpha.1) (2022-10-09) + +# [6.0.0-alpha.0](https://github.com/lerna/lerna/compare/v5.6.1...v6.0.0-alpha.0) (2022-10-07) + +**Note:** Version bump only for package @lerna/symlink-dependencies + ## [5.6.2](https://github.com/lerna/lerna/compare/v5.6.1...v5.6.2) (2022-10-09) **Note:** Version bump only for package @lerna/symlink-dependencies diff --git a/utils/symlink-dependencies/package.json b/utils/symlink-dependencies/package.json index 77e3e5931d..d1ee6f3e99 100644 --- a/utils/symlink-dependencies/package.json +++ b/utils/symlink-dependencies/package.json @@ -1,6 +1,6 @@ { "name": "@lerna/symlink-dependencies", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "description": "Lerna's internal symlinking tool", "keywords": [ "lerna", diff --git a/utils/temp-write/CHANGELOG.md b/utils/temp-write/CHANGELOG.md index 1700927a55..5a553fd0e6 100644 --- a/utils/temp-write/CHANGELOG.md +++ b/utils/temp-write/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.0.0-alpha.1](https://github.com/lerna/lerna/compare/v5.6.2...v6.0.0-alpha.1) (2022-10-09) + +# [6.0.0-alpha.0](https://github.com/lerna/lerna/compare/v5.6.1...v6.0.0-alpha.0) (2022-10-07) + +**Note:** Version bump only for package @lerna/temp-write + ## [5.6.2](https://github.com/lerna/lerna/compare/v5.6.1...v5.6.2) (2022-10-09) **Note:** Version bump only for package @lerna/temp-write diff --git a/utils/temp-write/package.json b/utils/temp-write/package.json index ef5a9c9ceb..e74361ae7e 100644 --- a/utils/temp-write/package.json +++ b/utils/temp-write/package.json @@ -1,6 +1,6 @@ { "name": "@lerna/temp-write", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "description": "Write string/buffer/stream to a random temp file", "homepage": "https://lerna.js.org", "license": "MIT", diff --git a/utils/timer/CHANGELOG.md b/utils/timer/CHANGELOG.md index c2669db75b..4ca6ed6795 100644 --- a/utils/timer/CHANGELOG.md +++ b/utils/timer/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.0.0-alpha.1](https://github.com/lerna/lerna/compare/v5.6.2...v6.0.0-alpha.1) (2022-10-09) + +# [6.0.0-alpha.0](https://github.com/lerna/lerna/compare/v5.6.1...v6.0.0-alpha.0) (2022-10-07) + +**Note:** Version bump only for package @lerna/timer + ## [5.6.2](https://github.com/lerna/lerna/compare/v5.6.1...v5.6.2) (2022-10-09) **Note:** Version bump only for package @lerna/timer diff --git a/utils/timer/package.json b/utils/timer/package.json index a9e3402238..250b594f1a 100644 --- a/utils/timer/package.json +++ b/utils/timer/package.json @@ -1,6 +1,6 @@ { "name": "@lerna/timer", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "description": "An internal Lerna tool", "keywords": [ "lerna", diff --git a/utils/write-log-file/CHANGELOG.md b/utils/write-log-file/CHANGELOG.md index 6f2dd37934..f0a06a52d2 100644 --- a/utils/write-log-file/CHANGELOG.md +++ b/utils/write-log-file/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.0.0-alpha.1](https://github.com/lerna/lerna/compare/v5.6.2...v6.0.0-alpha.1) (2022-10-09) + +# [6.0.0-alpha.0](https://github.com/lerna/lerna/compare/v5.6.1...v6.0.0-alpha.0) (2022-10-07) + +**Note:** Version bump only for package @lerna/write-log-file + ## [5.6.2](https://github.com/lerna/lerna/compare/v5.6.1...v5.6.2) (2022-10-09) **Note:** Version bump only for package @lerna/write-log-file diff --git a/utils/write-log-file/package.json b/utils/write-log-file/package.json index b45dc60eac..62900fc3d7 100644 --- a/utils/write-log-file/package.json +++ b/utils/write-log-file/package.json @@ -1,6 +1,6 @@ { "name": "@lerna/write-log-file", - "version": "5.6.2", + "version": "6.0.0-alpha.1", "description": "What lerna uses to dump logs", "keywords": [ "lerna",