herb-build is a build tool for JavaScript/TypeScript projects with a focus on simplicity and convention over configuration. As of version 1.4.8 (stable, released monthly), it provides a single-command build pipeline that handles TypeScript compilation, bundling, and minification. Unlike Webpack or Rollup, herb-build aims to be zero-config for standard projects while still offering extensibility via plugins. It supports both ESM and CJS output, includes built-in type checking, and is designed for both CLI and programmatic use. The package has TypeScript definitions bundled and is available on npm, targeting Node.js environments.
npm install herb-buildNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates basic usage of the build function with TypeScript input, ESM output, minification, and type declaration generation.
Update format to an array, e.g., format: ['esm'] (or ['cjs']), or omit to use defaults.
Set sourcemap: 'inline' for production if you need to avoid external files, or ensure .map files are not served publicly.
Include types: true in the build options.
Specify format: ['esm'] for modern bundlers or format: ['cjs', 'esm'] for dual output.
Run 'npm install herb-build --save-dev' and ensure import/require uses correct path.
Use import { build } from 'herb-build' instead of import build from 'herb-build'.Use 'formats' (plural) with an array value, e.g., formats: ['esm'].