Move babel runtime dependency into packages
authorRandall Leeds <randall@apache.org>
Sat, 25 Nov 2017 19:34:19 +0000 (14:34 -0500)
committerRandall Leeds <randall@apache.org>
Sat, 25 Nov 2017 19:37:41 +0000 (14:37 -0500)
The workspace is really a development thing, so it doesn't need any
dependencies outside of dev dependencies. The packages themselves will
need the runtime at runtime because the transform will result in helpers
being pulled from it. However, it's nice to let consumers use the
version they want by specifying it as a peer dependency.

package.json
packages/any/package.json
packages/dom/package.json
packages/fragment-identifier/package.json
packages/range/package.json
packages/refinedBy/package.json
packages/selector/package.json
packages/tee/package.json
packages/text/package.json

index 89329e6..086cbf8 100644 (file)
     "start": "webpack-dev-server",
     "test": "nyc mocha"
   },
-  "dependencies": {
-    "@babel/polyfill": "^7.0.0-beta.32",
-    "@babel/runtime": "^7.0.0-beta.32"
-  },
   "devDependencies": {
     "@babel/core": "^7.0.0-beta.32",
     "@babel/plugin-transform-runtime": "^7.0.0-beta.32",
+    "@babel/polyfill": "^7.0.0-beta.32",
     "@babel/preset-env": "^7.0.0-beta.32",
     "@babel/register": "^7.0.0-beta.32",
+    "@babel/runtime": "^7.0.0-beta.32",
     "@std/esm": "^0.17.1",
     "babel-eslint": "^8.0.2",
     "babel-loader": "^8.0.0-beta.0",
index f85ef7d..5509418 100644 (file)
@@ -10,6 +10,9 @@
     "type": "git",
     "url": "https://gitbox.apache.org/repos/asf/incubator-annotator.git"
   },
+  "peerDependencies": {
+    "@babel/runtime": "^7.0.0-beta.32"
+  },
   "publishConfig": {
     "access": "public"
   }
index 83adb4c..6cd0686 100644 (file)
@@ -14,6 +14,9 @@
     "@annotator/selector": "0.0.0",
     "range-normalize": "^1.1.1"
   },
+  "peerDependencies": {
+    "@babel/runtime": "^7.0.0-beta.32"
+  },
   "publishConfig": {
     "access": "public"
   }
index 93d8b0f..cb7294c 100644 (file)
@@ -16,6 +16,9 @@
   "devDependencies": {
     "pegjs-dev": "0.10.0-164"
   },
+  "peerDependencies": {
+    "@babel/runtime": "^7.0.0-beta.32"
+  },
   "publishConfig": {
     "access": "public"
   }
index d6ecbc8..721c7a2 100644 (file)
@@ -13,6 +13,9 @@
   "dependencies": {
     "cartesian": "^1.0.1"
   },
+  "peerDependencies": {
+    "@babel/runtime": "^7.0.0-beta.32"
+  },
   "publishConfig": {
     "access": "public"
   }
index 27b23da..b1b2fb3 100644 (file)
@@ -10,6 +10,9 @@
     "type": "git",
     "url": "https://gitbox.apache.org/repos/asf/incubator-annotator.git"
   },
+  "peerDependencies": {
+    "@babel/runtime": "^7.0.0-beta.32"
+  },
   "publishConfig": {
     "access": "public"
   }
index 6b99d65..509a633 100644 (file)
@@ -14,6 +14,9 @@
     "@annotator/tee": "^0.0.0",
     "reselect": "^3.0.1"
   },
+  "peerDependencies": {
+    "@babel/runtime": "^7.0.0-beta.32"
+  },
   "publishConfig": {
     "access": "public"
   }
index 437dcc4..db50076 100644 (file)
@@ -10,6 +10,9 @@
     "type": "git",
     "url": "https://gitbox.apache.org/repos/asf/incubator-annotator.git"
   },
+  "peerDependencies": {
+    "@babel/runtime": "^7.0.0-beta.32"
+  },
   "publishConfig": {
     "access": "public"
   }
index 141a771..02f31e3 100644 (file)
@@ -13,6 +13,9 @@
   "dependencies": {
     "@annotator/selector": "0.0.0"
   },
+  "peerDependencies": {
+    "@babel/runtime": "^7.0.0-beta.32"
+  },
   "publishConfig": {
     "access": "public"
   }