Skip to content

Commit d1f8927

Browse files
committed
Improve error message when failing to find entry point
Ref: #2082
1 parent 9671e18 commit d1f8927

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/lib/utils/entry-point.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,11 @@ function getEntryPointsForPaths(
176176
}
177177
}
178178
}
179-
logger.warn(`Unable to locate entry point: ${fileOrDir}`);
179+
logger.warn(
180+
`The entry point ${nicePath(
181+
fileOrDir
182+
)} does not exist or is not included in the program for your provided tsconfig.`
183+
);
180184
}
181185

182186
return entryPoints;

0 commit comments

Comments
 (0)