mirror of
https://github.com/coleam00/bolt.new-any-llm
synced 2024-12-27 22:33:03 +00:00
d8a277f0ac
* refactor: removes commit.json and used vite.config to load these variables * updated precommit hook * updated the pre start script * updated the workflows
27 lines
1000 B
JavaScript
27 lines
1000 B
JavaScript
const { execSync } =require('child_process');
|
|
|
|
// Get git hash with fallback
|
|
const getGitHash = () => {
|
|
try {
|
|
return execSync('git rev-parse --short HEAD').toString().trim();
|
|
} catch {
|
|
return 'no-git-info';
|
|
}
|
|
};
|
|
|
|
let commitJson = {
|
|
hash: JSON.stringify(getGitHash()),
|
|
version: JSON.stringify(process.env.npm_package_version),
|
|
};
|
|
|
|
console.log(`
|
|
★═══════════════════════════════════════★
|
|
B O L T . D I Y
|
|
⚡️ Welcome ⚡️
|
|
★═══════════════════════════════════════★
|
|
`);
|
|
console.log('📍 Current Version Tag:', `v${commitJson.version}`);
|
|
console.log('📍 Current Commit Version:', commitJson.hash);
|
|
console.log(' Please wait until the URL appears here');
|
|
console.log('★═══════════════════════════════════════★');
|