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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.x] Yarn v3 for stable webpacker 5.x gem #3098

Merged
merged 11 commits into from Aug 17, 2021
2 changes: 1 addition & 1 deletion lib/tasks/webpacker/check_yarn.rake
Expand Up @@ -9,7 +9,7 @@ namespace :webpacker do
pkg_path = Pathname.new("#{__dir__}/../../../package.json").realpath
yarn_range = JSON.parse(pkg_path.read)["engines"]["yarn"]
is_valid = SemanticRange.satisfies?(yarn_version, yarn_range) rescue false
is_unsupported = SemanticRange.satisfies?(yarn_version, ">=3.0.0") rescue false
is_unsupported = SemanticRange.satisfies?(yarn_version, ">=4.0.0") rescue false

unless is_valid
$stderr.puts "Webpacker requires Yarn \"#{yarn_range}\" and you are using #{yarn_version}"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -9,7 +9,7 @@
],
"engines": {
"node": ">=10.17.0",
"yarn": ">=1 <3"
"yarn": ">=1 <4"
},
"dependencies": {
"@babel/core": "^7.14.3",
Expand Down