Skip to content

luas10c/tsnite

Repository files navigation

tsnite

npm version Eslint prettier github license

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.

🚀 Installation

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

⚡ Features

  • 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.

🛠️ How to use

With tsnite installed, you can use it directly in your terminal to run TypeScript files without needing to compile them first.

Run a TypeScript file

npx tsnite path/to/file.ts

This will execute the specified TypeScript file, allowing you to quickly test and run scripts during development.

💡 Tips & Best Practices

  • Use with package.json scripts – integrate tsnite into npm or yarn 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
          // ...
        }
      ]
    }

📚 More information

Check the official npm page for details, examples, and updates: https://www.npmjs.com/package/tsnite

Enjoy developing TypeScript at full throttle!

About

TypeScript at full throttle—fast, safe, unstoppable. 🚀

Topics

Resources

License

Stars

Watchers

Forks