From dffb2ce6d6bb1f696f320fca1a6b989dffb4f872 Mon Sep 17 00:00:00 2001 From: Ben Irvin Date: Tue, 14 Nov 2023 15:58:55 +0100 Subject: [PATCH] fix: use tsconfig.config for ts project check --- packages/core/admin/_internal/node/develop.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/admin/_internal/node/develop.ts b/packages/core/admin/_internal/node/develop.ts index c1aa2f8867..950230e7e4 100644 --- a/packages/core/admin/_internal/node/develop.ts +++ b/packages/core/admin/_internal/node/develop.ts @@ -85,7 +85,7 @@ const develop = async ({ return; } - if (tsconfig) { + if (tsconfig?.config) { // Build without diagnostics in case schemas have changed await cleanupDistDirectory({ tsconfig, logger, timer }); await tsUtils.compile(cwd, { configOptions: { ignoreDiagnostics: true } }); @@ -126,7 +126,7 @@ const develop = async ({ cluster.on('message', async (worker, message) => { switch (message) { case 'reload': { - if (tsconfig) { + if (tsconfig?.config) { // Build without diagnostics in case schemas have changed await cleanupDistDirectory({ tsconfig, logger, timer }); await tsUtils.compile(cwd, { configOptions: { ignoreDiagnostics: true } });