@rline/json
Version:
JSON Schema compiler
19 lines (18 loc) • 523 B
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "schema", {
enumerable: true,
get: function() {
return schema;
}
});
const _fs = require("@rline/fs");
const _jsoncompiler = require("../json-compiler");
async function schema(options) {
const compiled = await new _jsoncompiler.SchemaManager(options).compile();
await (0, _fs.writeJSONFile)(options.output.schema, compiled);
return compiled;
}
//# sourceMappingURL=schema.js.map
;