[TS] Fix relative import paths of generated TypeScript code (#8880)

* Refactor logic that generates import paths in AddImport

* Add new tests to validate relative import path fix

* Generate goldens

* Generate example code

* Format TS generator file

* Revert "Format TS generator file"

This reverts commit 0f0b24aee9.

* Fix merge conflicts

---------

Co-authored-by: Björn Harrtell <bjornharrtell@users.noreply.github.com>
This commit is contained in:
Austin Chick
2026-02-17 03:22:32 -06:00
committed by GitHub
parent d71c0ab4ac
commit b8e3d215b8
15 changed files with 177 additions and 58 deletions

View File

@@ -1,7 +1,10 @@
{
"compilerOptions": {
"target": "ES2020",
"lib": ["ES2020", "DOM"],
"lib": [
"ES2020",
"DOM"
],
"module": "NodeNext",
"declaration": true,
"strict": true
@@ -17,6 +20,7 @@
"arrays_test_complex/**/*.ts",
"union_underlying_type_test.ts",
"long-namespace/**/*.ts",
"longer-namespace/**/*.ts"
"longer-namespace/**/*.ts",
"relative_imports/**/*.ts"
]
}
}