Skip to content

Commit

Permalink
fix(scripts): validate needs reassignment
Browse files Browse the repository at this point in the history
  • Loading branch information
Kent C. Dodds committed Jul 8, 2016
1 parent 4aa6f0a commit 54b0f8b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions package-scripts.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/* eslint prefer-template:"off" */ // this file runs in node 0.10.0
const nodeVersion = Number(process.version.match(/^v(\d+\.\d+)/)[1])
const validate = ['lint', 'build', 'cover']
/* eslint prefer-template:"off", no-var:"off" */ // this file runs in node 0.10.0
var nodeVersion = Number(process.version.match(/^v(\d+\.\d+)/)[1])
var validate = ['lint', 'build', 'cover']
if (nodeVersion < 4) {
validate.slice(1)
validate = validate.slice(1)
}
module.exports = {
scripts: {
Expand Down

0 comments on commit 54b0f8b

Please sign in to comment.