Skip to content

馃悰 fix(npm): allow deprecated node10 resolution under TypeScript 6 - #58

Merged
roninjin10 merged 1 commit into
mainfrom
fix/ts6-moduleresolution
Jul 29, 2026
Merged

馃悰 fix(npm): allow deprecated node10 resolution under TypeScript 6#58
roninjin10 merged 1 commit into
mainfrom
fix/ts6-moduleresolution

Conversation

@roninjin10

Copy link
Copy Markdown
Contributor

npm/zevm/package.json declares typescript@^6.0.3, but tsconfig.cjs.json sets moduleResolution: Node (node10), which TypeScript 6 now reports as a hard error:

tsconfig.cjs.json(7,25): error TS5107: Option 'moduleResolution=node10' is deprecated
and will stop functioning in TypeScript 7.0. Specify compilerOption
'"ignoreDeprecations": "6.0"' to silence this error.

This breaks pnpm --filter @evmts/zevm build. It also breaks tevm's CI, because tevm includes ../zevm/npm/zevm as a pnpm workspace member and builds it during setup.

The CJS build legitimately needs node10 resolution in order to emit CommonJS, so this silences the deprecation exactly as the compiler recommends rather than restructuring the module strategy (which should be a deliberate, separate change before TS 7).

Verified: tsc -p tsconfig.cjs.json --noEmit passes under typescript@6.0.3.

馃 Generated with Smithers multi-agent orchestration

npm/zevm/package.json declares typescript ^6.0.3, but tsconfig.cjs.json sets
moduleResolution=Node (node10), which TypeScript 6 reports as error TS5107.
That breaks `pnpm --filter @evmts/zevm build` and, because tevm consumes this
package as a pnpm workspace member, it breaks tevm's CI too.

The CJS build genuinely needs node10 resolution to emit CommonJS, so silence
the deprecation explicitly as the compiler suggests rather than changing the
module strategy.

Verified: tsc -p tsconfig.cjs.json --noEmit passes under typescript 6.0.3.
@roninjin10
roninjin10 merged commit 014f3f2 into main Jul 29, 2026
3 of 4 checks passed
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