element-plus/build/gen-version.js

7 lines
278 B
JavaScript
Raw Normal View History

2020-11-22 21:34:02 +08:00
/* eslint-disable @typescript-eslint/no-var-requires */
const fs = require('fs')
const path = require('path')
const { version } = require('../package.json')
fs.writeFileSync(path.resolve(__dirname, '../packages/element-plus/version.ts'), `export const version = '${version}'
2020-11-22 21:34:02 +08:00
`)