Skip to content

Conversation

@mrazauskas
Copy link
Contributor

@mrazauskas mrazauskas commented Jun 26, 2025

This aim of this PR is to make the root TSConfig stricter.

I would suggest extending from @tsconfig/node20. The other changes you see here are the result of this improvement.

This should help to modernize the type testing infrastructure in the future (e.g. #1383 or similar).

@mrazauskas mrazauskas requested a review from a team as a code owner June 26, 2025 19:54
@@ -1,5 +1,5 @@
import { expectType } from "tsd";
import type { transpileLocale, transpileSchema } from "./transpile.t.ds";
Copy link
Contributor Author

@mrazauskas mrazauskas Jun 26, 2025

Choose a reason for hiding this comment

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

These are obviously not type only imports. The problem is that current TSConfig defaults to moduleResolution: "node10" and that allows oddities like this one.

Copy link
Contributor Author

@mrazauskas mrazauskas Jun 27, 2025

Choose a reason for hiding this comment

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

Oh.. All is even worse. Seems like tsd does not check this file. It only picks up index.test-d.ts.

@willfarrell willfarrell changed the base branch from main to develop June 28, 2025 14:09
@mrazauskas
Copy link
Contributor Author

mrazauskas commented Jul 14, 2025

@willfarrell Could you take a look, please. The branch is rebased and all conflicts are resolved now.

@willfarrell
Copy link
Member

Great. Looks like it just needs --signoff and it's good to go. See https://github.com/middyjs/middy/pull/1384/checks?check_run_id=45917240920 for commands.

@mrazauskas
Copy link
Contributor Author

mrazauskas commented Jul 14, 2025

Unfortunate the rebase commit does not work with the instructions provided in that link. I don’t know how to handle that. (Since I am not a git ninja, the only solution I see is to close this and focus on something else.)

Nothing personal. I just think this DCO check (or whatever it is called) is a waste of time for minor improvements like the one I was suggesting here.

@mrazauskas mrazauskas closed this Jul 14, 2025
@mrazauskas mrazauskas deleted the use-tsconfig-node20 branch July 14, 2025 11:39
@willfarrell
Copy link
Member

I can take care of it for you, one sec.

willfarrell added a commit that referenced this pull request Jul 14, 2025
Closes #1384

Signed-off-by: will Farrell <[email protected]>
@willfarrell
Copy link
Member

v6.4.0 will release shortly.

PS I don't use git either :). signoff It's a checkbox in Tower for me.

@mrazauskas
Copy link
Contributor Author

Thanks for taking care!

Hm.. What is that Tower? Sounds interesting.

@willfarrell
Copy link
Member

https://www.git-tower.com/

I'm sure there is a free alt out there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants