Skip to content

Commit 7575eba

Browse files
committed
Define minimum Node.js version
1 parent 1c4ab96 commit 7575eba

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ var scriptPath = __dirname+'/build/HTMLCS.js';
44
if (fs.existsSync(scriptPath) === true) {
55
module.exports = require(scriptPath);
66
} else {
7-
throw new Error('HTMLCS must be built using `grunt build` before it can be required in Nodejs.');
8-
}
7+
throw new Error('HTMLCS must be built using `grunt build` before it can be required in Node.js.');
8+
}

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,12 @@
99
],
1010
"scripts": {
1111
"prepack": "grunt build",
12+
"build": "grunt build",
1213
"test": "echo \"Error: no test specified\" && exit 1"
1314
},
15+
"engines": {
16+
"node": ">=6"
17+
},
1418
"files": [
1519
"Auditor",
1620
"build",

0 commit comments

Comments
 (0)