Skip to content

Commit

Permalink
chore(tests): make sure transpiled code is valid ES3 syntax (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB authored and benlesh committed Aug 9, 2016
1 parent 1090f30 commit 3f37af3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .babelrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"presets": ["es2015"]
"presets": ["es2015", "es3"]
}
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"node": ">=0.10.0"
},
"scripts": {
"test": "npm run build && mocha && tsc ./ts-test/test.ts && node ./ts-test/test.js",
"test": "npm run build && mocha && tsc ./ts-test/test.ts && node ./ts-test/test.js && check-es3-syntax lib/ --kill",
"build": "babel es --out-dir lib",
"prepublish": "npm test"
},
Expand All @@ -38,7 +38,9 @@
"devDependencies": {
"babel-cli": "^6.9.0",
"babel-preset-es2015": "^6.9.0",
"babel-preset-es3": "^1.0.0",
"chai": "^3.5.0",
"check-es3-syntax-cli": "^0.1.0",
"mocha": "^2.4.5",
"typescript": "^1.8.10"
}
Expand Down

0 comments on commit 3f37af3

Please sign in to comment.