mirror of
https://github.com/exogen/t2-mapper.git
synced 2026-02-13 03:33:52 +00:00
11 lines
302 B
TypeScript
11 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);
|