feat:移除了弹窗,服务器添加sls

This commit is contained in:
2026-09-08 22:39:45 +08:00
commit 6a295f9a7a
4082 changed files with 1322534 additions and 0 deletions

24
scripts/run.mjs Normal file
View File

@ -0,0 +1,24 @@
#!/usr/bin/env node
import { spawn } from 'child_process'
import { fileURLToPath } from 'url'
import { dirname, join } from 'path'
const __dirname = dirname(fileURLToPath(import.meta.url))
const [scriptName, ...args] = process.argv.slice(2)
if (!scriptName) {
console.error('Usage: pnpm scripts <script-name> [args...]')
console.error('Example: pnpm scripts coverage-i18n --verbose')
process.exit(1)
}
const scriptPath = join(__dirname, `${scriptName}.ts`)
const child = spawn('pnpx', ['tsx', scriptPath, ...args], {
stdio: 'inherit',
shell: true,
})
child.on('exit', (code) => {
process.exit(code ?? 0)
})