mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-11-30 02:59:04 +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',
|
|
);
|