A fast file-watching runner and build tool for scripts, powered by esbuild. Version 2.0.1 uses esbuild for rapid compilation and restarting, with automatic dependency tracking, external module exclusion, and optional ESM output. It supports TypeScript decorators via swc and runs multiple commands (watch, run, build). Maintained by egoist, with regular updates. Differentiators: leverages esbuild's speed, built-in build command, and automatic watch of imported files.
npm install esmonNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Install esmon as a dev dependency and run a TypeScript script with file watching.
Add 'temp/' to your .gitignore file.
Run 'esmon run your-script.ts' instead of 'esmon your-script.ts'.
Use 'esmon build --esm your-script.ts'.
Enable emitDecoratorMetadata in tsconfig.json.
Pass --bundleDevDeps flag to include devDependencies in bundle.
Run 'npm install esbuild' or add it as a dependency.
Run 'npm install -D esmon' in your project directory.
Use --esm flag or import.meta.url for ESM.
Set 'emitDecoratorMetadata': true in tsconfig.json compilerOptions.
Ensure your code uses supported syntax; update esbuild version.
No dependency data recorded yet.