Skip to content

Commit 2b319cb

Browse files
author
刘祺
committed
fix broke tests for node 0.12
1 parent 4201543 commit 2b319cb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "PostCSS gulp plugin",
55
"main": "index.js",
66
"scripts": {
7-
"pretest": "eslint index.js",
7+
"pretest": "node-version-gte-4 && eslint index.js || echo \"ESLint not supported\"",
88
"test": "mocha test.js"
99
},
1010
"repository": {
@@ -33,6 +33,7 @@
3333
"eslint": "^3.19.0",
3434
"gulp-sourcemaps": "^2.6.0",
3535
"mocha": "^3.2.0",
36+
"node-version-check": "^2.1.1",
3637
"proxyquire": "^1.7.11",
3738
"sinon": "^2.1.0"
3839
},

0 commit comments

Comments
 (0)