diff --git a/packages/playwright-ct-core/index.d.ts b/packages/playwright-ct-core/index.d.ts index e7717c9b68..90789c02a7 100644 --- a/packages/playwright-ct-core/index.d.ts +++ b/packages/playwright-ct-core/index.d.ts @@ -23,7 +23,7 @@ import type { PlaywrightWorkerOptions, Locator, } from '@playwright/test'; -import type { JsonObject } from '@playwright/experimental-ct-core/types/component'; +import type { JsonObject } from './types/component'; import type { InlineConfig } from 'vite'; export type PlaywrightTestConfig = Omit, 'use'> & { diff --git a/packages/playwright-ct-core/package.json b/packages/playwright-ct-core/package.json index 593f5771dc..f4291f7947 100644 --- a/packages/playwright-ct-core/package.json +++ b/packages/playwright-ct-core/package.json @@ -18,7 +18,10 @@ }, "./cli": "./cli.js", "./lib/mount": "./lib/mount.js", - "./lib/vitePlugin": "./lib/vitePlugin.js" + "./lib/vitePlugin": "./lib/vitePlugin.js", + "./types/component": { + "types": "./types/component.d.ts" + } }, "dependencies": { "playwright-core": "1.38.0-next",