pare-bun

v0.24.2
io.github.Dave-London/pare-bun Checked 8 hours ago Published 3 days ago

Pare Bun — Structured Bun runtime operations as typed JSON.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

run Bun Run

Runs a script or file with `bun run` and returns structured output (stdout, stderr, exit code, duration).

ParameterTypeDescription
script *stringScript name or file path to run
argsarrayAdditional arguments to pass to the script
compactbooleanPrefer compact output
pathstringProject root path

test Bun Test

Runs `bun test` and returns structured pass/fail results with per-test details.

ParameterTypeDescription
compactbooleanPrefer compact output
filesarraySpecific test files or patterns to run
filterstringFilter tests by name pattern (--test-name-pattern)
pathstringProject root path
timeoutnumberTest timeout in milliseconds (--timeout)

build Bun Build

Runs `bun build` to bundle JavaScript/TypeScript and returns structured output with artifact info.

ParameterTypeDescription
entrypoints *arrayEntry point files to bundle
compactbooleanPrefer compact output
formatstringOutput module format (--format)
minifybooleanMinify the output (--minify)
outdirstringOutput directory (--outdir)
outfilestringOutput file path (--outfile)
pathstringProject root path
sourcemapstringSource map generation (--sourcemap)
splittingbooleanEnable code splitting (--splitting)
targetstringBuild target environment (--target)

install Bun Install

Runs `bun install` to install project dependencies and returns structured output with package count.

ParameterTypeDescription
compactbooleanPrefer compact output
frozenbooleanError if lockfile would change (--frozen-lockfile)
pathstringProject root path
productionbooleanSkip devDependencies (--production)

add Bun Add

Runs `bun add` to add one or more packages and returns structured output.

ParameterTypeDescription
packages *arrayPackage names to add (e.g. ['typescript', 'zod@3.22'])
compactbooleanPrefer compact output
devbooleanAdd as devDependency (--dev / -D)
exactbooleanAdd exact version (--exact)
pathstringProject root path

remove Bun Remove

Runs `bun remove` to remove one or more packages and returns structured output.

ParameterTypeDescription
packages *arrayPackage names to remove
compactbooleanPrefer compact output
pathstringProject root path

outdated Bun Outdated

Runs `bun outdated` to check for outdated packages and returns structured version info.

ParameterTypeDescription
compactbooleanPrefer compact output
pathstringProject root path

pm-ls Bun PM List

Runs `bun pm ls` to list installed packages and returns structured package info.

ParameterTypeDescription
allbooleanShow all transitive dependencies (--all)
compactbooleanPrefer compact output
pathstringProject root path