Browse Source
* 📦 generate version.js from package.json
* components/version/version.ts
* remove version.js
* fix scripts
* Add pretest and predist
* clean up finalizeCompile
* fix lint
pull/23963/head
偏右
5 years ago
committed by
GitHub
5 changed files with 23 additions and 31 deletions
@ -1,3 +1,5 @@ |
|||
import packageInfo from '../../package.json'; |
|||
/* eslint import/no-unresolved: 0 */ |
|||
// @ts-ignore
|
|||
import version from './version'; |
|||
|
|||
export default packageInfo.version; |
|||
export default version; |
|||
|
@ -0,0 +1,10 @@ |
|||
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', |
|||
); |
Loading…
Reference in new issue