decorator/.make-package.js
crusader 1a1123b1a6 ing
2018-05-16 19:12:12 +09:00

9 lines
278 B
JavaScript

const fs = require('fs');
const packageJson = JSON.parse(fs.readFileSync('./package.json').toString());
delete packageJson.devDependencies;
delete packageJson.scripts;
packageJson.private = false;
fs.writeFileSync('./dist/package.json', JSON.stringify(packageJson, null, 2));