naive-ui/build/restore-side-effects.js

9 lines
220 B
JavaScript

const packageJson = require('../package.json')
delete packageJson.sideEffects
require('fs-extra').writeFileSync(
require('path').resolve(__dirname, '..', 'package.json'),
JSON.stringify(packageJson, 0, 2) + '\n'
)