diff --git a/package.json b/package.json index cfe26d62e..f2cb49161 100644 --- a/package.json +++ b/package.json @@ -17,14 +17,14 @@ }, "main": "lib/index.js", "scripts": { - "prepack": "npmignore --auto --commentLines=autogenerated", + "prepack": "npmignore --auto --commentLines=autogenerated && npm run build", "build": "rimraf lib && babel src --out-dir lib --copy-files", "create": "node ./scripts/create-rule", "flow": "flow", "lint:fix": "npm run lint -- --fix", "lint": "eslint --ext=js,mjs,cjs,ts,tsx .", "prepublish": "not-in-publish || npm run prepublishOnly", - "prepublishOnly": "safe-publish-latest && npm run lint && npm run flow && npm run jest && npm run build", + "prepublishOnly": "safe-publish-latest && npm run lint && npm run flow && npm run jest", "pretest": "npm run lint:fix && npm run flow", "test": "npm run jest", "posttest": "aud --production",