Update import paths and tsconfig options

This commit is contained in:
Max Schmidt 2023-06-17 10:51:35 +02:00
parent 08df56c679
commit 7afdc0dd92
2 changed files with 7 additions and 10 deletions

View File

@ -1,8 +1,8 @@
import { buildConfig } from "payload/config"; import { buildConfig } from "payload/config";
import path from "path"; import path from "path";
import Posts from "./collections/Posts"; import Posts from "src/collections/Posts";
import Users from "./collections/Users"; import Users from "src/collections/Users";
import Media from "./collections/Media"; import Media from "src/collections/Media";
export default buildConfig({ export default buildConfig({
serverURL: process.env.PAYLOAD_URL, serverURL: process.env.PAYLOAD_URL,

View File

@ -1,17 +1,14 @@
{ {
"compilerOptions": { "compilerOptions": {
"target": "es5", "target": "es5",
"lib": [ "lib": ["dom", "dom.iterable", "esnext"],
"dom",
"dom.iterable",
"esnext"
],
"strict": false, "strict": false,
"esModuleInterop": true, "esModuleInterop": true,
"skipLibCheck": true, "skipLibCheck": true,
"outDir": "./dist", "outDir": "./dist",
"baseUrl": ".",
"rootDir": "./src", "rootDir": "./src",
"jsx": "react", "jsx": "react"
}, },
"ts-node": { "ts-node": {
"transpileOnly": true "transpileOnly": true