Skip to content

chore: add tsgo type checker alongside tsc#251

Open
casamitjana wants to merge 1 commit intomainfrom
chore/add-tsgo-type-checker
Open

chore: add tsgo type checker alongside tsc#251
casamitjana wants to merge 1 commit intomainfrom
chore/add-tsgo-type-checker

Conversation

@casamitjana
Copy link

@casamitjana casamitjana commented Jan 22, 2026

Summary

  • Add @typescript/native-preview dev dependency for faster type checking
  • Add check-types script (tsgo --noEmit)
  • Add check-types:tsc script (tsc --noEmit)
  • lint script remains on tsc since tsgo is preview software

Measurements

Command Time
npm run check-types (tsgo) 0.65s
npm run check-types:tsc (tsc) 1.08s

tsgo is ~40% faster on this codebase.

Test plan

  • npm install succeeds
  • npm run check-types passes
  • npm run check-types:tsc passes
  • Both produce equivalent results

Summary by CodeRabbit

  • Chores
    • Added development tools to enhance code quality verification during the build process.

✏️ Tip: You can customize this high-level summary in your review settings.

Add @typescript/native-preview for faster type checking:
- check-types: runs tsgo --noEmit
- check-types:tsc: runs tsc --noEmit

lint script remains on tsc since tsgo is preview software.
@coderabbitai
Copy link

coderabbitai bot commented Jan 22, 2026

Note

.coderabbit.yaml has unrecognized properties

CodeRabbit is using all valid settings from your configuration. Unrecognized properties (listed below) have been ignored and may indicate typos or deprecated fields that can be removed.

⚠️ Parsing warnings (1)
Validation error: Unrecognized key(s) in object: 'tools'
⚙️ Configuration instructions
  • Please see the configuration documentation for more information.
  • You can also validate your configuration using the online YAML validator.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Walkthrough

Added two new npm type-checking scripts (check-types and check-types:tsc) to package.json alongside a new TypeScript preview development dependency. The changes enable type validation workflows without code emission.

Changes

Cohort / File(s) Summary
Package Configuration
package.json
Added npm scripts: check-types (tsgo --noEmit) and check-types:tsc (tsc --noEmit). Added devDependency: @typescript/native-preview@^7.0.0-dev.20260122.3

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

🚥 Pre-merge checks | ✅ 2 | ❌ 1
❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Description check ⚠️ Warning PR description is well-structured but missing required checklist items from the template. Complete the required checklist by selecting a release label (major/minor/patch/skip-release) and confirming documentation and test updates were addressed or not necessary.
✅ Passed checks (2 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the main change: adding tsgo type checker alongside tsc. It is concise, specific, and directly related to the primary objective of the pull request.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings

Comment @coderabbitai help to get the list of available commands and usage tips.

},
"scripts": {
"build": "tsup",
"check-types": "tsgo --noEmit",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we start using it in CI?

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.

2 participants