Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 14 additions & 20 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"devDependencies": {
"@commitlint/cli": "^20.1.0",
"@commitlint/config-conventional": "^20.0.0",
"@eslint/js": "^9.37.0",
"@eslint/js": "^10.0.1",
"@types/node": "^25.0.2",
"@vitest/coverage-v8": "^4.0.6",
"@vitest/ui": "^4.0.6",
Expand Down
4 changes: 3 additions & 1 deletion src/api/retry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ async function executeWithRetry<T>(
if (operationType === "fetch") {
Logger.error(`${chalk.red("✗")} ${chalk.cyan(filePath)}: ${errorMessage}`)
}
throw new Error(`Failed to ${operationType} ${filePath} after ${MAX_RETRIES} retries: ${errorMessage}`)
throw new Error(`Failed to ${operationType} ${filePath} after ${MAX_RETRIES} retries: ${errorMessage}`, {
cause: error
})
}
const delay = INITIAL_RETRY_DELAY * Math.pow(2, retryCount)
Logger.warn(
Expand Down
4 changes: 2 additions & 2 deletions src/config/authConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ export function parseAuthFile({ allowIncomplete }: { allowIncomplete?: boolean }
return AuthConfigSchema.parse(rawConfig)
} catch (error) {
if (error instanceof z.ZodError) {
throw new Error(`Invalid auth file at ${AuthConfigFilePath}: ${error.message}`)
throw new Error(`Invalid auth file at ${AuthConfigFilePath}: ${error.message}`, { cause: error })
}
if (error instanceof SyntaxError) {
throw new Error(`Invalid JSON in auth file at ${AuthConfigFilePath}: ${error.message}`)
throw new Error(`Invalid JSON in auth file at ${AuthConfigFilePath}: ${error.message}`, { cause: error })
}
throw error
}
Expand Down
4 changes: 2 additions & 2 deletions src/config/fileConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ export function parseConfigFile({
return PartialPersistentConfigSchema.parse(rawConfig)
} catch (error) {
if (error instanceof z.ZodError) {
throw new Error(`Invalid configuration file at ${configPath}: ${error.message}`)
throw new Error(`Invalid configuration file at ${configPath}: ${error.message}`, { cause: error })
}
if (error instanceof SyntaxError) {
throw new Error(`Invalid JSON in configuration file at ${configPath}: ${error.message}`)
throw new Error(`Invalid JSON in configuration file at ${configPath}: ${error.message}`, { cause: error })
}
throw error
}
Expand Down
2 changes: 1 addition & 1 deletion src/modules/deployments/redeploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ type RedeployOptions = {
}

export async function deploymentsRedeploy({ deploymentId, force }: RedeployOptions) {
let selectedDeployment = null
let selectedDeployment
let selectedDeploymentId

if (deploymentId) {
Expand Down