Skip to content

Commit

Permalink
fix(@angular/cli): change update guide link to angular.dev
Browse files Browse the repository at this point in the history
References to the Angular update guide now use the new angular.dev site.

(cherry picked from commit cb18da3)
  • Loading branch information
clydin committed May 17, 2024
1 parent e7ef048 commit 1039f6d
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ Angular is cross-platform, fast, scalable, has incredible tooling, and is loved

## 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

Expand Down
2 changes: 1 addition & 1 deletion packages/angular/build/src/utils/version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export function assertCompatibleAngularVersion(projectRoot: string): void | neve
console.error(
`This version of CLI is only compatible with Angular versions ${supportedAngularSemver},\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);
Expand Down
6 changes: 3 additions & 3 deletions packages/angular/cli/src/commands/update/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export default class UpdateCommandModule extends CommandModule<UpdateCommandArgs
protected override shouldReportAnalytics = false;

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');

builder(localYargs: Argv): Argv<UpdateCommandArgs> {
Expand Down Expand Up @@ -716,7 +716,7 @@ export default class UpdateCommandModule extends CommandModule<UpdateCommandArgs
// Example @angular/core skipped version 3, @angular/cli skipped versions 2-5.
logger.error(
`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 {
const nextMajorVersionFromCurrent = currentMajorVersion + 1;
Expand All @@ -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` +
`Run 'ng update ${name}@${nextMajorVersionFromCurrent}' in your workspace directory ` +
`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`,
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

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/).
2 changes: 1 addition & 1 deletion scripts/templates/readme.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ Angular is cross-platform, fast, scalable, has incredible tooling, and is loved

## 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

Expand Down

0 comments on commit 1039f6d

Please sign in to comment.