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

Merged
merged 3 commits into from
Jul 30, 2022
Merged

migrate to pnpm #579

merged 3 commits into from
Jul 30, 2022

Conversation

ro0gr
Copy link
Collaborator

@ro0gr ro0gr commented Jul 22, 2022

After migrating to v2 addon(#576), peerDependencies installation issues have arised with npm. Shortly:

  • due to @ember/test-helpers peerDependency of the addon, ember-source@latest is hoisted into the root node_modules
  • then dependencySatisfies( of the @embroider/macros assumes that tests run against the ember-source@latest, even though in the test-app we have a different ember-source issues, which leads to further runtime errors.

The issue is better explained here embroider-build/embroider#1169 (comment).

As far as I can see the only possible workaround for npm could be to set auto-install-peers to false in the .npmrc. However, it still feels like a workaround, and I haven't checked if it really works. So I'm going to switch to pnpm for now cause it doesn't have such an issue.

For the record, I'd be happy to come back to npm when the issue would be solved there.

Also:

  • [Breaking] Drop Node@12 support due to pnpm requires v14 or higher
  • Use slightly dated [email protected], since in later versions(up to the current latest 7.7.1) there are issues with --frozen-lockfile installations

@ro0gr ro0gr force-pushed the v2-addon-fixups branch 3 times, most recently from 2a4f285 to 502e6f1 Compare July 22, 2022 08:57
@ro0gr ro0gr changed the title V2 addon fixups migrate to pnpm Jul 30, 2022
@ro0gr ro0gr marked this pull request as ready for review July 30, 2022 21:54
@ro0gr ro0gr mentioned this pull request Jul 30, 2022
in order to avoid ember-source `peerDependency` being hoisted to the
root node_modules, which causes unreliable imports in embroider.

see: embroider-build/embroider#1169 (comment)

Also:

- [Breaking] Drop Node@12 support due to `pnpm` requires it
- Use slightly dated [email protected], since in the later version there are
  issues with `--frozen-lockfile` installations
@ro0gr ro0gr merged commit 1dacc3c into san650:v2-beta Jul 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant