统一前后端代码格式化配置
This commit is contained in:
@@ -36,7 +36,10 @@ try {
|
||||
console.log('\n已清空测试业务数据。')
|
||||
console.log('保留内容:fulfillment profiles/bindings、admin users、配置文件。')
|
||||
} catch (error) {
|
||||
console.error('\n清理失败:', error instanceof Error ? error.message : String(error || '未知错误'))
|
||||
console.error(
|
||||
'\n清理失败:',
|
||||
error instanceof Error ? error.message : String(error || '未知错误'),
|
||||
)
|
||||
process.exitCode = 1
|
||||
} finally {
|
||||
await closeDb()
|
||||
@@ -64,7 +67,8 @@ function parseArgs(argv) {
|
||||
}
|
||||
|
||||
function printHelp() {
|
||||
console.log(`
|
||||
console.log(
|
||||
`
|
||||
用法:
|
||||
npm run cleanup:dev-data -- [--apply]
|
||||
|
||||
@@ -80,7 +84,8 @@ function printHelp() {
|
||||
admin_users / admin_audit_logs
|
||||
本地配置文件
|
||||
数据库连接: ${String(runtimeConfig.database?.url || '').trim() || '(未配置 DATABASE_URL)'}
|
||||
`.trim())
|
||||
`.trim(),
|
||||
)
|
||||
}
|
||||
|
||||
function printSummary(counts) {
|
||||
|
||||
Reference in New Issue
Block a user