diff --git a/Gulpfile.js b/Gulpfile.js index ccee958ab08..82a2890b78b 100644 --- a/Gulpfile.js +++ b/Gulpfile.js @@ -26,6 +26,7 @@ var serveStatic = require('serve-static'); var Promise = require('pinkie'); var promisify = require('pify'); var markdownlint = require('markdownlint'); +var isEqual = require('lodash').isEqual; var readFile = promisify(fs.readFile, Promise); @@ -285,13 +286,13 @@ gulp.task('update-greenkeeper', function () { return !watchDepsRe.test(dep); }); - config.greenkeeper = { - ignore: ignoredDeps - }; + if (!isEqual(config.greenkeeper.ignore, ignoredDeps)) { + config.greenkeeper.ignore = ignoredDeps; - // NOTE: We should write to the file synchronously to avoid collision - // with other tasks that may be reading from it asynchronously (GH-315) - fs.writeFileSync('package.json', JSON.stringify(config, null, 2) + '\n'); + // NOTE: We should write to the file synchronously to avoid collision + // with other tasks that may be reading from it asynchronously (GH-315) + fs.writeFileSync('package.json', JSON.stringify(config, null, 2) + '\n'); + } }); }); diff --git a/package.json b/package.json index 9ce0fce017c..f5345668936 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "testcafe", - "version": "0.0.12", + "version": "0.0.14", "main": "lib/index", "bin": { "testcafe": "./bin/testcafe"