forked from Kispi/Core
7 lines
253 B
JavaScript
7 lines
253 B
JavaScript
|
const fs = require('fs');
|
||
|
const gitCommitInfo = require('git-commit-info');
|
||
|
const packageJson = require('../package.json');
|
||
|
|
||
|
const version = `${packageJson.version}+${gitCommitInfo().shortHash}`;
|
||
|
|
||
|
fs.writeFileSync('.env', `VITE_APP_VERSION=${version}`);
|