Skip to content

Commit

Permalink
chore: Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
JaCraig committed Oct 23, 2024
1 parent 8f48790 commit 32fef82
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/typescript/src/options/validate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,12 @@ export function validatePaths(
`@rollup/plugin-typescript: Path of Typescript compiler option '${dirProperty}' must be located inside Rollup 'dir' option.`
);
}
} else if(dirProperty === 'outDir') {
const fromTsDirToRollup = relative(compilerOptions[dirProperty]!,outputDir);
} else if (dirProperty === 'outDir') {
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.`);
context.error(
`@rollup/plugin-typescript: Path of Typescript compiler option '${dirProperty}' must be located inside the same directory as the Rollup 'file' option.`
);
}
} else {
const fromTsDirToRollup = relative(outputDir, compilerOptions[dirProperty]!);
Expand Down

0 comments on commit 32fef82

Please sign in to comment.