From 11cdbd707359535571e3f358b22eb67a35dbd0b2 Mon Sep 17 00:00:00 2001 From: Eric Cornelissen Date: Mon, 22 Jul 2019 17:58:51 +0100 Subject: [PATCH] Add a "build" and "clean" NPM script (#1548) --- package.json | 6 ++++-- scripts/{prepublish.js => build-package.js} | 0 2 files changed, 4 insertions(+), 2 deletions(-) rename scripts/{prepublish.js => build-package.js} (100%) mode change 100755 => 100644 diff --git a/package.json b/package.json index 109e35b3..a1e7256c 100644 --- a/package.json +++ b/package.json @@ -26,11 +26,13 @@ "uglify-js": "^3.6.0" }, "scripts": { + "build": "node scripts/build-package.js", + "clean": "rm icons/*.js index.js", "jsonlint": "jsonlint _data/simple-icons.json -q -V .jsonlintschema", "svglint": "svglint icons/* --ci", "wslint": "editorconfig-checker --ignore", - "prepublishOnly": "node scripts/prepublish.js", - "postpublish": "rm icons/*.js index.js", + "prepublishOnly": "npm run build", + "postpublish": "npm run clean", "test": "jest", "pretest": "npm run prepublishOnly", "posttest": "npm run postpublish", diff --git a/scripts/prepublish.js b/scripts/build-package.js old mode 100755 new mode 100644 similarity index 100% rename from scripts/prepublish.js rename to scripts/build-package.js