Fix npm publishing

Summary:
Fixed npm packaging/publishing scripts for "flipper-doctor", "flipper-pkg" and "flipper-babel-transformer".

Also removed scripts for testing and linting, because these packages are tested and linted by root level package.json.

Reviewed By: jknoxville

Differential Revision: D20839959

fbshipit-source-id: 4d9d037d4921fc97356c849054c389dfece05652
This commit is contained in:
Anton Nikolaev
2020-04-06 02:32:47 -07:00
committed by Facebook GitHub Bot
parent f1e8297800
commit 2690894ad0
5 changed files with 29 additions and 37 deletions

View File

@@ -24,13 +24,9 @@
"typescript": "^3.7.2"
},
"scripts": {
"reset": "rimraf lib *.tsbuildinfo",
"build": "tsc -b",
"prepare": "yarn run build",
"prepublishOnly": "yarn test && yarn run lint",
"preversion": "yarn run lint",
"test": "jest --config jestconfig.json --passWithNoTests",
"lint": "eslint -c ../.eslintrc.js src/**/* --ext .js,.ts && tsc --noemit",
"fix": "eslint -c ../.eslintrc.js src/**/* --fix --ext .js,.ts",
"prepack": "yarn reset && yarn build",
"run": "yarn run build && node lib/cli.js"
},
"files": [