element-plus/build/gen-version.js
zazzaz b1bdb6de8b
build: add type (#685)
* build: add type

* chore: update

* chore: update

* chore: update

* chore: update

* chore: update

* chore: update

* chore: update
2020-11-26 23:09:31 +08:00

7 lines
278 B
JavaScript

/* 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}'
`)