typescript-to-lua
Version:
A generic TypeScript to Lua transpiler. Write your code in TypeScript and publish Lua!
12 lines • 692 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.prepareDiagnosticForFormatting = void 0;
exports.createDiagnosticReporter = createDiagnosticReporter;
const ts = require("typescript");
const prepareDiagnosticForFormatting = (diagnostic) => diagnostic.source === "typescript-to-lua" ? { ...diagnostic, code: "TL" } : diagnostic;
exports.prepareDiagnosticForFormatting = prepareDiagnosticForFormatting;
function createDiagnosticReporter(pretty, system = ts.sys) {
const reporter = ts.createDiagnosticReporter(system, pretty);
return diagnostic => reporter((0, exports.prepareDiagnosticForFormatting)(diagnostic));
}
//# sourceMappingURL=report.js.map