Skip to content

Commit 660f6d1

Browse files
committed
missed fixing clientClass
1 parent 8324997 commit 660f6d1

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

src/utils/writeClientCustomTemplate/clientClass.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { mkdir, readFile, remove } from 'fs-extra';
1+
import { readFile, remove } from 'fs-extra';
22
import Handlebars from 'handlebars';
33
import { resolve } from 'path';
44

@@ -36,9 +36,8 @@ export const writeClientClassCustomTemplate = async (
3636

3737
const clientClassTemplate = Handlebars.compile(await readFile(templatePath, 'utf8'));
3838

39-
const clientClassDir = resolve(outputPath, 'clientClass');
40-
await remove(clientClassDir);
41-
await mkdir(clientClassDir);
39+
const clientClassFile = resolve(outputPath, `${clientName}.ts`);
40+
await remove(clientClassFile);
4241

4342
const templateResult = clientClassTemplate({
4443
clientName,

src/utils/writeClientCustomTemplate/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { mkdir, readFile, remove } from 'fs-extra';
1+
import { readFile, remove } from 'fs-extra';
22
import Handlebars from 'handlebars';
33
import { resolve } from 'path';
44

0 commit comments

Comments
 (0)