Browse Source

Merge pull request #5945 from jasongrout/browserfield

Add node dependencies and a browser field to services for the ws and node-fetch packages
Jason Grout 6 years ago
parent
commit
277da8004f
1 changed files with 7 additions and 1 deletions
  1. 7 1
      packages/services/package.json

+ 7 - 1
packages/services/package.json

@@ -36,13 +36,19 @@
     "prepublishOnly": "jlpm run build && webpack",
     "watch": "tsc -b --watch"
   },
+  "browser": {
+    "node-fetch": false,
+    "ws": false
+  },
   "dependencies": {
     "@jupyterlab/coreutils": "^3.0.0-alpha.1",
     "@jupyterlab/observables": "^2.2.0-alpha.1",
     "@phosphor/algorithm": "^1.1.2",
     "@phosphor/coreutils": "^1.3.0",
     "@phosphor/disposable": "^1.1.2",
-    "@phosphor/signaling": "^1.2.2"
+    "@phosphor/signaling": "^1.2.2",
+    "node-fetch": "~2.2.0",
+    "ws": "~6.0.0"
   },
   "devDependencies": {
     "@types/node": "~8.0.47",