Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.