From ac822da8a15be6f02aaf600a491ede3df60d34bc Mon Sep 17 00:00:00 2001 From: Daniel Cousens <413395+dcousens@users.noreply.github.com> Date: Wed, 7 Feb 2024 13:05:39 +1100 Subject: [PATCH] fix type resolution --- packages/core/src/lib/create-admin-meta.ts | 2 +- packages/core/src/system.ts | 2 +- tsconfig.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/core/src/lib/create-admin-meta.ts b/packages/core/src/lib/create-admin-meta.ts index 579f12eb018..f9e897fade6 100644 --- a/packages/core/src/lib/create-admin-meta.ts +++ b/packages/core/src/lib/create-admin-meta.ts @@ -7,7 +7,7 @@ import type { KeystoneContext, JSONValue, MaybeItemFunction, -} from '../../types' +} from '../types' import type { FilterOrderArgs } from '../types/config/fields' import { humanize } from './utils' diff --git a/packages/core/src/system.ts b/packages/core/src/system.ts index 433852d6b43..8d45f48fcdc 100644 --- a/packages/core/src/system.ts +++ b/packages/core/src/system.ts @@ -1,6 +1,6 @@ import type express from 'express' import next from 'next' -import type { KeystoneConfig, KeystoneContext } from '../types' +import type { KeystoneConfig, KeystoneContext } from './types' import { createAdminUIMiddlewareWithNextApp } from './lib/server/createAdminUIMiddleware' /** @deprecated */ diff --git a/tsconfig.json b/tsconfig.json index 2f075eca13c..6ba4613c04f 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -7,7 +7,7 @@ "isolatedModules": true, "jsx": "react", "module": "esnext", - "moduleResolution": "node", + "moduleResolution": "bundler", "noEmit": true, "noUnusedLocals": true, "resolveJsonModule": true,