TSX runner with automatic Type-checking
npm install tsx-strictRun TypeScript files with TSX while providing real-time type checking.
- Real-time type checking alongside tsx execution
- Watch mode with automatic restarts
- Intelligent process management
- Customizable compiler support
- Memory management options
``bash`
pnpm install -g tsx-strict
Or use with npx:
`bash`
npx tsxs src/index.ts
`bash`
tsxs app.ts
`bash`
tsxs --watch app.ts
`bash`
tsxs --no-type-check app.ts
| Option | Description | Default |
| ---------------------- | ---------------------------------------- | -------------------- |
| -w, --watch | Enable watch mode | false |--no-clear
| | Do not clear screen | false |--compiler
| | Compiler path | typescript/bin/tsc |--tsc-args
| | Additional TypeScript compiler arguments | [] |--tsx-args
| | Additional tsx arguments | [] |--silent
| | Suppress output | false |--no-type-check
| | Skip type checking (run tsx directly) | false |
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