Change npm to yarn

Summary:
`npm` is not found in Tupperware and cause an error in Sandcastle (https://our.intern.facebook.com/intern/sandcastle/job/36028797237063790/).

Changing from `npm` to `yarn`

Note:
- changing job spec (`vcs` and `type` in `capacities`) without changing `npm` passes the test (https://our.intern.facebook.com/intern/sandcastle/job/18014398729063207). Not sure what to do now

Reviewed By: nikoant

Differential Revision: D20191486

fbshipit-source-id: b354c28a61dbce7bc165bd43c4c608fe359a9670
This commit is contained in:
Chaiwat Ekkaewnumchai
2020-03-03 09:54:46 -08:00
committed by Facebook Github Bot
parent 26a5a87158
commit 2afa75a5a7

View File

@@ -24,13 +24,13 @@
}, },
"scripts": { "scripts": {
"build": "tsc", "build": "tsc",
"prepare": "npm run build", "prepare": "yarn run build",
"prepublishOnly": "npm test && npm run lint", "prepublishOnly": "yarn test && yarn run lint",
"preversion": "npm run lint", "preversion": "yarn run lint",
"test": "jest --config jestconfig.json --passWithNoTests", "test": "jest --config jestconfig.json --passWithNoTests",
"lint": "eslint -c ../../sonar/.eslintrc.js src/**/* --ext .js,.ts && tsc --noemit", "lint": "eslint -c ../../sonar/.eslintrc.js src/**/* --ext .js,.ts && tsc --noemit",
"fix": "eslint -c ../../sonar/.eslintrc.js src/**/* --fix --ext .js,.ts", "fix": "eslint -c ../../sonar/.eslintrc.js src/**/* --fix --ext .js,.ts",
"run": "npm run build && node lib/cli.js" "run": "yarn run build && node lib/cli.js"
}, },
"files": [ "files": [
"lib/**/*" "lib/**/*"