mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 11:10:01 +08:00
11 lines
225 B
TypeScript
11 lines
225 B
TypeScript
import fs from 'fs';
|
|
import path from 'path';
|
|
|
|
import { version } from '../package.json';
|
|
|
|
fs.writeFileSync(
|
|
path.join(__dirname, '..', 'components', 'version', 'version.ts'),
|
|
`export default '${version}';`,
|
|
'utf8',
|
|
);
|