2.6.4 • Published 5 months ago

@git.zone/tsbuild v2.6.4

Weekly downloads
-
License
MIT
Repository
-
Last release
5 months ago

Implementation Plan for tsbuild check Command

Overview

Add a new check command to tsbuild that allows checking TypeScript files against a glob pattern without emitting them, similar to running the TypeScript compiler with the --noEmit flag.

Implementation Steps

  1. Reread CLAUDE.md to ensure we follow project guidelines

  2. Extend TsBuild Class

    • The existing TsBuild class already has a checkEmit() method
    • We can leverage this method for our implementation
  3. Implement Check Command in CLI

    • Add a new check command to tsbuild.cli.ts
    • Command should accept glob patterns as arguments
    • Process glob patterns to find matching TypeScript files
    • Use the TsBuild class to check the files without emitting
  4. Update Exports

    • Ensure any new functionality is properly exported
  5. Testing

    • Test the command with various glob patterns
    • Verify error reporting works correctly

Differences from Existing emitcheck Command

The emitcheck command already exists and checks specific files without emitting. Our new check command will:

  • Be designed specifically for checking files against glob patterns
  • Use a simpler, more intuitive command name
  • Potentially add additional benefits (like summary statistics of checked files)

Example Usage

Once implemented, the command would work like this:

npx tsbuild check ts/**/* 
npx tsbuild check "src/**/*.ts" "test/**/*.ts"

Expected Output

The command should:

  • Report any TypeScript errors in the matched files
  • Provide a count of files checked and any errors found
  • Exit with code 0 if successful, or 1 if errors are found
2.3.0

7 months ago

2.2.1

9 months ago

2.2.0

12 months ago

2.5.0

5 months ago

2.4.1

5 months ago

2.3.2

7 months ago

2.4.0

5 months ago

2.6.1

5 months ago

2.5.2

5 months ago

2.2.5

8 months ago

2.6.0

5 months ago

2.5.1

5 months ago

2.2.4

8 months ago

2.6.3

5 months ago

2.2.7

7 months ago

2.2.6

8 months ago

2.6.4

5 months ago

2.1.85

12 months ago

2.1.83

1 year ago

2.1.84

1 year ago

2.1.82

1 year ago

2.1.78

1 year ago

2.1.79

1 year ago

2.1.77

1 year ago

2.1.80

1 year ago

2.1.76

1 year ago

2.1.75

1 year ago

2.1.73

1 year ago

2.1.72

2 years ago

2.1.70

2 years ago

2.1.69

2 years ago

2.1.68

2 years ago

2.1.67

2 years ago