update version

This commit is contained in:
bipproduction
2025-11-17 21:09:31 +08:00
parent 120ab8f29a
commit 3b6c6fa914
2 changed files with 59 additions and 3 deletions

View File

@@ -22,11 +22,14 @@ async function init() {
throw new Error('NAMESPACE and OPENAPI_URL are required')
}
await fs.rmdir("src", { recursive: true }).catch(() => { })
try {
await fs.access(".git")
console.log("[INIT] Git already initialized")
execSync("rm -rf .git")
execSync("git init")
} catch (error) {
execSync("git init")
}
@@ -52,7 +55,6 @@ async function init() {
console.log('[INIT] Installing dependencies...');
execSync("bun install", { stdio: 'inherit' })
console.log('[INIT] Done');
}