Browse Source

added dependencies when module gets required in other modules

mightyplow 8 years ago
parent
commit
15a3d92b92
2 changed files with 11 additions and 3 deletions
  1. 3 0
      .babelrc
  2. 8 3
      package.json

+ 3 - 0
.babelrc

@@ -0,0 +1,3 @@
+{
+  "presets": ["es2015"]
+}

+ 8 - 3
package.json

@@ -3,10 +3,10 @@
   "version": "0.2.0",
   "description": "js, helpers library",
   "main": "jslib.js",
-  "dependencies": {
+  "devDependencies": {
+    "babel-preset-es2015": "^6.22.0",
     "nodeunit": "^0.10.2"
   },
-  "devDependencies": {},
   "scripts": {
     "nodeunit": "nodeunit",
     "test": "nodeunit tests"
@@ -26,5 +26,10 @@
     "email": "mightyplow@gmail.com",
     "url": "http://mightyplow.net"
   },
-  "license": "ISC"
+  "license": "ISC",
+  "browserify": {
+    "transform": [
+      "babelify"
+    ]
+  }
 }