From 5563c0c6d6da02e8294c263acba7513de7f9d6aa Mon Sep 17 00:00:00 2001 From: djtran Date: Sun, 11 Dec 2022 12:39:51 -0500 Subject: [PATCH] Add prepublish target The README instructions for adding a command are out of date/incorrect. `prepublish` does not exist and therefore cannot be run. --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 114ef6b..ac69ec7 100755 --- a/package.json +++ b/package.json @@ -5,7 +5,8 @@ "build": "babel src/ -d compiled/", "bundle": "rollup compiled/app.js -o bundle.js -f cjs --compact", "minify": "minify --mangle bundle.js -o main.js", - "flow": "flow" + "flow": "flow", + "prepublish": "npm run build; npm run bundle; npm run minify" }, "devDependencies": { "@babel/cli": "^7.10.5",