Repair preserves-schemac

This commit is contained in:
Tony Garnock-Jones 2023-12-17 11:12:04 +13:00
parent b98f434ac9
commit 4c0bd3b9d7
1 changed files with 3 additions and 4 deletions

View File

@ -24,10 +24,9 @@ export function run(options: CommandLineArguments): void {
if (failures.length === 0) {
if (options.bundle) {
fs.writeSync(1, underlying(canonicalEncode(M.fromBundle({
modules: new KeyedDictionary<M.ModulePath, M.Schema, M.InputEmbedded>(
inputFiles.map(i => [i.modulePath, i.schema])),
}))));
fs.writeSync(1, underlying(canonicalEncode(M.fromBundle(M.Bundle(
new KeyedDictionary<M.ModulePath, M.Schema, M.InputEmbedded>(
inputFiles.map(i => [i.modulePath, i.schema])))))));
} else {
fs.writeSync(1, underlying(canonicalEncode(M.fromSchema(inputFiles[0].schema))));
}