1// Node uses the existing native CLI; there is no separate Node layout engine.2import {execFileSync} from 'node:child_process';3import {fileURLToPath} from 'node:url';4const binary=process.env.LAYMESH_CLI||fileURLToPath(new URL('../../target/release/laymesh',import.meta.url));5const source=process.argv[2]||fileURLToPath(new URL('../manual/line.lay',import.meta.url));6const output=process.argv[3]||'figure.svg';7execFileSync(binary,['validate',source],{stdio:'inherit'});8execFileSync(binary,['render',source,'-o',output],{stdio:'inherit'});