Skip to content
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

fix(@angular-devkit/build-ng-packagr): add tsickle as optional peer dep #16178

Merged
merged 1 commit into from Nov 14, 2019

Conversation

filipesilva
Copy link
Contributor

This way it'll be automatically updated if present.

@filipesilva filipesilva changed the title fix(@angular-devkit/build-ng-packagr): add tsickle to package group fix(@angular-devkit/build-ng-packagr): add tsickle as optional peer dep Nov 13, 2019
This way it'll be automatically updated if present.
@filipesilva filipesilva removed the request for review from alan-agius4 November 13, 2019 14:20
@filipesilva filipesilva added the target: patch This PR is targeted for the next patch release label Nov 13, 2019
@IgorMinar
Copy link
Contributor

this is cool @filipesilva! I didn't know that npm and yarn now supported optional peerDeps.

@IgorMinar
Copy link
Contributor

btw I came across some issues with tsickle 0.37.1 which we might need to be aware of: angular/angular#33788

@dgp1130
Copy link
Collaborator

dgp1130 commented Nov 13, 2019

@IgorMinar, is this safe to merge or are those issues blocking for this PR as well?

@filipesilva
Copy link
Contributor Author

@IgorMinar npm added support in npm/cli#224 and yarn added in yarnpkg/yarn#6487.

@filipesilva filipesilva added the needs: discussion On the agenda for team meeting to determine next steps label Nov 14, 2019
@@ -11,13 +11,19 @@
"rxjs": "6.5.3"
},
"peerDependencies": {
"ng-packagr": "^9.0.0-rc.0"
"ng-packagr": "^9.0.0-rc.0",
"tsickle": "~0.37.1"
Copy link
Collaborator

Choose a reason for hiding this comment

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

I was under the impression that the fix for this was the include the dependency in the packageGroup.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah that was the original idea, but then Charles brough the optional peer dep up that both ensures it is updated, and ensures that if it is present on install (outside of update) it should be the right version. Do you think there are problems with this approach?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Not at all, I was just curios to know why the change :)

@clydin
Copy link
Member

clydin commented Nov 14, 2019

Also of note, npm had a defect that was fixed in 6.13.0 (currently the latest release) that would cause an incorrect warning about the peer dependency being missing but only on the first install.
It was originally thought to be a registry server only issue. However, upon fixing the npm registry it was found that one of npm's dependencies also needed a fix as well. But as of today yarn, npm, and pnpm all support optional peer dependencies.

@filipesilva
Copy link
Contributor Author

Discussed in a meeting, it's safe to do this because we will be removing it right after during the migration. This will just correct the peerdep failure if any exists.

@filipesilva filipesilva removed the needs: discussion On the agenda for team meeting to determine next steps label Nov 14, 2019
@dgp1130 dgp1130 merged commit b618c18 into angular:master Nov 14, 2019
@dgp1130
Copy link
Collaborator

dgp1130 commented Nov 14, 2019

Merged to 9.0.x patch: https://github.com/angular/angular-cli/commits/9.0.x.

@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 Dec 15, 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.

None yet

6 participants