Skip to content

fix(@angular/cli): add packageGroup for @angular/cli #13942

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

hansl
Copy link
Contributor

@hansl hansl commented Mar 19, 2019

This should add ng-update support to updating ALL the packages that are published from this repo.

Fixes #13581

@hansl hansl added the target: patch This PR is targeted for the next patch release label Mar 19, 2019
@hansl hansl requested a review from alan-agius4 March 19, 2019 00:27
"migrations": "@schematics/angular/migrations/migration-collection.json"
"migrations": "@schematics/angular/migrations/migration-collection.json",
"packageGroup": {
"@angular/cli": "0.0.0"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn’t this package group contain the packages to updates? Aka for the cli shouldn’t it be @angular-devkit/build-angular and @angular-devkit/ng-packagr?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's all done in the build.ts actually.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll remove this line. it's basically useless.

fs.writeFileSync(packageJsonPath, JSON.stringify(packageJson, null, 2) + '\n');
}
logger.info('Setting packageGroups...');
await _setPackageGroups(sortedPackages, logger.createChild('packageGroups'));
Copy link
Member

@clydin clydin Mar 19, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Won't this add package groups to all the dev kit packages each with all the other dev kit packages included?

Do we want that? Updating the schematics CLI for instance should probably not update the CLI proper.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll change it a bit.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done, I added a check instead that build will add package group packages if they're in the package.json already, and added all packages that I thought were okay.

This should add ng-update support to updating packages that are published from
this repo. The build script only updates package.json's ng-update
packageGroup dependencies, so these should be kept up to date in the
future (when new packages are created).

Fixes angular#13581
@hansl
Copy link
Contributor Author

hansl commented Mar 24, 2019

@clydin @alan-agius4 please take another look.

@alexeagle
Copy link
Contributor

@clydin is this obsolete now that you made a smaller-scope change?

@alexeagle
Copy link
Contributor

Charles took it over

@alexeagle alexeagle closed this Apr 15, 2019
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 13, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ng update does not check or update @angular-devkit packages
5 participants