2020-07-22 17:40:38 +08:00
|
|
|
const version = require('../package.json').version
|
|
|
|
|
|
|
|
require('fs').writeFileSync(
|
2021-01-15 23:33:18 +08:00
|
|
|
require('path').resolve(__dirname, '..', 'src', 'version.ts'),
|
2020-07-22 17:40:38 +08:00
|
|
|
`export default '${version}'\n`
|
|
|
|
)
|