Skip to content

Commit

Permalink
chore: docs updates
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesHenry committed Jun 2, 2023
1 parent 52c11ed commit a6be819
Show file tree
Hide file tree
Showing 14 changed files with 119 additions and 680 deletions.
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -47,15 +47,15 @@ A few links to help you get started:
- [lerna.js.org: Documentation, Guides, Interactive Tutorials](https://lerna.js.org)
- [Getting Started](https://lerna.js.org/docs/getting-started)
- [Features](https://lerna.js.org/docs/features)
- [Official Nrwl YouTube Channel](https://www.youtube.com/c/Nrwl_io)
- [Official Nx and Lerna YouTube Channel](https://www.youtube.com/@nxdevtools)
- [Blog Posts About Lerna and Nx](https://blog.nrwl.io/nx/home)

<br />

## Engage with the Core Team and the Community

- [Nrwl Community Slack, #lerna channel](https://go.nrwl.io/join-slack)
- [Follow Nrwl on Twitter](https://twitter.com/nrwl_io)
- [Follow Lerna on Twitter](https://twitter.com/lernajs)
- [Community Slack, #lerna channel](https://go.nrwl.io/join-slack)

### Want to help?

Expand Down
34 changes: 0 additions & 34 deletions doc/guides.md

This file was deleted.

76 changes: 0 additions & 76 deletions doc/hoist.md

This file was deleted.

135 changes: 0 additions & 135 deletions doc/troubleshooting.md

This file was deleted.

25 changes: 20 additions & 5 deletions packages/lerna/src/index.ts
Expand Up @@ -67,15 +67,30 @@ function applyLegacyPackageManagementCommands(yargsInstance: ReturnType<typeof l
} catch {
["add", "bootstrap", "link"].forEach((commandName) => {
yargsInstance.command({
command: commandName,
describe: `The "${commandName}" command was removed in v7, and is no longer maintained.`,
command: commandName === "add" ? "add <pkg> [globs..]" : commandName,
describe: `The "${commandName}" command was removed by default in v7, and is no longer maintained.`,
builder: (yargs) => {
/**
* Dynamically parse all given flags and apply them as options, so that our handler() is always called,
* rather than yargs showing options based validation messaging.
*/
const parsed = require("yargs/yargs")(process.argv.slice(2)).argv;
for (const x of Object.keys(parsed)) {
if (x !== "_" && x !== "$0") {
yargs.option(x, {});
}
}
return yargs;
},
handler() {
log.error(
commandName,
`The "${commandName}" command was removed in v7, and is no longer maintained.`
`The "${commandName}" command was removed by default in v7, and is no longer maintained.`
);
log.error(
commandName,
`Learn more about this change at https://lerna.js.org/docs/legacy-package-management`
);
// TODO: in v7 link to a specific guide
log.error(commandName, `Learn more about this change at https://lerna.js.org`);
process.exit(1);
},
});
Expand Down
19 changes: 8 additions & 11 deletions website/docs/api-reference/commands.md
Expand Up @@ -6,23 +6,20 @@ type: reference

# Commands

- [`lerna publish`](https://github.com/lerna/lerna/tree/main/libs/commands/publish#readme)
- [`lerna version`](https://github.com/lerna/lerna/tree/main/libs/commands/version#readme)
- [`lerna bootstrap`](https://github.com/lerna/lerna/tree/main/libs/commands/bootstrap#readme)
- [`lerna list`](https://github.com/lerna/lerna/tree/main/libs/commands/list#readme)
- [`lerna add-caching`](https://github.com/lerna/lerna/tree/main/packages/lerna/src/commands/add-caching#readme)
- [`lerna changed`](https://github.com/lerna/lerna/tree/main/libs/commands/changed#readme)
- [`lerna clean`](https://github.com/lerna/lerna/tree/main/libs/commands/clean#readme)
- [`lerna create`](https://github.com/lerna/lerna/tree/main/libs/commands/create#readme)
- [`lerna diff`](https://github.com/lerna/lerna/tree/main/libs/commands/diff#readme)
- [`lerna exec`](https://github.com/lerna/lerna/tree/main/libs/commands/exec#readme)
- [`lerna run`](https://github.com/lerna/lerna/tree/main/libs/commands/run#readme)
- [`lerna init`](https://github.com/lerna/lerna/tree/main/libs/commands/init#readme)
- [`lerna add`](https://github.com/lerna/lerna/tree/main/libs/commands/add#readme)
- [`lerna clean`](https://github.com/lerna/lerna/tree/main/libs/commands/clean#readme)
- [`lerna import`](https://github.com/lerna/lerna/tree/main/libs/commands/import#readme)
- [`lerna link`](https://github.com/lerna/lerna/tree/main/libs/commands/link#readme)
- [`lerna create`](https://github.com/lerna/lerna/tree/main/libs/commands/create#readme)
- [`lerna info`](https://github.com/lerna/lerna/tree/main/libs/commands/info#readme)
- [`lerna add-caching`](https://github.com/lerna/lerna/tree/main/packages/lerna/src/commands/add-caching#readme)
- [`lerna init`](https://github.com/lerna/lerna/tree/main/libs/commands/init#readme)
- [`lerna list`](https://github.com/lerna/lerna/tree/main/libs/commands/list#readme)
- [`lerna publish`](https://github.com/lerna/lerna/tree/main/libs/commands/publish#readme)
- [`lerna repair`](https://github.com/lerna/lerna/tree/main/packages/lerna/src/commands/repair#readme)
- [`lerna run`](https://github.com/lerna/lerna/tree/main/libs/commands/run#readme)
- [`lerna version`](https://github.com/lerna/lerna/tree/main/libs/commands/version#readme)
- [`lerna watch`](https://github.com/lerna/lerna/tree/main/packages/lerna/src/commands/watch#readme)

## Filter Options
Expand Down

0 comments on commit a6be819

Please sign in to comment.