We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5724462 commit 6e6b732Copy full SHA for 6e6b732
packages/plugin-dts/src/utils.ts
@@ -515,7 +515,8 @@ export function warnIfOutside(
515
const normalizedCwd = normalize(cwd);
516
const normalizedDir = normalize(dir);
517
const relDir = relative(normalizedCwd, normalizedDir);
518
- if (relDir.startsWith('..') || relDir.startsWith(path.sep)) {
+
519
+ if (relDir.startsWith('..')) {
520
logger.warn(
521
`The resolved ${label} ${color.cyan(normalizedDir)} is outside the project root ${color.cyan(normalizedCwd)}, please check your tsconfig file.`,
522
);
0 commit comments