mirror of
https://github.com/exogen/t2-mapper.git
synced 2026-01-19 20:25:01 +00:00
12 lines
302 B
TypeScript
12 lines
302 B
TypeScript
import fs from "node:fs/promises";
|
|
import { transpile } from "@/src/torqueScript";
|
|
|
|
async function run(scriptPath: string) {
|
|
const script = await fs.readFile(scriptPath, "utf8");
|
|
const { code } = transpile(script);
|
|
console.log(code);
|
|
}
|
|
|
|
const scriptPath = process.argv[2];
|
|
await run(scriptPath);
|