Skip to content

fix: support shakapacker v8#546

Merged
G-Rath merged 1 commit intomainfrom
upgrade-shakapacker-v8
Jul 12, 2024
Merged

fix: support shakapacker v8#546
G-Rath merged 1 commit intomainfrom
upgrade-shakapacker-v8

Conversation

@G-Rath
Copy link
Copy Markdown
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 force-pushed the upgrade-shakapacker-v8 branch from d5c5e91 to 7cc31ce Compare May 31, 2024 00:30
@G-Rath G-Rath merged commit e4c4e58 into main Jul 12, 2024
@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