瀏覽代碼

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": {