Skip to content

Installation

@basmilius/tools is intended for use as a development dependency in library packages.

shell
bun add -d @basmilius/tools
shell
npm install --save-dev @basmilius/tools
shell
pnpm add -D @basmilius/tools
shell
yarn add -D @basmilius/tools

Requirements

  • Bun >= 1.3.11 — the build helpers wrap Bun.build.
  • A tsconfig.json with isolatedDeclarations enabled if you use dts.

Add a build.ts to your package and a script that runs it:

json
{
    "scripts": {
        "build": "tsgo --noEmit && bun build.ts"
    }
}

The tsgo --noEmit step performs a strict type check first; the actual emit is handled by Bun.build plus dts() for declaration files.