|
@@ -6,16 +6,17 @@
|
|
|
"private": true,
|
|
|
"devDependencies": {
|
|
|
"babel-cli": "^6.26.0",
|
|
|
- "babel-preset-es2015": "^6.22.0",
|
|
|
+ "babel-preset-env": "^1.6.0",
|
|
|
+ "babel-preset-stage-2": "^6.24.1"
|
|
|
"nodeunit": "^0.10.2",
|
|
|
"rimraf": "^2.6.1"
|
|
|
},
|
|
|
"scripts": {
|
|
|
"createPackageJson": "node bin/createPackageJson.js",
|
|
|
"nodeunit": "nodeunit",
|
|
|
- "test": "nodeunit tests",
|
|
|
- "build": "rimraf dist && babel src -d dist",
|
|
|
- "prepublish": "npm run build && npm run createPackageJson",
|
|
|
+ "test": "babel-node node_modules/.bin/nodeunit src/**/__tests__/*.test.js",
|
|
|
+ "build": "rimraf dist && babel src -d dist --ignore __tests__",
|
|
|
+ "prepublish": "npm run test && npm run build && npm run createPackageJson",
|
|
|
"publish": "cd dist && npm publish"
|
|
|
},
|
|
|
"keywords": [
|
|
@@ -35,9 +36,5 @@
|
|
|
"env",
|
|
|
"stage-2"
|
|
|
]
|
|
|
- },
|
|
|
- "dependencies": {
|
|
|
- "babel-preset-env": "^1.6.0",
|
|
|
- "babel-preset-stage-2": "^6.24.1"
|
|
|
}
|
|
|
}
|