Skip to content

Commit

Permalink
fix node4 build issue (dequelabs#542)
Browse files Browse the repository at this point in the history
* fix(node4): use var to declare variables

Block-scoped declarations (let, const, function, class) not yet supported outside strict mode

* feat(package): add engine hint to package.json

provides minimal requirements warning
  • Loading branch information
Ahmad Nassri authored and marcysutton committed Sep 21, 2017
1 parent b30b451 commit c72badb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build/utils/postinstall.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
var fs = require('fs')

if (fs.existsSync(".git/hooks")) {
let commitMsg = '.git/hooks/commit-msg'
var commitMsg = '.git/hooks/commit-msg'
if (!fs.existsSync(commitMsg)) {
let angularPrecommit = "./node_modules/angular-precommit/index.js"
var angularPrecommit = "./node_modules/angular-precommit/index.js"
if (fs.existsSync(angularPrecommit)) {
var fsExtra = require('fs-extra')
fsExtra.copy(angularPrecommit, commitMsg, (err) => {
Expand All @@ -12,4 +12,4 @@ if (fs.existsSync(".git/hooks")) {
})
}
}
}
}
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
"description": "Accessibility engine for automated Web UI testing",
"version": "3.0.0-alpha.4",
"license": "MPL-2.0",
"engines": {
"node": ">=4"
},
"contributors": [
{
"name": "David Sturley",
Expand Down

0 comments on commit c72badb

Please sign in to comment.