fix(ci): remove unsound tsbuildinfo cache causing TS2307 on fresh runners

The 'Cache TypeScript incremental state' steps persisted *.tsbuildinfo
without always pairing it with dist/. On a fresh runner, tsc restored
the tsbuildinfo, saw no input changes, and skipped emit — leaving
packages/native/dist/{fd,image,text}/index.d.ts missing. pi-tui's
Node16 resolution then failed on @gsd/native/fd, /image, /text.

ci.yml's variant did cache dist/ but shared the tsbuild-${{ runner.os }}-
restore-keys prefix with the broken pipeline.yml/build-native.yml
caches, so it could fall back to a dist-less snapshot. Removing all
six steps eliminates the shared namespace entirely.
This commit is contained in:
Jeremy 2026-04-14 20:25:35 -05:00
parent 16fa6f45c0
commit 68649754f5
3 changed files with 0 additions and 66 deletions

View file

@ -200,16 +200,6 @@ jobs:
- name: Install dependencies
run: npm ci
- name: Cache TypeScript incremental state
uses: useblacksmith/cache@v5
with:
path: |
*.tsbuildinfo
packages/*/*.tsbuildinfo
key: tsbuild-${{ runner.os }}-${{ hashFiles('package-lock.json', 'tsconfig*.json', 'packages/*/tsconfig.json') }}
restore-keys: |
tsbuild-${{ runner.os }}-
- name: Build
run: npm run build

View file

@ -147,18 +147,6 @@ jobs:
nextjs-${{ runner.os }}-${{ hashFiles('web/package-lock.json') }}-
nextjs-${{ runner.os }}-
- name: Cache TypeScript incremental state
uses: useblacksmith/cache@v5
with:
path: |
*.tsbuildinfo
packages/*/*.tsbuildinfo
dist
packages/*/dist
key: tsbuild-${{ runner.os }}-${{ hashFiles('package-lock.json', 'tsconfig*.json', 'packages/*/tsconfig.json', 'src/**/*.ts', 'packages/*/src/**/*.ts') }}
restore-keys: |
tsbuild-${{ runner.os }}-
- name: Build core
run: npm run build:core
@ -216,18 +204,6 @@ jobs:
nextjs-${{ runner.os }}-${{ hashFiles('web/package-lock.json') }}-
nextjs-${{ runner.os }}-
- name: Cache TypeScript incremental state
uses: useblacksmith/cache@v5
with:
path: |
*.tsbuildinfo
packages/*/*.tsbuildinfo
dist
packages/*/dist
key: tsbuild-${{ runner.os }}-${{ hashFiles('package-lock.json', 'tsconfig*.json', 'packages/*/tsconfig.json', 'src/**/*.ts', 'packages/*/src/**/*.ts') }}
restore-keys: |
tsbuild-${{ runner.os }}-
- name: Build core
run: npm run build:core
@ -255,18 +231,6 @@ jobs:
- name: Install dependencies
run: npm ci
- name: Cache TypeScript incremental state
uses: useblacksmith/cache@v5
with:
path: |
*.tsbuildinfo
packages/*/*.tsbuildinfo
dist
packages/*/dist
key: tsbuild-${{ runner.os }}-${{ hashFiles('package-lock.json', 'tsconfig*.json', 'packages/*/tsconfig.json', 'src/**/*.ts', 'packages/*/src/**/*.ts') }}
restore-keys: |
tsbuild-${{ runner.os }}-
- name: Build core
run: npm run build:core

View file

@ -57,16 +57,6 @@ jobs:
nextjs-${{ runner.os }}-${{ hashFiles('web/package-lock.json') }}-
nextjs-${{ runner.os }}-
- name: Cache TypeScript incremental state
uses: useblacksmith/cache@v5
with:
path: |
*.tsbuildinfo
packages/*/*.tsbuildinfo
key: tsbuild-${{ runner.os }}-${{ hashFiles('package-lock.json', 'tsconfig*.json', 'packages/*/tsconfig.json') }}
restore-keys: |
tsbuild-${{ runner.os }}-
- name: Build core
run: npm run build:core
@ -191,16 +181,6 @@ jobs:
nextjs-${{ runner.os }}-${{ hashFiles('web/package-lock.json') }}-
nextjs-${{ runner.os }}-
- name: Cache TypeScript incremental state
uses: useblacksmith/cache@v5
with:
path: |
*.tsbuildinfo
packages/*/*.tsbuildinfo
key: tsbuild-${{ runner.os }}-${{ hashFiles('package-lock.json', 'tsconfig*.json', 'packages/*/tsconfig.json') }}
restore-keys: |
tsbuild-${{ runner.os }}-
- name: Run live LLM tests (optional)
continue-on-error: true
run: npm run test:live || echo "::warning::Live LLM tests failed — non-blocking, but worth investigating"