diff --git a/apps/cms/src/payload.config.ts b/apps/cms/src/payload.config.ts index 8e628176..63a5afce 100644 --- a/apps/cms/src/payload.config.ts +++ b/apps/cms/src/payload.config.ts @@ -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: { diff --git a/packages/types/src/lib/cms.ts b/apps/cms/src/types.ts similarity index 96% rename from packages/types/src/lib/cms.ts rename to apps/cms/src/types.ts index 7236123c..ece41843 100644 --- a/packages/types/src/lib/cms.ts +++ b/apps/cms/src/types.ts @@ -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. */ @@ -90,7 +89,7 @@ export interface User { name?: string; updatedAt: string; createdAt: string; - email: string; + email?: string; resetPasswordToken?: string; resetPasswordExpiration?: string; salt?: string;