From f94bc5d822ff01f43874d0fb8998940175ad2b48 Mon Sep 17 00:00:00 2001 From: tobias Date: Mon, 20 May 2024 14:20:00 +0200 Subject: [PATCH] Move payload types so dev container doesn't crash --- .gitignore | 2 ++ astro/.gitignore | 5 +---- astro/tsconfig.json | 3 ++- payload/src/payload.config.ts | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index 472e5d7..413944d 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,5 @@ data yarn-debug.log* yarn-error.log* + +/types/payload-types.ts \ No newline at end of file diff --git a/astro/.gitignore b/astro/.gitignore index a1e45f1..85aa78d 100644 --- a/astro/.gitignore +++ b/astro/.gitignore @@ -15,7 +15,4 @@ pnpm-debug.log* # macOS-specific files -.DS_Store - -# types -src/types/payload-types.ts \ No newline at end of file +.DS_Store \ No newline at end of file diff --git a/astro/tsconfig.json b/astro/tsconfig.json index 2224ceb..6d1b28c 100644 --- a/astro/tsconfig.json +++ b/astro/tsconfig.json @@ -4,7 +4,8 @@ "types": ["@astrojs/image/client"], "baseUrl": ".", "paths": { - "@/*": ["src/*"] + "@/*": ["src/*"], + "@/types/*": ["../types/*"] } } } diff --git a/payload/src/payload.config.ts b/payload/src/payload.config.ts index 8c57fd3..32d4bb2 100644 --- a/payload/src/payload.config.ts +++ b/payload/src/payload.config.ts @@ -22,6 +22,6 @@ export default buildConfig({ }, collections: [Posts, Users, Authors, Media], typescript: { - outputFile: path.resolve("../astro/src/types/", "payload-types.ts"), + outputFile: path.resolve("../types/", "payload-types.ts"), }, });