Commit 0ea34b7
Fix import casing mismatch for gentest types.ts (#1929)
Summary:
The file `gentest/src/types.ts` is recorded in git with a lowercase `t`, but all 7 imports across the gentest source reference `Types.ts` (uppercase `T`). This casing mismatch was introduced in #1889 (`dcaa7ca7`) when the gentest was rewritten — the file was created as `types.ts` but the imports were written as `Types.ts` in the same commit.
This causes TypeScript error TS1261 on case-insensitive filesystems (Windows/macOS) where the filesystem resolves both casings to the same file but TypeScript flags the inconsistency. On case-sensitive filesystems (Linux), the mismatched casing could cause module resolution issues depending on the TypeScript configuration.
**Files changed (7 import corrections):**
- `gentest/src/cli.ts`
- `gentest/src/CssToYoga.ts`
- `gentest/src/buildLayoutTree.ts`
- `gentest/src/emitters/Emitter.ts`
- `gentest/src/emitters/CppEmitter.ts`
- `gentest/src/emitters/JavascriptEmitter.ts`
- `gentest/src/emitters/JavaEmitter.ts`
Pull Request resolved: #1929
Test Plan:
- `yarn workspace gentest run tsc` now passes cleanly (previously failed with TS1261)
- Import-only change — no logic modifications
Reviewed By: NickGerleman
Differential Revision: D100144393
Pulled By: fabriziocucci
fbshipit-source-id: 273124bb478a6c6441b60ac8b086236440e0a90a1 parent d382d33 commit 0ea34b7
7 files changed
Lines changed: 7 additions & 7 deletions
File tree
- gentest/src
- emitters
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
0 commit comments