Skip to content

Commit 8a81d0b

Browse files
authored
fix: graphql gen logging output (#795)
1 parent e2c366f commit 8a81d0b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/graphql/graphql-schema.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ To add an NPM script to generate your types and show Payload where to find your
4545
```json
4646
{
4747
"scripts": {
48-
"generate:types": "PAYLOAD_CONFIG_PATH=src/payload.config.ts payload generate:types",
48+
"generate:graphQLSchema": "PAYLOAD_CONFIG_PATH=src/payload.config.ts payload generate:graphQLSchema",
4949
},
5050
}
5151
```

src/bin/generateGraphQLSchema.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export function generateGraphQLSchema(): void {
1717

1818
logger.info('Compiling GraphQL schema...');
1919
fs.writeFileSync(config.graphQL.schemaOutputFile, printSchema(payload.schema));
20-
logger.info(`GraphQL written to ${config.typescript.outputFile}`);
20+
logger.info(`GraphQL written to ${config.graphQL.schemaOutputFile}`);
2121
}
2222

2323
// when generateGraphQLSchema.js is launched directly

0 commit comments

Comments
 (0)