Skip to content

Commit

Permalink
fix(typescript): fix path validation issue in validatePaths function
Browse files Browse the repository at this point in the history
  • Loading branch information
JaCraig committed Oct 23, 2024
1 parent ed766e8 commit 8f48790
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/typescript/src/options/validate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export function validatePaths(
);
}
} else if(dirProperty === 'outDir') {
const fromTsDirToRollup = relative(compilerOptions[dirProperty],outputDir);
const fromTsDirToRollup = relative(compilerOptions[dirProperty]!,outputDir);
if (fromTsDirToRollup.startsWith('..')) {
context.error(`@rollup/plugin-typescript: Path of Typescript compiler option '${dirProperty}' must be located inside the same directory as the Rollup 'file' option.`);
}
Expand Down

0 comments on commit 8f48790

Please sign in to comment.