@rline/json
Version:
JSON Schema compiler
19 lines (18 loc) • 553 B
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "tsc", {
enumerable: true,
get: function() {
return tsc;
}
});
const _fs = require("@rline/fs");
const _jsontotypecompiler = require("../json-to-type-compiler");
async function tsc(options) {
const schema = await (0, _fs.readJSONFile)(options.main);
const result = new _jsontotypecompiler.TypeManager(schema).compile();
await (0, _fs.writeFile)(options.output.type, result);
}
//# sourceMappingURL=tsc.js.map
;