Skip to content

Commit 6720b16

Browse files
committed
Remove index.ts and cleanup
1 parent 068c296 commit 6720b16

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/templates/exportService.hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
{{#if imports}}
44
{{#each imports}}
5-
import type { {{{this}}} } from '../models/{{{this}}}';
5+
import type { {{~this~}} } from '../models/{{{this}}}';
66
{{/each}}
77
{{/if}}
8-
import { request as __request } from '../core/request';
8+
import {request as __request} from '../core/request';
99
{{#if @root.useVersion}}
1010
import { OpenAPI } from '../core/OpenAPI';
1111
{{/if}}

src/utils/writeClient.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import { mkdir, rmdir } from './fileSystem';
66
import { isSubDirectory } from './isSubdirectory';
77
import { Templates } from './registerHandlebarTemplates';
88
import { writeClientCore } from './writeClientCore';
9-
import { writeClientIndex } from './writeClientIndex';
109
import { writeClientModels } from './writeClientModels';
1110
import { writeClientSchemas } from './writeClientSchemas';
1211
import { writeClientServices } from './writeClientServices';
@@ -83,7 +82,8 @@ export async function writeClient(
8382
await writeClientModels(client.models, templates, outputPathModels, httpClient, useUnionTypes);
8483
}
8584

86-
if (exportCore || exportServices || exportSchemas || exportModels) {
85+
// We do not need index.ts
86+
/*if (exportCore || exportServices || exportSchemas || exportModels) {
8787
await mkdir(outputPath);
8888
await writeClientIndex(
8989
client,
@@ -96,5 +96,5 @@ export async function writeClient(
9696
exportSchemas,
9797
postfix
9898
);
99-
}
99+
}*/
100100
}

0 commit comments

Comments
 (0)