fix: version

This commit is contained in:
Shivam Mishra
2025-06-11 18:28:04 +05:30
parent e9b99a5811
commit 0b56add844
+1 -9
View File
@@ -90,15 +90,7 @@ function generatePackageJson(packageDir) {
stdio: 'pipe',
}).trim();
// Check if we're in a clean working directory
const isClean =
execSync('git status --porcelain', {
encoding: 'utf8',
stdio: 'pipe',
}).trim() === '';
// Use git hash for development, beta for clean builds
return isClean ? 'beta.1' : `dev.${gitHash}`;
return `dev.${gitHash}`;
} catch (error) {
console.warn(' ⚠️ Could not get git hash, using beta.1');
return 'beta.1';