ant-design/scripts/generate-version.js

11 lines
246 B
JavaScript
Raw Normal View History

const fs = require('fs-extra');
const path = require('path');
const { version } = require('../package.json');
fs.writeFileSync(
path.join(__dirname, '..', 'components', 'version', 'version.tsx'),
`export default '${version}'`,
'utf8',
);