forked from syndicate-lang/preserves
For some reason, leap doesn't work with the /dev/stdout version
This commit is contained in:
parent
7072f19407
commit
434279ab66
|
@ -4,7 +4,7 @@ import { readSchema } from '../reader';
|
||||||
|
|
||||||
export function run(): void {
|
export function run(): void {
|
||||||
const src = fs.readFileSync('/dev/stdin', 'utf-8');
|
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>) {
|
export function main(_argv: Array<string>) {
|
||||||
|
|
Loading…
Reference in New Issue