Skip to content

chore(types): drop the removed moduleResolution=node10 from the type-check config - #179

Merged
kurok merged 1 commit into
masterfrom
chore/types-drop-node10-resolution
Sep 8, 2026
Merged

chore(types): drop the removed moduleResolution=node10 from the type-check config#179
kurok merged 1 commit into
masterfrom
chore/types-drop-node10-resolution

Conversation

@kurok

@kurok kurok commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Why

Dependabot's TypeScript 5.9.3 → 7.0.2 bump (#177) fails lint / ci-ok with:

types/tsconfig.json(6,29): error TS5108: Option 'moduleResolution=node10' has been removed.

TS 7 removed moduleResolution: "node" (the node10 alias). Only types/tsconfig.json uses it, and only npm run test:types runs it.

What

Replace module: commonjs + moduleResolution: node with module: node18, which sets the matching resolution implicitly and checks the import X = require() test files the way a real CommonJS consumer resolves them.

Compatibility

  • The published index.d.ts (export = VaultClient) is untouched; consumers on any TypeScript version see identical declarations.
  • TypeScript is a devDependency only.
  • TS 7 native binaries run on Node ≥16.20, so the Node 18 floor and CI lane stay valid; no dependabot ignore entry needed.

Verified locally: tsc -p types/tsconfig.json passes on 5.9.3, 6.x and 7.0.2.

Landing this first lets dependabot rebase #177 onto master and go green.

…check config

TypeScript 7 removes moduleResolution=node10 (the "node" alias), so
`tsc -p types/tsconfig.json` fails with TS5108 on the dependabot bump
to 7.0.2 (#177). Use the node18 module preset instead, which implies the
matching resolution and checks the `import = require()` test files the
way a real CommonJS consumer resolves them.

Only the type-check config changes; the published index.d.ts is
untouched. Verified green on tsc 5.9.3, 6.x and 7.0.2.

Signed-off-by: kurok <22548029+kurok@users.noreply.github.com>
@kurok
kurok requested review from m2broth and wRLSS as code owners September 8, 2026 16:25
@kurok
kurok merged commit 95a135d into master Sep 8, 2026
22 checks passed
@kurok
kurok deleted the chore/types-drop-node10-resolution branch September 8, 2026 16:27
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.

1 participant