Skip to content

fix: resolve type errors and add type checking to CI#17

Merged
KyleAMathews merged 2 commits into
mainfrom
fix/type-errors-and-ci-typecheck
Mar 3, 2026
Merged

fix: resolve type errors and add type checking to CI#17
KyleAMathews merged 2 commits into
mainfrom
fix/type-errors-and-ci-typecheck

Conversation

@KyleAMathews

Copy link
Copy Markdown
Collaborator

Summary

  • Fix all TypeScript type errors across the package and root scripts
  • Add test:types script to @tanstack/intent package so NX can run per-package type checking
  • Wire tsc --noEmit into test:ci and test:pr pipelines for root-level type checking (scripts, configs)

Changes

  • packages/intent/src/scanner.ts & library-scanner.ts: Fix Dirent<NonSharedBuffer> errors from @types/node v25 by using explicit encoding: 'utf8' with readdirSync; prefix unused params with _
  • packages/intent/src/utils.ts & scripts/validate-skills.ts: Narrow regex match[1] for noUncheckedIndexedAccess safety
  • packages/intent/src/intent-library.ts: Assert process.argv[1]! (always defined in script context)
  • packages/intent/package.json: Add "test:types": "tsc --noEmit"
  • package.json: Prefix test:ci and test:pr with tsc --noEmit && for root-level type checking
  • tsconfig.json: Exclude eslint.config.js (non-portable inferred type from @eslint/core)

Test plan

  • tsc --noEmit passes at root level
  • tsc --noEmit passes in packages/intent
  • All 127 unit tests pass
  • CI pipeline (test:pr) passes on this PR

🤖 Generated with Claude Code

Add test:types script to the intent package and wire root-level tsc
into the test:ci and test:pr pipelines so type errors are caught on
every PR. Fixes Dirent<NonSharedBuffer> issues from @types/node v25,
narrows regex match groups for noUncheckedIndexedAccess, and excludes
eslint.config.js from root type checking due to non-portable inferred
types.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@pkg-pr-new

pkg-pr-new Bot commented Mar 3, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@tanstack/intent@17

commit: 86a01a8

@KyleAMathews KyleAMathews merged commit ef8afc8 into main Mar 3, 2026
5 checks passed
@LadyBluenotes LadyBluenotes deleted the fix/type-errors-and-ci-typecheck branch March 16, 2026 20:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant