Skip to content

Export the release paths so a node10 resolver can read them - #8

Merged
Alexey1100 merged 1 commit into
mainfrom
feat/export-release-paths
Sep 22, 2026
Merged

Alexey1100 merged 1 commit into
mainfrom
feat/export-release-paths

Conversation

@Alexey1100

Copy link
Copy Markdown
Contributor

What

The npm package now also exports ./releases/* by its own path, and the version moves to 0.2.0 to match the gem.

Why

TypeScript under moduleResolution: node10 reads no exports map. ts-jest falls back to that resolver, so in comakery-server a workspace that imports @upsideos/evm-rwa-artifacts/v5.1/abis/IdentityRegistry.json compiles under tsc -b and under Node, but every ts-jest suite in the workspace fails with TS2307. Four workspaces share that toolchain, and working around it in each one's Jest config is worse than letting the package answer both resolvers.

./releases/* maps to the same files the named exports already serve, so nothing new is exposed. The README says to prefer the named exports where the toolchain supports them.

Verified

tsc --noEmit resolves @upsideos/evm-rwa-artifacts/releases/v5.1/abi/IdentityRegistry.json under both moduleResolution: node10 and moduleResolution: NodeNext.

Made with Cursor

TypeScript under moduleResolution node10 reads no exports map, and
ts-jest falls back to it, so a consumer that imports an artifact subpath
fails to compile while the same import runs fine under Node. Rather than
have each workspace work around its test runner, the package now also
exports releases/* by its own path, which both resolvers accept.

Bump npm to 0.2.0 alongside the gem.

Co-authored-by: Cursor <cursoragent@cursor.com>
@Alexey1100
Alexey1100 merged commit 79aede0 into main Sep 22, 2026
6 checks passed
@Alexey1100
Alexey1100 deleted the feat/export-release-paths branch September 22, 2026 00:29
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