#14292: fix(scripts): add js extension
scripts
stale
Cluster:
Plugin Fixes and Enhancements
add a js extension to the import statement in the generated dist/plugin-sdk/index.d.ts file so it functions properly in projects that use moduleResolution: NodeNext. fix #14291
<!-- greptile_comment -->
<h2>Greptile Overview</h2>
<h3>Greptile Summary</h3>
Adds the `.js` file extension to the import specifier in the generated `dist/plugin-sdk/index.d.ts` re-export wrapper, fixing TypeScript resolution for consumers using `moduleResolution: NodeNext`.
- The `write-plugin-sdk-entry-dts.ts` script generates a re-export file at `dist/plugin-sdk/index.d.ts` that bridges the package.json export (`"./plugin-sdk"`) to the tsc-emitted types at `dist/plugin-sdk/plugin-sdk/index.d.ts`
- The import path lacked the `.js` extension, which is required under `NodeNext` module resolution (TypeScript enforces explicit extensions in ESM)
- This is a one-line fix with no risk to existing consumers
<h3>Confidence Score: 5/5</h3>
- This PR is safe to merge — it's a minimal, well-scoped one-line fix with no risk of regression.
- The change is a single character addition (`.js` extension) to a string literal in a build script. The project already uses `moduleResolution: NodeNext` in its tsconfig, making this fix both correct and necessary. No logic changes, no new dependencies, no behavioral changes for existing consumers.
- No files require special attention.
<!-- greptile_other_comments_section -->
<sub>(2/5) Greptile learns from your feedback when you react with thumbs up/down!</sub>
<!-- /greptile_comment -->
Most Similar PRs
#13109: fix(plugins): inject globalThis.require for CJS interop in jiti-loa...
by mcaxtr · 2026-02-10
74.3%
#3006: fix(scripts): use local pnpm binary in run-node.mjs if global is mi...
by elliotsecops · 2026-01-27
73.5%
#16019: fix(plugins): add postinstall patch for ESM-only package exports
by dashed · 2026-02-14
73.4%
#11979: fix: Change rootDir to project root to allow UI compilation
by fastroc · 2026-02-08
73.0%
#8988: fix: resolve security vulnerabilities in dependencies
by fotorpics · 2026-02-04
72.7%
#21027: fix(tests): resolve TypeScript type errors in CLI test files
by kittipond2365 · 2026-02-19
72.7%
#3973: fix: enhance npm package integrity checks and include critical files
by YeSuX · 2026-01-29
72.5%
#2556: fix(plugin-install): handle existing plugins and filter workspace deps
by longmaba · 2026-01-27
72.4%
#13884: feat: Replace any types with proper TypeScript interfaces for bette...
by trevorgordon981 · 2026-02-11
72.2%
#9796: fix(cli): correct fallback path for bundled Chrome extension (#9772)
by lailoo · 2026-02-05
72.0%