forked from Kispi/Core
Simon Giesel
c70dba5ab3
All checks were successful
continuous-integration/drone/push Build is passing
7 lines
No EOL
253 B
JavaScript
7 lines
No EOL
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}`); |