Repair preserves-schemac
This commit is contained in:
parent
b98f434ac9
commit
4c0bd3b9d7
|
@ -24,10 +24,9 @@ export function run(options: CommandLineArguments): void {
|
||||||
|
|
||||||
if (failures.length === 0) {
|
if (failures.length === 0) {
|
||||||
if (options.bundle) {
|
if (options.bundle) {
|
||||||
fs.writeSync(1, underlying(canonicalEncode(M.fromBundle({
|
fs.writeSync(1, underlying(canonicalEncode(M.fromBundle(M.Bundle(
|
||||||
modules: new KeyedDictionary<M.ModulePath, M.Schema, M.InputEmbedded>(
|
new KeyedDictionary<M.ModulePath, M.Schema, M.InputEmbedded>(
|
||||||
inputFiles.map(i => [i.modulePath, i.schema])),
|
inputFiles.map(i => [i.modulePath, i.schema])))))));
|
||||||
}))));
|
|
||||||
} else {
|
} else {
|
||||||
fs.writeSync(1, underlying(canonicalEncode(M.fromSchema(inputFiles[0].schema))));
|
fs.writeSync(1, underlying(canonicalEncode(M.fromSchema(inputFiles[0].schema))));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue