Skip to content

docs: explain why relative imports end in .js - #3

Merged
wmadden-electric merged 1 commit into
mainfrom
readme-module-setting
Sep 25, 2026
Merged

wmadden-electric merged 1 commit into
mainfrom
readme-module-setting

Conversation

@wmadden-electric

Copy link
Copy Markdown
Contributor

The Prisma ORM 7 to 8 upgrade guide links this repository as the finished result of each phase. Readers copied its "module": "NodeNext" setting and then had to add .js to every relative import in their own projects.

This adds one sentence to the README's Stack section: the project compiles with tsc and runs with node, so it uses NodeNext and its relative imports end in .js; projects run through tsx or a bundler can use preserve and bundler instead.

tsconfig.json is unchanged so the step-0 to step-3 tags stay valid. Source of truth: typescript-module-settings.md in prisma/orm. Companion change in prisma/web rewrites the guide's TypeScript step.

🤖 Generated with Claude Code

The project compiles with tsc and runs the output with node, so it uses
module NodeNext and Node's ES module loader requires the extension. The
upgrade guide links this repository, and readers were copying the
setting without knowing why.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
@wmadden-electric
wmadden-electric merged commit acfe1db into main Sep 25, 2026
2 checks passed
@wmadden-electric
wmadden-electric deleted the readme-module-setting branch September 25, 2026 13:45
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