8000 fix: correct links to command docs (#3598) · lerna/lerna@b90b684 · GitHub
[go: up one dir, main page]

Skip to content

Commit b90b684

Browse files
authored
fix: correct links to command docs (#3598)
1 parent 596f139 commit b90b684

File tree

5 files changed

+24
-24
lines changed

5 files changed

+24
-24
lines changed

e2e/create/src/create.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1246,7 +1246,7 @@ describe("lerna-create", () => {
12461246
expect(result.combinedOutput).toMatchInlineSnapshot(`
12471247
lerna notice cli v999.9.9-e2e.0
12481248
lerna ERR! ENOPKGNAME Invalid package name. Use the <loc> positional to specify package directory.
1249-
lerna ERR! ENOPKGNAME See https://github.com/lerna/lerna/tree/main/commands/create#usage for details.
1249+
lerna ERR! ENOPKGNAME See https://github.com/lerna/lerna/tree/main/libs/commands/create#usage for details.
12501250
12511251
`);
12521252
});
@@ -1261,7 +1261,7 @@ describe("lerna-create", () => {
12611261
expect(result.combinedOutput).toMatchInlineSnapshot(`
12621262
lerna notice cli v999.9.9-e2e.0
12631263
lerna ERR! ENOPKGNAME Invalid package name. Use the <loc> positional to specify package directory.
1264-
lerna ERR! ENOPKGNAME See https://github.com/lerna/lerna/tree/main/commands/create#usage for details.
1264+
lerna ERR! ENOPKGNAME See https://github.com/lerna/lerna/tree/main/libs/commands/create#usage for details.
12651265
12661266
`);
12671267
});

libs/commands/changed/README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -19,21 +19,21 @@ package-2
1919

2020
## Options
2121

22-
`lerna changed` supports all of the flags supported by [`lerna ls`](https://github.com/lerna/lerna/tree/main/commands/list#options):
22+
`lerna changed` supports all of the flags supported by [`lerna ls`](https://github.com/lerna/lerna/tree/main/libs/commands/list#options):
2323

24-
- [`--json`](https://github.com/lerna/lerna/tree/main/commands/list#--json)
25-
- [`--ndjson`](https://github.com/lerna/lerna/tree/main/commands/list#--ndjson)
26-
- [`-a`, `--all` 8000 ](https://github.com/lerna/lerna/tree/main/commands/list#--all)
27-
- [`-l`, `--long`](https://github.com/lerna/lerna/tree/main/commands/list#--long)
28-
- [`-p`, `--parseable`](https://github.com/lerna/lerna/tree/main/commands/list#--parseable)
29-
- [`--toposort`](https://github.com/lerna/lerna/tree/main/commands/list#--toposort)
30-
- [`--graph`](https://github.com/lerna/lerna/tree/main/commands/list#--graph)
24+
- [`--json`](https://github.com/lerna/lerna/tree/main/libs/commands/list#--json)
25+
- [`--ndjson`](https://github.com/lerna/lerna/tree/main/libs/commands/list#--ndjson)
26+
- [`-a`, `--all`](https://github.com/lerna/lerna/tree/main/libs/commands/list#--all)
27+
- [`-l`, `--long`](https://github.com/lerna/lerna/tree/main/libs/commands/list#--long)
28+
- [`-p`, `--parseable`](https://github.com/lerna/lerna/tree/main/libs/commands/list#--parseable)
29+
- [`--toposort`](https://github.com/lerna/lerna/tree/main/libs/commands/list#--toposort)
30+
- [`--graph`](https://github.com/lerna/lerna/tree/main/libs/commands/list#--graph)
3131

3232
Unlike `lerna ls`, however, `lerna changed` **does not** support [filter options](https://www.npmjs.com/package/@lerna/filter-options), as filtering is not supported by `lerna version` or `lerna publish`.
3333

34-
`lerna changed` supports the following options of [`lerna version`](https://github.com/lerna/lerna/tree/main/commands/version#options) (the others are irrelevant):
34+
`lerna changed` supports the following options of [`lerna version`](https://github.com/lerna/lerna/tree/main/libs/commands/version#options) (the others are irrelevant):
3535

36-
- [`--conventional-graduate`](https://github.com/lerna/lerna/tree/main/commands/version#--conventional-graduate).
37-
- [`--force-publish`](https://github.com/lerna/lerna/tree/main/commands/version#--force-publish).
38-
- [`--ignore-changes`](https://github.com/lerna/lerna/tree/main/commands/version#--ignore-changes).
39-
- [`--include-merged-tags`](https://github.com/lerna/lerna/tree/main/commands/version#--include-merged-tags).
36+
- [`--conventional-graduate`](https://github.com/lerna/lerna/tree/main/libs/commands/version#--conventional-graduate).
37+
- [`--force-publish`](https://github.com/lerna/lerna/tree/main/libs/commands/version#--force-publish).
38+
- [`--ignore-changes`](https://github.com/lerna/lerna/tree/main/libs/commands/version#--ignore-changes).
39+
- [`--include-merged-tags`](https://github.com/lerna/lerna/tree/main/libs/commands/version#--include-merged-tags).

libs/commands/create/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class CreateCommand extends Command {
6060
if (!name && pkgName.includes("/")) {
6161
throw new ValidationError(
6262
"ENOPKGNAME",
63-
"Invalid package name. Use the <loc> positional to specify package directory.\nSee https://github.com/lerna/lerna/tree/main/commands/create#usage for details."
63+
"Invalid package name. Use the <loc> positional to specify package directory.\nSee https://github.com/lerna/lerna/tree/main/libs/commands/create#usage for details."
6464
);
6565
}
6666

libs/commands/publish/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ lerna publish from-package # explicitly publish packages where the latest versio
1414

1515
When run, this command does one of the following things:
1616

17-
- Publish packages updated since the last release (calling [`lerna version`](https://github.com/lerna/lerna/tree/main/commands/version#readme) behind the scenes).
17+
- Publish packages updated since the last release (calling [`lerna version`](https://github.com/lerna/lerna/tree/main/libs/commands/version#readme) behind the scenes).
1818
- This is the legacy behavior of lerna 2.x
1919
- Publish packages tagged in the current commit (`from-git`).
2020
- Publish packages in the latest commit where the version is not present in the registry (`from-package`).
@@ -32,7 +32,7 @@ Check out [Per-Package Configuration](#per-package-configuration) for more detai
3232

3333
### bump `from-git`
3434

35-
In addition to the semver keywords supported by [`lerna version`](https://github.com/lerna/lerna/tree/main/commands/version#positionals),
35+
In addition to the semver keywords supported by [`lerna version`](https://github.com/lerna/lerna/tree/main/libs/commands/version#positionals),
3636
`lerna publish` also supports the `from-git` keyword.
3737
This will identify packages tagged by `lerna version` and publish them to npm.
3838
This is useful in CI scenarios where you wish to manually increment versions,
@@ -47,7 +47,7 @@ This is useful when a previous `lerna publish` failed to publish all packages to
4747

4848
## Options
4949

50-
`lerna publish` supports all of the options provided by [`lerna version`](https://github.com/lerna/lerna/tree/main/commands/version#options) in addition to the following:
50+
`lerna publish` supports all of the options provided by [`lerna version`](https://github.com/lerna/lerna/tree/main/libs/commands/version#options) in addition to the following:
5151

5252
- [`--canary`](#--canary)
5353
- [`--contents <dir>`](#--contents-dir)
@@ -232,7 +232,7 @@ This option makes the most sense configured in lerna.json, as you really don't w
232232
}
233233
```
234234

235-
The root-level configuration is intentional, as this also covers the [identically-named option in `lerna version`](https://github.com/lerna/lerna/tree/main/commands/version#--no-granular-pathspec).
235+
The root-level configuration is intentional, as this also covers the [identically-named option in `lerna version`](https://github.com/lerna/lerna/tree/main/libs/commands/version#--no-granular-pathspec).
236236

237237
### `--verify-access`
238238

@@ -364,7 +364,7 @@ The legacy preemptive access verification is now off by default, so `--no-verify
364364

365365
### `--skip-npm`
366366

367-
Call [`lerna version`](https://github.com/lerna/lerna/tree/main/commands/version#readme) directly, instead.
367+
Call [`lerna version`](https://github.com/lerna/lerna/tree/main/libs/commands/version#readme) directly, instead.
368368

369369
## Per-Package Configuration
370370

@@ -436,7 +436,7 @@ This _non-standard_ field allows you to customize the published subdirectory jus
436436

437437
Lerna will run [npm lifecycle scripts](https://docs.npmjs.com/misc/scripts#description) during `lerna publish` in the following order:
438438

439-
1. If versioning implicitly, run all [version lifecycle scripts](https://github.com/lerna/lerna/tree/main/commands/version#lifecycle-scripts)
439+
1. If versioning implicitly, run all [version lifecycle scripts](https://github.com/lerna/lerna/tree/main/libs/commands/version#lifecycle-scripts)
440440
2. Run `prepublish` lifecycle in root, if [enabled](#--ignore-prepublish)
441441
3. Run `prepare` lifecycle in root
442442
4. Run `prepublishOnly` lifecycle in root

libs/commands/version/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ This option makes the most sense configured in lerna.json, as you really don't w
415415
}
416416
```
417417

418-
The root-level configuration is intentional, as this also covers the [identically-named option in `lerna publish`](https://github.com/lerna/lerna/tree/main/commands/publish#--no-granular-pathspec).
418+
The root-level configuration is intentional, as this also covers the [identically-named option in `lerna publish`](https://github.com/lerna/lerna/tree/main/libs/commands/publish#--no-granular-pathspec).
419419

420420
### `--no-private`
421421

@@ -541,7 +541,7 @@ Use [`--no-git-tag-version`](#--no-git-tag-version) and [`--no-push`](#--no-push
541541

542542
### Generating Initial Changelogs
543543

544-
If you start using the [`--conventional-commits`](#--conventional-commits) option _after_ the monorepo has been active for awhile, you can still generate changelogs for previous releases using [`conventional-changelog-cli`](https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-changelog-cli#readme) and [`lerna exec`](https://github.com/lerna/lerna/tree/main/commands/exec#readme):
544+
If you start using the [`--conventional-commits`](#--conventional-commits) option _after_ the monorepo has been active for awhile, you can still generate changelogs for previous releases using [`conventional-changelog-cli`](https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-changelog-cli#readme) and [`lerna exec`](https://github.com/lerna/lerna/tree/main/libs/commands/exec#readme):
545545

546546
```bash
547547
# Lerna does not actually use conventional-changelog-cli, so you need to install it temporarily

0 commit comments

Comments
 (0)
0