Browse Source

add npm prepublishOnly script

nicejs-is-cool 3 years ago
parent
commit
c7ea783728
1 changed files with 2 additions and 1 deletions
  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": {