setup engines to stop people from using npm
Summary:
Following the discussion from D37080670 (ea7ff7eb8a)
Unfortunately at some people npm changed the order in which things happen when running `npm install` and now dependency resolution happens before validating engines 🤷♂️
But this will work regardless
https://www.internalfb.com/intern/px/p/261cr
Reviewed By: aigoncharov
Differential Revision: D37142960
fbshipit-source-id: 306f1a4e7444dc099c1a11c4c9e22dafceacdbaa
This commit is contained in:
committed by
Facebook GitHub Bot
parent
3a60f8c5be
commit
f5992d3489
1
desktop/.npmrc
Normal file
1
desktop/.npmrc
Normal file
@@ -0,0 +1 @@
|
||||
engine-strict = true
|
||||
@@ -163,6 +163,11 @@
|
||||
"tsc-plugins": "./ts-node scripts/tsc-plugins.tsx",
|
||||
"watch": "cross-env TZ=Pacific/Pohnpei node --expose-gc --stack-trace-limit=40 ./node_modules/.bin/jest --watch"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=16",
|
||||
"npm": "use yarn instead",
|
||||
"yarn": "^1.16"
|
||||
},
|
||||
"version": "0.149.0",
|
||||
"workspaces": {
|
||||
"packages": [
|
||||
|
||||
Reference in New Issue
Block a user