Skip to content

Commit

Permalink
refactor(cms): redirect payload to move generated types to cms directory
Browse files Browse the repository at this point in the history
  • Loading branch information
mrzzy committed May 20, 2024
1 parent 10080ff commit 72d8a16
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion apps/cms/src/payload.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export default buildConfig({
// outputFile: path.resolve(__dirname, "payload-types.ts"),
outputFile: path.resolve(
__dirname,
"../../../packages/types/src/lib/cms.ts"
"types.ts"
), // overridden by PAYLOAD_TS_OUTPUT_PATH env var
},
graphQL: {
Expand Down
5 changes: 2 additions & 3 deletions packages/types/src/lib/cms.ts → apps/cms/src/types.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* tslint:disable */
/* eslint-disable */
/**
* This file was automatically generated by Payload.
* This file was automatically generated by Payload CMS.
* DO NOT MODIFY IT BY HAND. Instead, modify your source Payload config,
* and re-run `payload generate:types` to regenerate this file.
*/
Expand Down Expand Up @@ -90,7 +89,7 @@ export interface User {
name?: string;
updatedAt: string;
createdAt: string;
email: string;
email?: string;
resetPasswordToken?: string;
resetPasswordExpiration?: string;
salt?: string;
Expand Down

0 comments on commit 72d8a16

Please sign in to comment.