From f77c41978b32883ec57aedca9bb7c2ea57ec4dc8 Mon Sep 17 00:00:00 2001 From: Jacob Fletcher Date: Thu, 5 Oct 2023 14:33:02 -0400 Subject: [PATCH] chore: resolves path to live preview module --- test/live-preview/next-app/tsconfig.json | 10 ++++++++-- tsconfig.json | 4 +++- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/test/live-preview/next-app/tsconfig.json b/test/live-preview/next-app/tsconfig.json index c714696378..6ed413b56d 100644 --- a/test/live-preview/next-app/tsconfig.json +++ b/test/live-preview/next-app/tsconfig.json @@ -19,9 +19,15 @@ } ], "paths": { - "@/*": ["./*"] + "@/*": ["./*"], + "@payloadcms/live-preview": ["../../../packages/live-preview"] } }, "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"], - "exclude": ["node_modules"] + "exclude": ["node_modules"], + "references": [ + { + "path": "../../../packages/live-preview" + } + ] } diff --git a/tsconfig.json b/tsconfig.json index a1f1efa589..c0400f6999 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -36,6 +36,8 @@ { "path": "./packages/db-postgres" }, { "path": "./packages/richtext-slate" }, { "path": "./packages/richtext-lexical" }, - { "path": "./packages/payload" } + { "path": "./packages/payload" }, + { "path": "./packages/live-preview" }, + { "path": "./packages/live-preview-react" } ] }