1
0
Fork 0
forked from Kispi/Core
HGOE-SaS/webapp/scripts/generate-version.js

7 lines
253 B
JavaScript
Raw Normal View History

2023-07-09 19:27:45 +00:00
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}`);