naive-ui/scripts/generate-version.js
2020-07-22 17:40:38 +08:00

7 lines
182 B
JavaScript

const version = require('../package.json').version
require('fs').writeFileSync(
require('path').resolve(__dirname, '..', 'src', 'version.js'),
`export default '${version}'\n`
)