mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-09 04:31:35 +08:00
7 lines
182 B
JavaScript
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`
|
|
)
|