Created
February 27, 2016 15:23
-
-
Save tmcw/ece750655108f80f80af to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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