mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-30 14:10:03 +00:00
[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:
@@ -2,9 +2,9 @@
|
||||
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
|
||||
|
||||
import { Monster as MyGame_Example2_Monster, MonsterT as MyGame_Example2_MonsterT } from '../../my-game/example2/monster.js';
|
||||
import { Monster, MonsterT } from '../../my-game/example/monster.js';
|
||||
import { TestSimpleTableWithEnum, TestSimpleTableWithEnumT } from '../../my-game/example/test-simple-table-with-enum.js';
|
||||
import { Monster as MyGame_Example2_Monster, MonsterT as MyGame_Example2_MonsterT } from '../example2/monster.js';
|
||||
import { Monster, MonsterT } from './monster.js';
|
||||
import { TestSimpleTableWithEnum, TestSimpleTableWithEnumT } from './test-simple-table-with-enum.js';
|
||||
|
||||
|
||||
export enum Any {
|
||||
|
||||
Reference in New Issue
Block a user