Hohoro

Hohoro is an incremental JS/TS/TSX library build tool that helps you build your library with ease!

hohoro is Maori for "make haste" or "hurry up"

Installation

Install Hohoro via your favorite package manager:

bun install hohoro
bun install hohoro

Setup:

hohoro uses oxc under the hood to emit downleveled JavaScript and TypeScript declaration files.

Once you've installed hohoro, you can set your build script to the hohoro binary:

{
"scripts": {
"build": "hohoro"
}
}
{
"scripts": {
"build": "hohoro"
}
}

Then run build to build your project!

Watch Mode

By default, hohoro does not automatically watch your project for changes and rebuild. Instead you can combine hohoro with node --watch (or similar tools) to achieve this!

To get started, you'll need a local dev.mjs script:

// dev.mjs
import { runBuild } from "hohoro";

await runBuild({ rootDirectory: process.cwd(), logger: console });
// dev.mjs
import { runBuild } from "hohoro";

await runBuild({ rootDirectory: process.cwd(), logger: console });

Then add a dev script to your package.json:

{
"scripts": {
"dev": "node --watch-path=./src dev.mjs"
}
}
{
"scripts": {
"dev": "node --watch-path=./src dev.mjs"
}
}