DEV: Update supported node versions (#15073)

13 and 15 are no longer supported by node, and issues with discourse dependencies prevent us from using 17. (for now)
This commit is contained in:
Jarek Radosz 2021-11-24 18:18:35 +01:00 committed by GitHub
parent 3f97f884fe
commit c75224e3d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
11 changed files with 11 additions and 12 deletions

View File

@ -46,7 +46,7 @@
"loader.js": "^4.7.0" "loader.js": "^4.7.0"
}, },
"engines": { "engines": {
"node": ">= 12.*", "node": "12.* || 14.* || 16.*",
"npm": "please-use-yarn", "npm": "please-use-yarn",
"yarn": ">= 1.21.1" "yarn": ">= 1.21.1"
}, },

View File

@ -46,7 +46,7 @@
"loader.js": "^4.7.0" "loader.js": "^4.7.0"
}, },
"engines": { "engines": {
"node": ">= 12.*", "node": "12.* || 14.* || 16.*",
"npm": "please-use-yarn", "npm": "please-use-yarn",
"yarn": ">= 1.21.1" "yarn": ">= 1.21.1"
}, },

View File

@ -46,7 +46,7 @@
"loader.js": "^4.7.0" "loader.js": "^4.7.0"
}, },
"engines": { "engines": {
"node": ">= 12.*", "node": "12.* || 14.* || 16.*",
"npm": "please-use-yarn", "npm": "please-use-yarn",
"yarn": ">= 1.21.1" "yarn": ">= 1.21.1"
}, },

View File

@ -46,7 +46,7 @@
"loader.js": "^4.7.0" "loader.js": "^4.7.0"
}, },
"engines": { "engines": {
"node": ">= 12.*", "node": "12.* || 14.* || 16.*",
"npm": "please-use-yarn", "npm": "please-use-yarn",
"yarn": ">= 1.21.1" "yarn": ">= 1.21.1"
}, },

View File

@ -11,7 +11,7 @@
] ]
}, },
"engines": { "engines": {
"node": ">= 12.*", "node": "12.* || 14.* || 16.*",
"npm": "please-use-yarn", "npm": "please-use-yarn",
"yarn": ">= 1.21.1" "yarn": ">= 1.21.1"
} }

View File

@ -66,7 +66,7 @@
"virtual-dom": "^2.1.1" "virtual-dom": "^2.1.1"
}, },
"engines": { "engines": {
"node": ">= 12.*", "node": "12.* || 14.* || 16.*",
"npm": "please-use-yarn", "npm": "please-use-yarn",
"yarn": ">= 1.21.1" "yarn": ">= 1.21.1"
}, },

View File

@ -45,7 +45,7 @@
"loader.js": "^4.7.0" "loader.js": "^4.7.0"
}, },
"engines": { "engines": {
"node": ">= 12.*", "node": "12.* || 14.* || 16.*",
"npm": "please-use-yarn", "npm": "please-use-yarn",
"yarn": ">= 1.21.1" "yarn": ">= 1.21.1"
}, },

View File

@ -44,7 +44,7 @@
"loader.js": "^4.7.0" "loader.js": "^4.7.0"
}, },
"engines": { "engines": {
"node": ">= 12.*", "node": "12.* || 14.* || 16.*",
"npm": "please-use-yarn", "npm": "please-use-yarn",
"yarn": ">= 1.21.1" "yarn": ">= 1.21.1"
}, },

View File

@ -44,7 +44,7 @@
"loader.js": "^4.7.0" "loader.js": "^4.7.0"
}, },
"engines": { "engines": {
"node": ">= 12.*", "node": "12.* || 14.* || 16.*",
"npm": "please-use-yarn", "npm": "please-use-yarn",
"yarn": ">= 1.21.1" "yarn": ">= 1.21.1"
}, },

View File

@ -46,7 +46,7 @@ if !args.include?("test") && !args.include?("--proxy")
args << PROXY args << PROXY
end end
system "yarn -s install --cwd #{yarn_dir}" exit 1 if !system "yarn -s install --cwd #{yarn_dir}"
if ARGV.include?("-u") || ARGV.include?("--unicorn") if ARGV.include?("-u") || ARGV.include?("--unicorn")
unicorn_env = { "DISCOURSE_PORT" => ENV["DISCOURSE_PORT"] || "4200" } unicorn_env = { "DISCOURSE_PORT" => ENV["DISCOURSE_PORT"] || "4200" }
@ -72,7 +72,6 @@ if ARGV.include?("-u") || ARGV.include?("--unicorn")
end end
Process.wait(unicorn_pid) Process.wait(unicorn_pid)
else else
exec "yarn", *args.to_a.flatten exec "yarn", *args.to_a.flatten
end end

View File

@ -66,7 +66,7 @@
"postinstall": "yarn --cwd app/assets/javascripts/discourse" "postinstall": "yarn --cwd app/assets/javascripts/discourse"
}, },
"engines": { "engines": {
"node": ">= 12.*", "node": "12.* || 14.* || 16.*",
"npm": "please-use-yarn", "npm": "please-use-yarn",
"yarn": ">= 1.21.1" "yarn": ">= 1.21.1"
} }