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: support shakapacker v8 #546

Merged
merged 1 commit into from
Jul 12, 2024
Merged

fix: support shakapacker v8 #546

merged 1 commit into from
Jul 12, 2024

Conversation

G-Rath
Copy link
Contributor

@G-Rath G-Rath commented May 10, 2024

The most notable feature change in v8 is that Shakapacker is now JS package manager agnostic by default, using the packageManager property to determine which package manager to use (otherwise defaulting to npm, like Node itself).

A side-effect of this means that shakapacker:install now merges with existing package.jsons rather than always overwriting it (that way you can set packageManager before running the installer); this means we could potentially refactor some of our package.json related code to reduce duplication but it'll still all work as-is so I've left that for a potential follow-up PR.

There are other breaking changes which are detailed in the upgrade guide but they're mainly around fixing existing behaviour and removing deprecated stuff like the webpacker namespace; they will be relevant for our existing applications but don't impact new applications.

@G-Rath

This comment was marked as outdated.

@G-Rath G-Rath marked this pull request as ready for review May 30, 2024 21:15
@G-Rath G-Rath merged commit e4c4e58 into main Jul 12, 2024
19 of 22 checks passed
@G-Rath G-Rath deleted the upgrade-shakapacker-v8 branch July 12, 2024 00:05
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.

3 participants