mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-17 02:54:21 +08:00
fix(@angular/cli): change update guide link to angular.dev
References to the Angular update guide now use the new angular.dev site.
This commit is contained in:
parent
593050e6d8
commit
cb18da3917
@ -106,7 +106,7 @@ Angular is cross-platform, fast, scalable, has incredible tooling, and is loved
|
|||||||
|
|
||||||
## Upgrading
|
## Upgrading
|
||||||
|
|
||||||
Check out our [upgrade guide](https://update.angular.io/) to find out the best way to upgrade your project.
|
Check out our [upgrade guide](https://update.angular.dev/) to find out the best way to upgrade your project.
|
||||||
|
|
||||||
## Contributing
|
## Contributing
|
||||||
|
|
||||||
|
@ -73,7 +73,7 @@ export function assertCompatibleAngularVersion(projectRoot: string): void | neve
|
|||||||
console.error(
|
console.error(
|
||||||
`This version of CLI is only compatible with Angular versions ${supportedAngularSemver},\n` +
|
`This version of CLI is only compatible with Angular versions ${supportedAngularSemver},\n` +
|
||||||
`but Angular version ${angularVersion} was found instead.\n` +
|
`but Angular version ${angularVersion} was found instead.\n` +
|
||||||
'Please visit the link below to find instructions on how to update Angular.\nhttps://update.angular.io/',
|
'Please visit the link below to find instructions on how to update Angular.\nhttps://update.angular.dev/',
|
||||||
);
|
);
|
||||||
|
|
||||||
process.exit(3);
|
process.exit(3);
|
||||||
|
@ -81,7 +81,7 @@ export default class UpdateCommandModule extends CommandModule<UpdateCommandArgs
|
|||||||
protected override shouldReportAnalytics = false;
|
protected override shouldReportAnalytics = false;
|
||||||
|
|
||||||
command = 'update [packages..]';
|
command = 'update [packages..]';
|
||||||
describe = 'Updates your workspace and its dependencies. See https://update.angular.io/.';
|
describe = 'Updates your workspace and its dependencies. See https://update.angular.dev/.';
|
||||||
longDescriptionPath = join(__dirname, 'long-description.md');
|
longDescriptionPath = join(__dirname, 'long-description.md');
|
||||||
|
|
||||||
builder(localYargs: Argv): Argv<UpdateCommandArgs> {
|
builder(localYargs: Argv): Argv<UpdateCommandArgs> {
|
||||||
@ -716,7 +716,7 @@ export default class UpdateCommandModule extends CommandModule<UpdateCommandArgs
|
|||||||
// Example @angular/core skipped version 3, @angular/cli skipped versions 2-5.
|
// Example @angular/core skipped version 3, @angular/cli skipped versions 2-5.
|
||||||
logger.error(
|
logger.error(
|
||||||
`Updating multiple major versions of '${name}' at once is not supported. Please migrate each major version individually.\n` +
|
`Updating multiple major versions of '${name}' at once is not supported. Please migrate each major version individually.\n` +
|
||||||
`For more information about the update process, see https://update.angular.io/.`,
|
`For more information about the update process, see https://update.angular.dev/.`,
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
const nextMajorVersionFromCurrent = currentMajorVersion + 1;
|
const nextMajorVersionFromCurrent = currentMajorVersion + 1;
|
||||||
@ -725,7 +725,7 @@ export default class UpdateCommandModule extends CommandModule<UpdateCommandArgs
|
|||||||
`Updating multiple major versions of '${name}' at once is not supported. Please migrate each major version individually.\n` +
|
`Updating multiple major versions of '${name}' at once is not supported. Please migrate each major version individually.\n` +
|
||||||
`Run 'ng update ${name}@${nextMajorVersionFromCurrent}' in your workspace directory ` +
|
`Run 'ng update ${name}@${nextMajorVersionFromCurrent}' in your workspace directory ` +
|
||||||
`to update to latest '${nextMajorVersionFromCurrent}.x' version of '${name}'.\n\n` +
|
`to update to latest '${nextMajorVersionFromCurrent}.x' version of '${name}'.\n\n` +
|
||||||
`For more information about the update process, see https://update.angular.io/?v=${currentMajorVersion}.0-${nextMajorVersionFromCurrent}.0`,
|
`For more information about the update process, see https://update.angular.dev/?v=${currentMajorVersion}.0-${nextMajorVersionFromCurrent}.0`,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -19,4 +19,4 @@ For example, use the following command to take the latest 10.x.x version and use
|
|||||||
ng update @angular/cli@^10 @angular/core@^10
|
ng update @angular/cli@^10 @angular/core@^10
|
||||||
```
|
```
|
||||||
|
|
||||||
For detailed information and guidance on updating your application, see the interactive [Angular Update Guide](https://update.angular.io/).
|
For detailed information and guidance on updating your application, see the interactive [Angular Update Guide](https://update.angular.dev/).
|
||||||
|
@ -106,7 +106,7 @@ Angular is cross-platform, fast, scalable, has incredible tooling, and is loved
|
|||||||
|
|
||||||
## Upgrading
|
## Upgrading
|
||||||
|
|
||||||
Check out our [upgrade guide](https://update.angular.io/) to find out the best way to upgrade your project.
|
Check out our [upgrade guide](https://update.angular.dev/) to find out the best way to upgrade your project.
|
||||||
|
|
||||||
## Contributing
|
## Contributing
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user