소스 검색

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