From a9b1a2e7b7fcdd660b4f731b40247b17ffe76e5d Mon Sep 17 00:00:00 2001 From: Alessio Gravili Date: Mon, 18 Mar 2024 15:43:40 -0400 Subject: [PATCH] fix: live-preview build --- app/live-preview/(pages)/[slug]/page.client.tsx | 2 +- app/live-preview/(pages)/posts/[slug]/page.client.tsx | 2 +- tsconfig.json | 8 +------- 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/app/live-preview/(pages)/[slug]/page.client.tsx b/app/live-preview/(pages)/[slug]/page.client.tsx index d44ed30fd..d808d010a 100644 --- a/app/live-preview/(pages)/[slug]/page.client.tsx +++ b/app/live-preview/(pages)/[slug]/page.client.tsx @@ -1,10 +1,10 @@ 'use client' -import { useLivePreview } from '@payloadcms/live-preview-react' import React from 'react' import type { Page as PageType } from '../../../../test/live-preview/payload-types.js' +import { useLivePreview } from '../../../../packages/live-preview-react/src/index.js' import { PAYLOAD_SERVER_URL } from '../../_api/serverURL.js' import { Blocks } from '../../_components/Blocks/index.js' import { Hero } from '../../_components/Hero/index.js' diff --git a/app/live-preview/(pages)/posts/[slug]/page.client.tsx b/app/live-preview/(pages)/posts/[slug]/page.client.tsx index e5c52f804..20e278dff 100644 --- a/app/live-preview/(pages)/posts/[slug]/page.client.tsx +++ b/app/live-preview/(pages)/posts/[slug]/page.client.tsx @@ -1,10 +1,10 @@ 'use client' -import { useLivePreview } from '@payloadcms/live-preview-react' import React from 'react' import type { Post as PostType } from '../../../../../test/live-preview/payload-types.js' +import { useLivePreview } from '../../../../../packages/live-preview-react/src/index.js' import { PAYLOAD_SERVER_URL } from '../../../_api/serverURL.js' import { Blocks } from '../../../_components/Blocks/index.js' import { PostHero } from '../../../_heros/PostHero/index.js' diff --git a/tsconfig.json b/tsconfig.json index 458feca1b..fac8d3ef3 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -54,12 +54,6 @@ "@payloadcms/plugin-cloud": [ "./packages/plugin-cloud/src" ], - "@payloadcms/live-preview-react": [ - "./packages/live-preview-react/src/index.ts" - ], - "@payloadcms/live-preview": [ - "./packages/live-preview/src/index.ts" - ], "@payloadcms/plugin-cloud-storage": [ "./packages/plugin-cloud-storage/src" ], @@ -171,4 +165,4 @@ "app/**/*.tsx", "scripts/**/*.ts" ] -} \ No newline at end of file +}