Skip to content

Commit

Permalink
rm useless fs write
Browse files Browse the repository at this point in the history
  • Loading branch information
jean-smaug committed Jul 28, 2023
1 parent 560deff commit bd7167a
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import fs from "node:fs";
import type { ComponentsObject, GlobalContext } from "../types.js";
import { escObjKey, getEntries, getSchemaObjectComment, indent, tsOptionalProperty, tsReadonly } from "../utils.js";
import transformHeaderObject from "./header-object.js";
Expand Down Expand Up @@ -182,8 +181,6 @@ export default function transformComponentsObject(components: ComponentsObject,
output.push(indent("pathItems: never;", indentLv));
}

fs.writeFileSync(`${process.cwd()}/types.ts`, allTypes);

indentLv--;
output.push(indent("}", indentLv));
return { output: output.join("\n"), allTypes };
Expand Down

0 comments on commit bd7167a

Please sign in to comment.