ソースを参照

include only 'bin' and 'dist' folders into package

afrokick 5 年 前
コミット
8e5ba48f6c
1 ファイル変更5 行追加0 行削除
  1. 5 0
      package.json

+ 5 - 0
package.json

@@ -6,6 +6,10 @@
   "bin": {
     "peerjs": "./bin/peerjs"
   },
+  "files": [
+    "bin/",
+    "dist/"
+  ],
   "repository": {
     "type": "git",
     "url": "git://github.com/peers/peerjs-server.git"
@@ -13,6 +17,7 @@
   "author": "Michelle Bu, Eric Zhang",
   "license": "MIT",
   "scripts": {
+    "preversion": "npm run clean && npm run build",
     "build": "tsc",
     "clean": "rimraf ./dist",
     "lint": "eslint --ext .js,.ts .",