Removing prettier for now. Adding CLI option and making it bundle before release to decrease startup time.
This commit is contained in:
@ -1,3 +1,5 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
import yargs from "yargs";
|
||||
import { hideBin } from "yargs/helpers";
|
||||
import startCompile, { Target } from "./process";
|
||||
|
@ -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) {
|
||||
|
Reference in New Issue
Block a user