/* 438-1 초기 종단 직선화 거울 헬퍼 — `logic/B05_Profile_Grade_Ground.ts` `groundFollowingBasePvi` * (`passThrough` 직선화)를 그 자리에서 트랜스파일해 돌림. 입력 argv[2] JSON [GroundFollowingInput, …] · * 표준출력 = 꼭짓점 목록 한 벌씩. */ const fs = require("fs"); const path = require("path"); const { makeLoader } = require("./helper_ts_stub_loader.cjs"); const { loadTs } = makeLoader({ root: path.join(__dirname, "..", ".."), }); const ground = loadTs( path.join(__dirname, "..", "..", "B05_Profile", "logic", "B05_Profile_Grade_Ground.ts"), ); const cases = JSON.parse(fs.readFileSync(process.argv[2], "utf8")); process.stdout.write(JSON.stringify(cases.map((item) => ground.groundFollowingBasePvi(item))));