We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 156dcf1 commit 5d34f9bCopy full SHA for 5d34f9b
src/__tests__/main.test.ts
@@ -31,4 +31,4 @@ describe('main', () => {
31
expect(schema.components).toBeDefined();
32
expect(schema.components.schemas).toBeDefined();
33
});
34
-});
+});
src/main.ts
@@ -35,12 +35,12 @@ function main() {
35
// Write schema to file
36
const distDir = path.join(__dirname, '..', 'dist');
37
const schemaPath = path.join(distDir, 'schema.json');
38
-
+
39
// Ensure dist directory exists
40
if (!fs.existsSync(distDir)) {
41
fs.mkdirSync(distDir, { recursive: true });
42
}
43
44
45
fs.writeFileSync(schemaPath, generator.toJSON());
46
console.log(`Schema written to ${schemaPath}`);
0 commit comments