mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 02:59:58 +08:00
a0cf98637e
* fix: getCurrentLink not trigger when scroll * chore: fix lint
13 lines
315 B
JavaScript
13 lines
315 B
JavaScript
const path = require('path');
|
|
const fs = require('fs-extra');
|
|
|
|
const { version } = require('../package.json');
|
|
|
|
fs.ensureDirSync(path.join(__dirname, '..', 'components', 'version'));
|
|
|
|
fs.writeFileSync(
|
|
path.join(__dirname, '..', 'components', 'version', 'index.ts'),
|
|
`export default '${version}'`,
|
|
'utf8',
|
|
);
|