mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-27 20:49:53 +08:00
c9bac13bc8
* add devDependencies * rerun ci * rerun ci * update * update * fix * chore: update * fix * fix --------- Co-authored-by: MadCcc <1075746765@qq.com>
12 lines
260 B
TypeScript
12 lines
260 B
TypeScript
import fs from 'fs';
|
|
import path from 'path';
|
|
import localPackage from '../package.json';
|
|
|
|
const { version } = localPackage;
|
|
|
|
fs.writeFileSync(
|
|
path.join(__dirname, '..', 'components', 'version', 'version.ts'),
|
|
`export default '${version}';`,
|
|
'utf8',
|
|
);
|