初始仓库迁移
Some checks failed
CI / verify (push) Has been cancelled

This commit is contained in:
2026-04-04 23:57:06 +08:00
parent 80986b790d
commit c49c64896a
18446 changed files with 532435 additions and 2 deletions

15
scripts/run-tsx.cjs Normal file
View File

@@ -0,0 +1,15 @@
const path = require('node:path');
const {require: tsxRequire} = require('tsx/cjs/api');
const [, , entry, ...restArgs] = process.argv;
if (!entry) {
console.error('Usage: node scripts/run-tsx.cjs <entry.ts> [...args]');
process.exit(1);
}
const resolvedEntry = path.resolve(process.cwd(), entry);
process.argv = [process.argv[0], resolvedEntry, ...restArgs];
tsxRequire(resolvedEntry, path.join(process.cwd(), '__tsx_runner__.cjs'));