Skip to content

Commit 6e6b732

Browse files
committed
chore: update
1 parent 5724462 commit 6e6b732

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/plugin-dts/src/utils.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,8 @@ export function warnIfOutside(
515515
const normalizedCwd = normalize(cwd);
516516
const normalizedDir = normalize(dir);
517517
const relDir = relative(normalizedCwd, normalizedDir);
518-
if (relDir.startsWith('..') || relDir.startsWith(path.sep)) {
518+
519+
if (relDir.startsWith('..')) {
519520
logger.warn(
520521
`The resolved ${label} ${color.cyan(normalizedDir)} is outside the project root ${color.cyan(normalizedCwd)}, please check your tsconfig file.`,
521522
);

0 commit comments

Comments
 (0)