Move payload types so dev container doesn't crash
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
tobias 2024-05-20 14:20:00 +02:00
parent 370eac2b25
commit f94bc5d822
4 changed files with 6 additions and 6 deletions

2
.gitignore vendored
View File

@ -2,3 +2,5 @@
data data
yarn-debug.log* yarn-debug.log*
yarn-error.log* yarn-error.log*
/types/payload-types.ts

3
astro/.gitignore vendored
View File

@ -16,6 +16,3 @@ pnpm-debug.log*
# macOS-specific files # macOS-specific files
.DS_Store .DS_Store
# types
src/types/payload-types.ts

View File

@ -4,7 +4,8 @@
"types": ["@astrojs/image/client"], "types": ["@astrojs/image/client"],
"baseUrl": ".", "baseUrl": ".",
"paths": { "paths": {
"@/*": ["src/*"] "@/*": ["src/*"],
"@/types/*": ["../types/*"]
} }
} }
} }

View File

@ -22,6 +22,6 @@ export default buildConfig({
}, },
collections: [Posts, Users, Authors, Media], collections: [Posts, Users, Authors, Media],
typescript: { typescript: {
outputFile: path.resolve("../astro/src/types/", "payload-types.ts"), outputFile: path.resolve("../types/", "payload-types.ts"),
}, },
}); });