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

Follow-up to #1606 #1611

Merged
merged 5 commits into from
Apr 22, 2024
Merged

Follow-up to #1606 #1611

merged 5 commits into from
Apr 22, 2024

Conversation

Judahmeek
Copy link
Contributor

@Judahmeek Judahmeek commented Apr 12, 2024

This PR adds lock files for the changes made in #1606 & also restricts the version of style-loader in rspec examples (style-loader v4 requires a higher version of node than we are currently using) so that CI will pass.


This change is Reviewable

@@ -99,7 +99,7 @@ def add_yarn_dependencies
css_minimizer_webpack_plugin_version = node_major_version >= 18 ? "" : "@<6.0.0"
css_minimizer_webpack_plugin = "css-minimizer-webpack-plugin#{css_minimizer_webpack_plugin_version}"

run "yarn add 'css-loader@<7.0.0' '#{css_minimizer_webpack_plugin}' mini-css-extract-plugin style-loader"
run "yarn add 'css-loader@<7.0.0' '#{css_minimizer_webpack_plugin}' mini-css-extract-plugin 'style-loader@<4.0.0'" # rubocop:disable Layout/LineLength
Copy link
Member

Choose a reason for hiding this comment

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

I don't see why we're locking this:

https://github.com/webpack-contrib/style-loader/releases

New projects can update or change the dependency if needed.

@justin808
Copy link
Member

@Judahmeek let's just update the node version for the tests. If new generated projects need a newer node version or older style-loader, that's fine.

@@ -29,6 +29,7 @@ Gem::Specification.new do |s|
s.add_dependency "addressable"
s.add_dependency "connection_pool"
s.add_dependency "execjs", "~> 2.5"
s.add_dependency "sqlite3", "~> 1.6"
Copy link
Member

Choose a reason for hiding this comment

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

why make this a dependency? it is needed for tests only?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Correct. My mistake.

@justin808 justin808 merged commit 3627488 into master Apr 22, 2024
12 of 16 checks passed
@justin808 justin808 deleted the judahmeek/1606-follow-up branch April 22, 2024 08:34
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.

2 participants