Skip to content

Commit

Permalink
feat(ts-client): treat scheam file location as source dir
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonkuhrt committed Apr 20, 2024
1 parent 55e43aa commit ae9ab07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cli/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ const args = Command.create().description(`Generate a type safe GraphQL client.`
},
})
.parse()

import * as Path from 'node:path'
await generateFiles({
sourceDirPath: Path.dirname(args.schema),
outputDirPath: args.output,
schemaPath: args.schema,
format: args.format,
errorTypeNamePattern: args.schemaErrorType._tag === `schemaErrorTypePattern`
? new RegExp(args.schemaErrorType.value)
Expand Down

0 comments on commit ae9ab07

Please sign in to comment.