diff --git a/apps/cms/tsconfig.json b/apps/cms/tsconfig.json index d2830361..1cd213bd 100644 --- a/apps/cms/tsconfig.json +++ b/apps/cms/tsconfig.json @@ -12,8 +12,9 @@ "jsx": "react", "allowSyntheticDefaultImports": true, "paths": { + // Ensure this matches the path to your typescript outputFile "payload/generated-types": [ - "../../packages/types/lib/cms.ts" // Ensure this matches the path to your typescript outputFile + "../../packages/types/src/index.ts" ] } }, diff --git a/packages/types/package.json b/packages/types/package.json index 376c16fd..aa6c3e49 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -2,9 +2,7 @@ "name": "types", "version": "0.0.1", "private": true, - "main": "./dist/index.js", - "source": "./src/index.ts", - "types": "./dist/index.d.ts", + "main": "./dist/index.ts", "files": [ "dist/**" ],