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

Migrate to PNPM #552

Merged
merged 7 commits into from
Dec 22, 2024
Merged

Migrate to PNPM #552

merged 7 commits into from
Dec 22, 2024

Conversation

jelhan
Copy link
Contributor

@jelhan jelhan commented Dec 17, 2024

Migrates the project from yarn v1 to PNPM. PNPM is the recommended package manager for the adopted-ember-addons org per adopted-ember-addons/program-guidelines#28.

@jelhan
Copy link
Contributor Author

jelhan commented Dec 18, 2024

Ember 5.12 scenario started to fail again due to @ember/string:

Could not find module @ember/string imported from ember-metrics/services/metrics

This should have been fixed in #547. We have the package as a peer dependency and a dev dependency. I have no idea why migrating to PNPM breaks it to be honest.

@jelhan jelhan marked this pull request as draft December 21, 2024 12:30
package.json Outdated
@@ -49,14 +49,15 @@
},
"dependencies": {
"broccoli-funnel": "^3.0.2",
"ember-auto-import": "^2.6.3",
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 moved this breaking change out to #553 which should be merged first.

Comment on lines -59 to +60
"@ember/string": "^3.0.1",
"@ember/string": "^4.0.0",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This fixes an issue introduced in #547. The project had a direct dependency on ^3.0.1 of @ember/string but a resolution forcing all transitive dependencies to resolve to ^4.0.0. Please let me know if you prefer this to be pulled out to a separate PR.

@jelhan jelhan marked this pull request as ready for review December 21, 2024 14:38
@jelhan jelhan requested a review from SergeAstapov December 21, 2024 14:38
@@ -19,17 +19,20 @@ jobs:

steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8
Copy link
Contributor

Choose a reason for hiding this comment

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

@jelhan out of curiosity, why not using pnpm v9 right away?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@jelhan jelhan merged commit 3ade63c into master Dec 22, 2024
6 checks passed
@SergeAstapov SergeAstapov deleted the switch-to-pnpm branch December 22, 2024 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants