From 6b86aa45d1f9594f269f0acf62f22c207045b1f6 Mon Sep 17 00:00:00 2001 From: Gareth Jones Date: Sun, 5 Jul 2020 21:55:45 +1200 Subject: [PATCH] chore: replace scripts with single `prepack` script (#606) --- package.json | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/package.json b/package.json index 15ef18f5b..650cc6ae6 100644 --- a/package.json +++ b/package.json @@ -23,10 +23,8 @@ "build": "babel --extensions .js,.ts src --out-dir lib --copy-files", "postbuild": "rimraf lib/__tests__ lib/**/__tests__", "lint": "eslint . --ignore-pattern '!.eslintrc.js' --ext js,ts", - "prepare": "yarn build && yarn postbuild", - "prepublishOnly": "yarn build", + "prepack": "yarn build", "prettylint": "prettylint docs/**/*.md README.md package.json", - "pretest": "yarn build", "test": "jest", "tools:generate-rules-table": "ts-node -T tools/generate-rules-table", "typecheck": "tsc -p ."