Skip to content

Fix rewriteRelativeImportExtensions oneline #3373

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 24, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1279,7 +1279,7 @@ tsc app.ts util.ts --target esnext --outfile index.js
</td>
</tr>
<tr class="option-description odd"><td colspan="3">
<p>Does something</p>
<p>Rewrite <code>.ts</code>, <code>.tsx</code>, <code>.mts</code>, and <code>.cts</code> file extensions in relative import paths to their JavaScript equivalent in output files.</p>
</td></tr>

<tr class='even' name='rootDir'>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
display: "rewriteRelativeImportExtensions"
oneline: "Does something"
oneline: "Rewrite `.ts`, `.tsx`, `.mts`, and `.cts` file extensions in relative import paths to their JavaScript equivalent in output files."
---

Rewrite `.ts`, `.tsx`, `.mts`, and `.cts` file extensions in relative import paths to their JavaScript equivalent in output files.

For more information, see the [TypeScript 5.7 release notes](/docs/handbook/release-notes/typescript-5-7.html#path-rewriting-for-relative-paths).
For more information, see the [TypeScript 5.7 release notes](/docs/handbook/release-notes/typescript-5-7.html#path-rewriting-for-relative-paths).
4 changes: 2 additions & 2 deletions packages/tsconfig-reference/scripts/schema/result/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1039,10 +1039,10 @@
"markdownDescription": "Built-in iterators are instantiated with a TReturn type of undefined instead of any.\n\nSee more: https://www.typescriptlang.org/tsconfig#strictBuiltinIteratorReturn"
},
"rewriteRelativeImportExtensions": {
"description": "Does something",
"description": "Rewrite `.ts`, `.tsx`, `.mts`, and `.cts` file extensions in relative import paths to their JavaScript equivalent in output files.",
"type": "boolean",
"default": false,
"markdownDescription": "Does something\n\nSee more: https://www.typescriptlang.org/tsconfig#rewriteRelativeImportExtensions"
"markdownDescription": "Rewrite `.ts`, `.tsx`, `.mts`, and `.cts` file extensions in relative import paths to their JavaScript equivalent in output files.\n\nSee more: https://www.typescriptlang.org/tsconfig#rewriteRelativeImportExtensions"
}
}
}
Expand Down