Browse Source

Adding prepublishOnly script to package.json

bodicsek 4 years ago
parent
commit
f159a436bb
1 changed files with 2 additions and 1 deletions
  1. 2 1
      package.json

+ 2 - 1
package.json

@@ -9,7 +9,8 @@
   "scripts": {
     "start": "ts-node dependency-tree.ts",
     "build": "tsc",
-    "test": "echo \"Error: no test specified\" && exit 1"
+    "test": "echo \"Error: no test specified\" && exit 1",
+    "prepublishOnly": "npm run build"
   },
   "author": "",
   "license": "ISC",