Estrella is a versatile and lightweight build tool leveraging the speed of esbuild for TypeScript and JavaScript projects. It distinguishes itself by eschewing traditional configuration files in favor of a user-defined JavaScript or TypeScript build script, providing full programmatic control over the build process. Key features include automatic rebuilds on file changes, parallel project building, and integrated TypeScript diagnostics which can be optionally enabled and customized, allowing remapping of diagnostic severity levels. The current stable version is 1.4.1, with releases occurring periodically to incorporate esbuild updates and introduce new features or fixes. Its minimal dependency footprint (primarily esbuild itself) and single-file design contribute to its fast startup times, aiming to retain esbuild's blazing performance.
npm install estrellaVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to set up a basic build script using Estrella to compile a TypeScript entry point, bundle it, output it to a specified file, and explicitly enable TypeScript diagnostics.
Consult the `estrella.d.ts` API documentation or `examples` directory for the correct `watch` function signature and usage patterns for versions 1.4.0 and later.
Thoroughly test existing build configurations that use `define` options when upgrading to v1.4.0 or newer. Consult esbuild documentation for current `define` behavior.
Review the build script's `run` related logic and test its behavior when upgrading to v1.4.1 or later. Adjust program execution commands or `run` options as necessary.
To enable full TypeScript type checking and diagnostics, ensure a `tsconfig.json` is configured correctly, or add `tsc: true` to your `build` configuration object.
Estrella allows remapping TS diagnostic severities. Add a `tsrules` entry to your `build` options, e.g., `tsrules: { '7006': 'warn' }`, to treat this specific error as a warning instead of an error, or explicitly type the parameter (e.g., `ev: MouseEvent`).Run `npm install -D estrella` or `yarn add -D estrella` in your project's root directory. Ensure your build script is run from a location where `node_modules` is accessible.