Last active
October 4, 2018 01:35
-
-
Save heycalmdown/32c61b304484b9b3326c34147b60fa21 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
const fs = require('fs'); | |
const package = require('./package.json'); | |
Object.keys(package.devDependencies).forEach(packageName => { | |
if (packageName.startsWith('@island/')) { | |
package.devDependencies[packageName] = 'next'; | |
} | |
}); | |
fs.writeFileSync('./package.json', JSON.stringify(package, null, 2) + '\n'); | |
try { | |
const package = require('./public/package.json'); | |
Object.keys(package.dependencies).forEach(packageName => { | |
if (packageName.startsWith('@island/')) { | |
package.dependencies[packageName] = 'next'; | |
} | |
}); | |
fs.writeFileSync('./public/package.json', JSON.stringify(package, null, 2) + '\n'); | |
} catch (e) { | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment