Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitae9ab07

Browse files
committed
feat(ts-client): treat scheam file location as source dir
1 parent55e43aa commitae9ab07

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/cli/generate.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ const args = Command.create().description(`Generate a type safe GraphQL client.`
3535
},
3636
})
3737
.parse()
38-
38+
import*asPathfrom'node:path'
3939
awaitgenerateFiles({
40+
sourceDirPath:Path.dirname(args.schema),
4041
outputDirPath:args.output,
41-
schemaPath:args.schema,
4242
format:args.format,
4343
errorTypeNamePattern:args.schemaErrorType._tag===`schemaErrorTypePattern`
4444
?newRegExp(args.schemaErrorType.value)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp