Skip to content

Commit a689dad

Browse files
yyq1025claude
andcommitted
app: track uniwind-types.d.ts (fresh clones + CI can't generate it)
The file is uniwind-generated at metro start, but its content derives only from the themes config — and without it `tsc --noEmit` fails on any checkout that never ran the dev server (CI, fresh contributor clones): the className augmentation on RN components vanishes. Track it like a lockfile-ish artifact; expo-env.d.ts and .expo/types stay ignored (their absence produces no type errors today). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent fc8740a commit a689dad

2 files changed

Lines changed: 15 additions & 2 deletions

File tree

packages/app/.gitignore

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,11 @@ dist/
99
web-build/
1010
expo-env.d.ts
1111

12-
# uniwind regenerates this on every metro start
13-
src/uniwind-types.d.ts
12+
# src/uniwind-types.d.ts is uniwind-generated but TRACKED: its content is
13+
# derived from the (rarely changing) uniwind themes config, and without it
14+
# `tsc --noEmit` fails on every fresh clone / CI runner (no className types
15+
# on RN components) until someone runs metro once. If uniwind regenerates
16+
# it differently after a config change, commit the diff.
1417

1518
# Native
1619
.kotlin/
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// NOTE: This file is generated by uniwind and it should not be edited manually.
2+
/// <reference types="uniwind/types" />
3+
4+
declare module 'uniwind' {
5+
export interface UniwindConfig {
6+
themes: readonly ['light', 'dark']
7+
}
8+
}
9+
10+
export {}

0 commit comments

Comments
 (0)