naive-ui/scripts/gen-version.js
2021-02-03 21:38:43 +08:00

7 lines
182 B
JavaScript

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