mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-11-21 01:13:16 +08:00
7 lines
192 B
JavaScript
7 lines
192 B
JavaScript
const version = require('../package.json').version
|
|
|
|
require('node:fs').writeFileSync(
|
|
require('node:path').resolve(__dirname, '..', 'src', 'version.ts'),
|
|
`export default '${version}'\n`
|
|
)
|