mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-04 17:09:46 +08:00
502dac12aa
* docs: fix code * feat: lint * feat: prettier * feat: test * feat: review * feat: format html * feat: format html
13 lines
261 B
TypeScript
13 lines
261 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',
|
|
);
|