Spaces:
Running
Running
File size: 1,026 Bytes
2e1ab99 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
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('β
ββββββββββββββββββββββββββββββββββββββββ
');
|