From d1f89276b6d197c3d8e7fc5541f84e61ee5fe0e9 Mon Sep 17 00:00:00 2001 From: Gerrit Birkeland Date: Sun, 23 Oct 2022 14:04:31 -0600 Subject: [PATCH] Improve error message when failing to find entry point Ref: #2082 --- src/lib/utils/entry-point.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/lib/utils/entry-point.ts b/src/lib/utils/entry-point.ts index ef528e2aa..55c33d9b6 100644 --- a/src/lib/utils/entry-point.ts +++ b/src/lib/utils/entry-point.ts @@ -176,7 +176,11 @@ function getEntryPointsForPaths( } } } - logger.warn(`Unable to locate entry point: ${fileOrDir}`); + logger.warn( + `The entry point ${nicePath( + fileOrDir + )} does not exist or is not included in the program for your provided tsconfig.` + ); } return entryPoints;