Add a script to check the version of babel cli

Because the package has changed so npm can't just auto-upgrade,
so this at least tells people how to fix it when the upgrade
breaks it for everybody.
This commit is contained in:
David Baker
2016-10-17 16:23:26 +01:00
parent 022eb575d9
commit 9434feb009
2 changed files with 24 additions and 2 deletions
+5 -2
View File
@@ -14,8 +14,8 @@
},
"scripts": {
"reskindex": "./reskindex.js -h header",
"build": "babel src -d lib --source-maps",
"start": "babel src -w -d lib --source-maps",
"build": "node babelcheck.js && babel src -d lib --source-maps",
"start": "node babelcheck.js && babel src -w -d lib --source-maps",
"lint": "eslint src/",
"lintall": "eslint src/ test/",
"clean": "rimraf lib",
@@ -89,5 +89,8 @@
"sinon": "^1.17.3",
"source-map-loader": "^0.1.5",
"webpack": "^1.12.14"
},
"optionalDependencies": {
"babel": "6.5.2"
}
}