Explorar o código

Adding prepublishOnly script to package.json

bodicsek %!s(int64=4) %!d(string=hai) anos
pai
achega
f159a436bb
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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",