Skip to content

Instantly share code, notes, and snippets.

@tmcw
Created February 27, 2016 15:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tmcw/ece750655108f80f80af to your computer and use it in GitHub Desktop.
Save tmcw/ece750655108f80f80af to your computer and use it in GitHub Desktop.
var pkg = require('./package.json');
var exec = require('child_process').exec;
var fs = require('fs');
var path = require('path');
var packages = fs.readdirSync('packages');
packages.forEach(function(dir) {
var p = path.join('./packages/', dir, '/package.json');
var pkg = JSON.parse(fs.readFileSync(p));
delete pkg.devDependencies.eslint;
delete pkg.devDependencies['eslint-config-mourner'];
delete pkg.scripts.lint;
delete pkg.eslintConfig;
fs.writeFileSync(p,
JSON.stringify(pkg, null, 2));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment