diff --git a/packages/blocks/Image/index.tsx b/packages/blocks/Image/index.tsx index 844b113fe1..00eaab720f 100644 --- a/packages/blocks/Image/index.tsx +++ b/packages/blocks/Image/index.tsx @@ -1,4 +1,4 @@ -import { BlockViewProps } from '@plone/types'; +import type { BlockViewProps } from '@plone/types'; import { usePloneProvider } from '@plone/providers'; const ImageBlockView = (props: BlockViewProps) => { diff --git a/packages/blocks/RenderBlocks/BlockWrapper.tsx b/packages/blocks/RenderBlocks/BlockWrapper.tsx index e4a387004a..e94b555d47 100644 --- a/packages/blocks/RenderBlocks/BlockWrapper.tsx +++ b/packages/blocks/RenderBlocks/BlockWrapper.tsx @@ -1,4 +1,4 @@ -import { ReactNode } from 'react'; +import type { ReactNode } from 'react'; import cx from 'clsx'; import type { RenderBlocksProps } from './RenderBlocks'; diff --git a/packages/blocks/Teaser/index.tsx b/packages/blocks/Teaser/index.tsx index 03b8b07ffe..5c407bac55 100644 --- a/packages/blocks/Teaser/index.tsx +++ b/packages/blocks/Teaser/index.tsx @@ -1,4 +1,4 @@ -import { BlockViewProps } from '@plone/types'; +import type { BlockViewProps } from '@plone/types'; import { Link } from '@plone/components'; const TeaserBlockView = (props: BlockViewProps) => { diff --git a/packages/blocks/package.json b/packages/blocks/package.json index 6f7dd4028c..1c3713d1d5 100644 --- a/packages/blocks/package.json +++ b/packages/blocks/package.json @@ -28,9 +28,11 @@ "publishConfig": { "access": "public" }, + "type": "module", "main": "index.ts", "scripts": { "test": "vitest", + "check-ts": "tsc --project tsconfig.json", "dry-release": "release-it --dry-run", "release": "release-it", "release-major-alpha": "release-it major --preRelease=alpha", diff --git a/packages/slots/components/ContentArea.tsx b/packages/slots/components/ContentArea.tsx index b4cd5dfc4a..5d6324a793 100644 --- a/packages/slots/components/ContentArea.tsx +++ b/packages/slots/components/ContentArea.tsx @@ -1,5 +1,5 @@ import RenderBlocks from '@plone/blocks/RenderBlocks/RenderBlocks'; -import { SlotComponentProps } from '../SlotRenderer'; +import type { SlotComponentProps } from '../SlotRenderer'; import config from '@plone/registry'; const ContentArea = (props: SlotComponentProps) => { diff --git a/packages/slots/components/Logo.stories.tsx b/packages/slots/components/Logo.stories.tsx index 93d2623f27..348dc836dc 100644 --- a/packages/slots/components/Logo.stories.tsx +++ b/packages/slots/components/Logo.stories.tsx @@ -1,4 +1,3 @@ -import React from 'react'; import Logo from './Logo'; import type { Meta, StoryObj } from '@storybook/react'; diff --git a/packages/slots/components/Logo.tsx b/packages/slots/components/Logo.tsx index d543931753..3b17c02603 100644 --- a/packages/slots/components/Logo.tsx +++ b/packages/slots/components/Logo.tsx @@ -1,4 +1,4 @@ -import { SlotComponentProps } from '../SlotRenderer'; +import type { SlotComponentProps } from '../SlotRenderer'; import { Link } from '@plone/components'; import LogoImage from './Logo.svg'; import config from '@plone/registry'; diff --git a/packages/slots/components/MainFooter.tsx b/packages/slots/components/MainFooter.tsx index d97347f71e..f5f3c39c38 100644 --- a/packages/slots/components/MainFooter.tsx +++ b/packages/slots/components/MainFooter.tsx @@ -1,4 +1,4 @@ -import { SlotComponentProps } from '../SlotRenderer'; +import type { SlotComponentProps } from '../SlotRenderer'; import { Container, Link } from '@plone/components'; import Logo from './Logo'; diff --git a/packages/slots/components/Navigation.stories.tsx b/packages/slots/components/Navigation.stories.tsx index 3aee92ac77..e94ad2cbd2 100644 --- a/packages/slots/components/Navigation.stories.tsx +++ b/packages/slots/components/Navigation.stories.tsx @@ -1,4 +1,3 @@ -import React from 'react'; import Navigation from './Navigation'; import type { Meta, StoryObj } from '@storybook/react'; diff --git a/packages/slots/package.json b/packages/slots/package.json index 619e0f856c..208b14f0c4 100644 --- a/packages/slots/package.json +++ b/packages/slots/package.json @@ -28,9 +28,11 @@ "publishConfig": { "access": "public" }, + "type": "module", "main": "index.ts", "scripts": { "test": "vitest", + "check-ts": "tsc --project tsconfig.json", "dry-release": "release-it --dry-run", "release": "release-it", "release-major-alpha": "release-it major --preRelease=alpha",