diff --git a/implementations/javascript/packages/schema/src/bin/preserves-schemac.ts b/implementations/javascript/packages/schema/src/bin/preserves-schemac.ts index 49af3e8..5b38d4e 100644 --- a/implementations/javascript/packages/schema/src/bin/preserves-schemac.ts +++ b/implementations/javascript/packages/schema/src/bin/preserves-schemac.ts @@ -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) {