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

Added @babel/core as a dependency (required by ember-cli-babel@v8) #1880

Merged
merged 6 commits into from
May 14, 2024

Conversation

mkszepp
Copy link
Contributor

@mkszepp mkszepp commented May 14, 2024

The standard of packages managers are, that they are installing automatically missing dependencies.
To avoid problems in consumer apps, we should disable auto installing dependencies by using a stricter dependency managment.

This is possible by adding .npmrc with some options.

Atm in .npmrc there was strict-peer-dependencies=false... this is the default value in pnpm 8 + 9 so we can remove it. https://pnpm.io/8.x/npmrc

@ijlee2 ijlee2 force-pushed the add-missing-peer-dependencies branch from 0965140 to e5bcaec Compare May 14, 2024 07:50
@ijlee2 ijlee2 changed the title Add missing peerDependencies Added @babel/core as a dependency (required by ember-cli-babel@v8) May 14, 2024
@ijlee2 ijlee2 added the bug Something isn't working label May 14, 2024
Copy link
Contributor

@ijlee2 ijlee2 left a comment

Choose a reason for hiding this comment

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

@mkszepp While I agree with the spirit of the RFC, I got the impression that auto-install-peers=false and resolve-peers-from-workspace-root=false aren't ready yet.

Looking at which packages you had to add to {configs,docs,tests}/**/package.json, it seemed to me like pnpm didn't fully understand how the lint packages and Ember projects work, but applied its rules blindly. (Maybe turning these flags off will work better in v9?)

To minimize change, let's just add @babel/core to ember-intl's dependencies, which follows the upgrade guide and aligns with Ember's blueprints. This would also help me cut a patch release for ember-intl@v6. Is this okay?

@ijlee2 ijlee2 added the enhance: dependency Issue asks for a new or updated dependency label May 14, 2024
@mkszepp
Copy link
Contributor Author

mkszepp commented May 14, 2024

@ijlee2 yes thats good

@ijlee2 ijlee2 merged commit 61333e0 into ember-intl:main May 14, 2024
32 checks passed
@mkszepp mkszepp deleted the add-missing-peer-dependencies branch May 14, 2024 10:00
ijlee2 added a commit that referenced this pull request May 14, 2024
…1880)

---------

Co-authored-by: ijlee2 <ijlee2@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhance: dependency Issue asks for a new or updated dependency
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants