fix: remove .js extensions from TS imports #14
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Removed
.jsextensions from 6 TypeScript files:Scout-detected fix.
Greptile Overview
Greptile Summary
Removed
.jsextensions from TypeScript imports across 6 files to align withmoduleResolution: "bundler"configuration. This is the correct approach for Bun/bundler-based projects using TypeScript.Changes:
All modified imports point to existing files, and the changes are consistent with TypeScript best practices for bundler-based module resolution.
Confidence Score: 5/5
.jsextensions from TS imports. Changes align with tsconfigmoduleResolution: "bundler"setting. All imports verified to exist. Zero logic changes, zero risk.Important Files Changed
.jsextension from commits parser import - correct for bundler moduleResolution.jsextensions from 5 internal imports - aligns with TypeScript best practices.jsextensions from config and typescript parser imports - consistent with project setup.jsextension from config import - matches bundler resolution strategy.jsextensions from api and readme command imports - proper TS syntax.jsextensions from 3 internal imports - appropriate for bundler moduleResolutionSequence Diagram
sequenceDiagram participant TS as TypeScript Compiler participant Bundler as Bun Bundler participant FS as File System Note over TS,FS: Before: import from './module.js' TS->>Bundler: Resolve './module.js' Bundler->>FS: Look for module.ts (strips .js) FS-->>Bundler: Returns module.ts Bundler-->>TS: Module resolved Note over TS,FS: After: import from './module' TS->>Bundler: Resolve './module' Bundler->>FS: Look for module.ts FS-->>Bundler: Returns module.ts Bundler-->>TS: Module resolved Note over TS,Bundler: moduleResolution: "bundler"<br/>eliminates need for .js extensions