Bläddra i källkod

add extra fields to package.json
add files field to package.json to specify output files
remove ".map" files from package

afrokick 5 år sedan
förälder
incheckning
83f2638886
2 ändrade filer med 21 tillägg och 3 borttagningar
  1. 1 1
      .gitignore
  2. 20 2
      package.json

+ 1 - 1
.gitignore

@@ -5,7 +5,7 @@ lib-cov
 *.dat
 *.out
 *.pid
-*.gz
+*.[t]gz
 
 pids
 logs

+ 20 - 2
package.json

@@ -3,16 +3,34 @@
   "version": "1.2.0",
   "description": "PeerJS client",
   "main": "./dist/peerjs.min.js",
+  "homepage": "https://github.com/peers/peerjs#readme",
+  "keywords": [
+    "peerjs",
+    "webrtc",
+    "p2p",
+    "rtc"
+  ],
   "repository": {
     "type": "git",
-    "url": "git://github.com/peers/peerjs.git"
+    "url": "git+https://github.com/peers/peerjs.git"
   },
+  "bugs": {
+    "url": "https://github.com/peers/peerjs/issues"
+  },
+  "files": [
+    "dist/*.js",
+    "lib/",
+    "index.d.ts"
+  ],
   "author": "Michelle Bu, Eric Zhang, Jairo Caro-Accino, Carlos Caballero",
+  "maintainers": [
+    "Alex Sosnovskiy <devbyru@gmail.com> (https://github.com/afrokick)"
+  ],
   "license": "MIT",
   "scripts": {
     "build": "parcel build lib/exports.ts --out-file peerjs.min.js",
     "build-nonminified": "parcel build lib/exports.ts --out-file peerjs.js --no-minify",
-    "prepublish": "npm run build",
+    "prepublishOnly": "npm run build",
     "postinstall": "opencollective-postinstall",
     "test": "mocha -r ts-node/register -r jsdom-global/register test/**/*.ts"
   },