소스 검색

add npm prepublishOnly script

nicejs-is-cool 3 년 전
부모
커밋
c7ea783728
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      package.json

+ 2 - 1
package.json

@@ -14,7 +14,8 @@
   "license": "MIT",
   "scripts": {
     "postinstall": "npm run build",
-    "build": "node build.js"
+    "build": "node build.js",
+    "prepublishOnly": "npm run build"
   },
   "main": "index.js",
   "devDependencies": {