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
{{ message }}
Repository navigation
[rollup-plugin-typescript] declarationDir inside same directory as file option #1773
Based on the breaking change, output must be the same as the declaration directory. However, I believe this check is being over-zealous, disallowing sub-directories within the declaration directory.
After the v12 update, the following error is presented:
@rollup/plugin-typescript: Path of Typescript compiler option 'declarationDir' must be located inside the same directory as the Rollup 'file' option.
We'd be happy to take a look at a Pull Request which resolves this condition, but one which keeps current tests passing.
(Please also note that moving forward, issues without a valid reproduction will be moved to a Q & A discussion. Those aren't optional, and the issue template mentions that a bunch)
I'm not sure i fully understand the motivation for the change that caused this; the pr didn't really go into much detail as to why this was needed. But, if i understand the code changed, it could be that reversing the order of these params making the path from ts to rollup, rather than rollup to ts, could be enough to fix the case of nested directories within the outDir and still satisfy the new unit tests.
Activity
shellscape commentedon Sep 24, 2024
We'd be happy to take a look at a Pull Request which resolves this condition, but one which keeps current tests passing.
(Please also note that moving forward, issues without a valid reproduction will be moved to a Q & A discussion. Those aren't optional, and the issue template mentions that a bunch)
michaelfaith commentedon Oct 9, 2024
I'm not sure i fully understand the motivation for the change that caused this; the pr didn't really go into much detail as to why this was needed. But, if i understand the code changed, it could be that reversing the order of these params making the path from ts to rollup, rather than rollup to ts, could be enough to fix the case of nested directories within the outDir and still satisfy the new unit tests.
plugins/packages/typescript/src/options/validate.ts
Line 61 in 4a2358a
kahagerman commentedon Oct 21, 2024
This is also a regression for .d.ts files when we need to write them somewhere else first.
We use api-extractor, so we want to write out the *.d.ts to a different directory (currently
./lib/types) so they can be post-processed there.This is broken with versions >=12.1.0.
shellscape commentedon Oct 21, 2024
@kahagerman breaking changes on major versions are not regressions.
this PR will likely not get further discussion on this page. there are active issues and PRs open, please take discussion there.