mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Prevent npm usage (#13945)
We rely on yarn workspaces so we don't want people using npm in the repo by accident. Also updated the required node version to 12+. ~~Not sure about the min yarn version – the latest one could be missing in various CI-like envs, so I might change it yet.~~ Downgraded yarn to ">= 1.21.1" (the oldest of "current" versions, tagged "legacy")
This commit is contained in:
1
app/assets/javascripts/pretty-text/.npmrc
Normal file
1
app/assets/javascripts/pretty-text/.npmrc
Normal file
@@ -0,0 +1 @@
|
||||
engine-strict = true
|
||||
@@ -45,7 +45,9 @@
|
||||
"loader.js": "^4.7.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": "8.* || >= 10.*"
|
||||
"node": ">= 12.*",
|
||||
"npm": "please-use-yarn",
|
||||
"yarn": ">= 1.21.1"
|
||||
},
|
||||
"ember": {
|
||||
"edition": "octane"
|
||||
|
||||
Reference in New Issue
Block a user