forked from syndicate-lang/preserves
Fix preserves-schemac
This commit is contained in:
parent
c23cbcc60c
commit
d64bb82c22
|
@ -1,10 +1,11 @@
|
|||
import { canonicalEncode, underlying } from '@preserves/core';
|
||||
import fs from 'fs';
|
||||
import { readSchema } from '../reader';
|
||||
import { fromSchema } from '../meta';
|
||||
|
||||
export function run(): void {
|
||||
const src = fs.readFileSync('/dev/stdin', 'utf-8');
|
||||
fs.writeSync(1, underlying(canonicalEncode(readSchema(src))));
|
||||
fs.writeSync(1, underlying(canonicalEncode(fromSchema(readSchema(src)))))
|
||||
}
|
||||
|
||||
export function main(_argv: Array<string>) {
|
||||
|
|
Loading…
Reference in New Issue