Skip to content

Commit 0776e26

Browse files
authored
fix(cli): Ensure code injection points are not code style dependent (#2832)
1 parent 7d219d9 commit 0776e26

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/cli/src/authentication/templates/client.tpl.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const toClientFile = toFile<ServiceGeneratorContext>(({ lib }) => [lib, 'client'
1010

1111
export const generate = async (ctx: ServiceGeneratorContext) =>
1212
generator(ctx)
13-
.then(injectSource(importTemplate, after("from '@feathersjs/feathers'"), toClientFile))
13+
.then(injectSource(importTemplate, after('import authenticationClient'), toClientFile))
1414
.then(
1515
when(
1616
({ language }) => language === 'ts',

packages/cli/src/service/templates/client.tpl.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export const generate = async (ctx: ServiceGeneratorContext) =>
5050
.then(
5151
when(
5252
(ctx) => ctx.language === 'ts',
53-
injectSource(importTemplate, after("from '@feathersjs/feathers'"), toClientFile),
53+
injectSource(importTemplate, after('import authenticationClient'), toClientFile),
5454
injectSource(methodsTemplate, before('\nexport interface ServiceTypes'), toClientFile),
5555
injectSource(declarationTemplate, after('export interface ServiceTypes'), toClientFile)
5656
)

0 commit comments

Comments
 (0)