ant-design/scripts/generate-version.js
lijianan 71eddd2c20 chore: remove useless tsx support (#39934)
* chore: remove useless tsx support

* add

* revert

* add

* fix

* fix

* add test case

* fix
2022-12-31 22:24:56 +08:00

11 lines
246 B
JavaScript

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