For some reason, leap doesn't work with the /dev/stdout version

This commit is contained in:
Tony Garnock-Jones 2021-03-16 21:30:44 +01:00
parent 7072f19407
commit 434279ab66
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ import { readSchema } from '../reader';
export function run(): void {
const src = fs.readFileSync('/dev/stdin', 'utf-8');
fs.writeFileSync('/dev/stdout', underlying(canonicalEncode(readSchema(src))));
fs.writeSync(1, underlying(canonicalEncode(readSchema(src))));
}
export function main(_argv: Array<string>) {