From e411ce35cfa58181d375544ba5204c35db83678c Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Fri, 18 Nov 2022 10:05:55 -0800 Subject: [PATCH] [meta] run the build in prepack, not prepublish --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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",