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:
parent
3f97f884fe
commit
c75224e3d9
|
@ -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"
|
||||||
},
|
},
|
||||||
|
|
|
@ -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"
|
||||||
},
|
},
|
||||||
|
|
|
@ -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"
|
||||||
},
|
},
|
||||||
|
|
|
@ -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"
|
||||||
},
|
},
|
||||||
|
|
|
@ -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"
|
||||||
}
|
}
|
||||||
|
|
|
@ -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"
|
||||||
},
|
},
|
||||||
|
|
|
@ -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"
|
||||||
},
|
},
|
||||||
|
|
|
@ -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"
|
||||||
},
|
},
|
||||||
|
|
|
@ -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"
|
||||||
},
|
},
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue