This commit is contained in:
Tomáš Dvořák committed 2025-10-03 16:26:44 +02:00
1 parent 0fc92f8464
commit cdb8bcd3e9
5928 files changed
+1054476 -72

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
#!/usr/bin/env node
const { resolve } = require("node:path");
const script = process.argv.splice(2, 1)[0];
if (!script) {
console.error("Usage: jiti <path> [...arguments]");
process.exit(1);
}
const pwd = process.cwd();
const jiti = require("..")(pwd);
const resolved = (process.argv[1] = jiti.resolve(resolve(pwd, script)));
jiti(resolved);