You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(typescript)!: correctly resolve filenames of declaration files for output.file (#1728)
* test(typescript): add test case for invalid declarationDir with output.file
* fix(typescript): correctly resolve output filename of declaration files when output.file is used
* fix(typescript): validate that declarationDir is inside bundle output directory when using output.file
* test(typescript): check for correct error for invalid declarationDir when using output.file
---------
Co-authored-by: eu ler <[email protected]>
`@rollup/plugin-typescript: Path of Typescript compiler option '${dirProperty}' must be located inside Rollup 'dir' option.`
61
-
);
63
+
if(outputOptions.dir){
64
+
context.error(
65
+
`@rollup/plugin-typescript: Path of Typescript compiler option '${dirProperty}' must be located inside Rollup 'dir' option.`
66
+
);
67
+
}else{
68
+
context.error(
69
+
`@rollup/plugin-typescript: Path of Typescript compiler option '${dirProperty}' must be located inside the same directory as the Rollup 'file' option.`
0 commit comments