Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: pass custom tsconfig to rollup-plugin-dts #90

Closed
wants to merge 0 commits into from

Conversation

letectec
Copy link

@letectec letectec commented Sep 13, 2024

Hey! First time contributing here 🚀

It's a small fix to pass the custom tsconfig to rollup-plugin-dts, we had issues on our monorepo using custom tsconfigs to disable incremental builds and rollup-plugin-dts kept complaining because it's using the default "tsconfig.json" that it finds.
Found the same issue on tsup and they fixed this a year ago.

@privatenumber
Copy link
Owner

Thanks for the PR!

we had issues on our monorepo using custom tsconfigs to disable incremental builds and rollup-plugin-dts kept complaining

Would you mind adding a test for this? Would like to have the motivating use-case codified so it doesn't get removed or break in the future.

@letectec
Copy link
Author

Would you mind adding a test for this? Would like to have the motivating use-case codified so it doesn't get removed or break in the future.

Added our test case to the PR ✔️

});

expect(pkgrollProcess.exitCode).toBe(0);
expect(pkgrollProcess.stderr).toBe('');
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There doesn't seem to be anything here asserting that the correct tsconfig was passed in

@privatenumber
Copy link
Owner

privatenumber commented Nov 19, 2024

My bad, I accidentally closed this trying to push my commit and I'm unable to re-open it. There were some errors I had to work around since your branch name is identical to the repo's default branch.

Moved to #102

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants