Skip to content

Commit bd7167a

Browse files
committed
rm useless fs write
1 parent 560deff commit bd7167a

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

packages/openapi-typescript/src/transform/components-object.ts

-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import fs from "node:fs";
21
import type { ComponentsObject, GlobalContext } from "../types.js";
32
import { escObjKey, getEntries, getSchemaObjectComment, indent, tsOptionalProperty, tsReadonly } from "../utils.js";
43
import transformHeaderObject from "./header-object.js";
@@ -182,8 +181,6 @@ export default function transformComponentsObject(components: ComponentsObject,
182181
output.push(indent("pathItems: never;", indentLv));
183182
}
184183

185-
fs.writeFileSync(`${process.cwd()}/types.ts`, allTypes);
186-
187184
indentLv--;
188185
output.push(indent("}", indentLv));
189186
return { output: output.join("\n"), allTypes };

0 commit comments

Comments
 (0)