Removing prettier for now. Adding CLI option and making it bundle before release to decrease startup time.

This commit is contained in:
K35
2022-01-01 01:08:05 +00:00
parent 7da1cf0841
commit d64518627d
7 changed files with 8174 additions and 14 deletions

View File

@ -7,7 +7,7 @@ import {
} from "../ir";
import { CompileTarget } from "../compile";
import * as prettier from "prettier";
// import * as prettier from "prettier";
type lineAppender = (ind: number, line: string | string[]) => void;
@ -51,13 +51,13 @@ export class TypescriptTarget extends CompileTarget {
}
private writeFormattedFile(file: string, code: string) {
// this.writeFile(file, code);
const formatted = prettier.format(code, {
parser: "typescript",
tabWidth: 3,
});
this.writeFile(file, code);
// const formatted = prettier.format(code, {
// parser: "typescript",
// tabWidth: 3,
// });
this.writeFile(file, formatted);
// this.writeFile(file, formatted);
}
generateType(def: TypeDefinition) {