Skip to content

Uanela/tsx-strict

Repository files navigation

The TSX with automatic Type-Checking

Run TypeScript files with TSX while providing real-time type checking.

Features

  • Real-time type checking alongside tsx execution
  • Watch mode with automatic restarts
  • Intelligent process management
  • Customizable compiler support
  • Memory management options

Installation

pnpm install -g tsx-strict

Or use with npx:

npx tsxs src/index.ts

Usage

tsxs app.ts

Watch Mode

tsxs --watch app.ts

Skip Type Checking

tsxs --no-type-check app.ts

CLI Options

Option Description Default
-w, --watch Enable watch mode false
--no-clear Do not clear screen false
--compiler Compiler path typescript/bin/tsc
--tsc-args <args...> Additional TypeScript compiler arguments []
--tsx-args <args...> Additional tsx arguments []
--silent Suppress output false
--no-type-check Skip type checking (run tsx directly) false

How It Works

Runs tsc --noEmit for type checking and tsx for execution. Restarts tsx only when type checking passes and kills previous instances to prevent conflicts.

Built with ♥️ by Uanela Como

About

The TSX with automatic Type-Checking

Topics

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published