소스 검색

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",