mirror of
https://github.com/discourse/discourse.git
synced 2025-03-26 08:16:55 +08:00
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
app/assets/javascripts
admin
discourse-common
discourse-hbr
discourse-widget-hbs
discourse
pretty-text
select-kit
truth-helpers
bin
package.json@ -46,7 +46,7 @@
|
||||
"loader.js": "^4.7.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 12.*",
|
||||
"node": "12.* || 14.* || 16.*",
|
||||
"npm": "please-use-yarn",
|
||||
"yarn": ">= 1.21.1"
|
||||
},
|
||||
|
@ -46,7 +46,7 @@
|
||||
"loader.js": "^4.7.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 12.*",
|
||||
"node": "12.* || 14.* || 16.*",
|
||||
"npm": "please-use-yarn",
|
||||
"yarn": ">= 1.21.1"
|
||||
},
|
||||
|
@ -46,7 +46,7 @@
|
||||
"loader.js": "^4.7.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 12.*",
|
||||
"node": "12.* || 14.* || 16.*",
|
||||
"npm": "please-use-yarn",
|
||||
"yarn": ">= 1.21.1"
|
||||
},
|
||||
|
@ -46,7 +46,7 @@
|
||||
"loader.js": "^4.7.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 12.*",
|
||||
"node": "12.* || 14.* || 16.*",
|
||||
"npm": "please-use-yarn",
|
||||
"yarn": ">= 1.21.1"
|
||||
},
|
||||
|
@ -11,7 +11,7 @@
|
||||
]
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 12.*",
|
||||
"node": "12.* || 14.* || 16.*",
|
||||
"npm": "please-use-yarn",
|
||||
"yarn": ">= 1.21.1"
|
||||
}
|
||||
|
@ -66,7 +66,7 @@
|
||||
"virtual-dom": "^2.1.1"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 12.*",
|
||||
"node": "12.* || 14.* || 16.*",
|
||||
"npm": "please-use-yarn",
|
||||
"yarn": ">= 1.21.1"
|
||||
},
|
||||
|
@ -45,7 +45,7 @@
|
||||
"loader.js": "^4.7.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 12.*",
|
||||
"node": "12.* || 14.* || 16.*",
|
||||
"npm": "please-use-yarn",
|
||||
"yarn": ">= 1.21.1"
|
||||
},
|
||||
|
@ -44,7 +44,7 @@
|
||||
"loader.js": "^4.7.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 12.*",
|
||||
"node": "12.* || 14.* || 16.*",
|
||||
"npm": "please-use-yarn",
|
||||
"yarn": ">= 1.21.1"
|
||||
},
|
||||
|
@ -44,7 +44,7 @@
|
||||
"loader.js": "^4.7.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 12.*",
|
||||
"node": "12.* || 14.* || 16.*",
|
||||
"npm": "please-use-yarn",
|
||||
"yarn": ">= 1.21.1"
|
||||
},
|
||||
|
@ -46,7 +46,7 @@ if !args.include?("test") && !args.include?("--proxy")
|
||||
args << PROXY
|
||||
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")
|
||||
unicorn_env = { "DISCOURSE_PORT" => ENV["DISCOURSE_PORT"] || "4200" }
|
||||
@ -72,7 +72,6 @@ if ARGV.include?("-u") || ARGV.include?("--unicorn")
|
||||
end
|
||||
|
||||
Process.wait(unicorn_pid)
|
||||
|
||||
else
|
||||
exec "yarn", *args.to_a.flatten
|
||||
end
|
||||
|
@ -66,7 +66,7 @@
|
||||
"postinstall": "yarn --cwd app/assets/javascripts/discourse"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 12.*",
|
||||
"node": "12.* || 14.* || 16.*",
|
||||
"npm": "please-use-yarn",
|
||||
"yarn": ">= 1.21.1"
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user