TypeScript at full throttle—fast, safe, unstoppable. 🚀
tsnite
is a tool that accelerates TypeScript project development, offering a streamlined build and run experience. Ideal for developers seeking productivity without compromising security and performance.
To add tsnite
to your project as a development dependency, run:
npm install tsnite -D
Or, if you're using Yarn:
yarn add --dev tsnite
- Decorators first-class support for TypeScript decorators.
- Simple integration with existing projects.
- ESM Support native support for modern JavaScript modules.
- Automatic
tsconfig.json
loading – respects your project configuration.
With tsnite
installed, you can use it directly in your terminal to run TypeScript files without needing to compile them first.
npx tsnite path/to/file.ts
This will execute the specified TypeScript file, allowing you to quickly test and run scripts during development.
- Use with
package.json
scripts – integratetsnite
intonpm
oryarn
scripts for a smoother workflow. Example:{ "scripts": { //... "dev": "tsnite --watch --include-assets src/index.ts" } }
- Debugging with VS Code when debugging, you may need to configure outFiles in .vscode/launch.json to match the temporary output directory used by tsnite:
Example:
{ "version": "0.2.0", "configurations": [ { //... "outFiles": [ "/tmp/tsnite/**/*.js", "C:\Users\<SeuUsuario>\AppData\Local\Temp" ] // Use one or the other, first for Linux, second for Windows // ... } ] }
Check the official npm page for details, examples, and updates: https://www.npmjs.com/package/tsnite
Enjoy developing TypeScript at full throttle!