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:
Anton Kastritskiy
2022-06-15 07:37:54 -07:00
committed by Facebook GitHub Bot
parent 3a60f8c5be
commit f5992d3489
2 changed files with 6 additions and 0 deletions

1
desktop/.npmrc Normal file
View File

@@ -0,0 +1 @@
engine-strict = true

View File

@@ -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": [