ant-design/scripts/generate-version.js
二货爱吃白萝卜 a0cf98637e
fix: getCurrentLink not trigger when scroll (#43917)
* fix: getCurrentLink not trigger when scroll

* chore: fix lint
2023-07-31 22:03:21 +08:00

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',
);