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

[React] Fix bump browser-sync from 2.29.3 to 3.0.3 #28575

Merged
merged 2 commits into from
Feb 5, 2025

Conversation

qmonmert
Copy link
Contributor

Fix #28571

https://www.npmjs.com/package/browser-sync-webpack-plugin no longer appears to be maintained


Please make sure the below checklist is followed for Pull Requests.

When you are still working on the PR, consider converting it to Draft (below reviewers) and adding skip-ci label, you can still see CI build result at your branch.

@github-actions github-actions bot added theme: react theme: dependencies Pull requests that update a dependency file labels Jan 27, 2025
@qmonmert qmonmert marked this pull request as draft January 27, 2025 22:24
@qmonmert qmonmert marked this pull request as ready for review January 28, 2025 21:06
@qmonmert
Copy link
Contributor Author

@mshima any idea? locally it works 🤔

@mshima
Copy link
Member

mshima commented Jan 28, 2025

Package.json overrides only works at workspaces root:

devDependencies: { webpack: webpackVersion, 'browser-sync': browserSyncVersion },

Comment on lines 121 to 128
if (application.clientRootDir) {
// Overrides only works if added in root package.json
this.packageJson.merge({
overrides: {
'browser-sync': application.nodeDependencies['browser-sync'],
},
});
}
Copy link
Member

Choose a reason for hiding this comment

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

Needs to be run in postWriting otherwise the modified package.json will be overridden in writing priority.

@mshima mshima merged commit f05a860 into jhipster:main Feb 5, 2025
35 checks passed
@mraible mraible added this to the 8.9.0 milestone Feb 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
theme: dependencies Pull requests that update a dependency file theme: react
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants