浏览代码

Adding prepublishOnly script to package.json

bodicsek 5 年之前
父节点
当前提交
f159a436bb
共有 1 个文件被更改,包括 2 次插入1 次删除
  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",