pare-build
v0.24.2Pare Build ג€” Structured build output (tsc, esbuild, vite, webpack) as typed JSON diagnostics.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
tsc TypeScript Check
Runs the TypeScript compiler and returns structured diagnostics (file, line, column, code, message). Note: In compact mode, diagnostics are trimmed to file, line, and code — column and message fields are omitted to save tokens.
| Parameter | Type | Description |
|---|---|---|
compact | boolean | Prefer compact output |
declaration | boolean | Generate .d.ts declaration files (maps to --declaration) |
declarationDir | string | Output directory for .d.ts declaration files (maps to --declarationDir). Use with --declaration. |
emitDeclarationOnly | boolean | Only emit .d.ts declaration files without JS output (maps to --emitDeclarationOnly) |
incremental | boolean | Enable incremental compilation for faster repeated checks (maps to --incremental) |
listEmittedFiles | boolean | List emitted output files when emit is enabled (maps to --listEmittedFiles). Default: true when noEmit=false. |
noEmit | boolean | Skip emitting output files (default: true) |
path | string | Project root path |
pretty | boolean | Enable or disable pretty-printed output (maps to --pretty). Set false for normalized parser-friendly output. |
project | string | Path to tsconfig.json |
skipLibCheck | boolean | Skip type checking of declaration files for faster feedback (maps to --skipLibCheck) |
build Run Build
Runs a build command and returns structured success/failure with errors and warnings. Allowed commands: ant, bazel, bun, bunx, cargo, cmake, dotnet, esbuild, go, gradle, gradlew, make, msbuild, mvn, npm, npx, nx, pnpm, rollup, tsc, turbo, vite, webpack, yarn.
| Parameter | Type | Description |
|---|---|---|
command * | string | Build command to run (e.g., 'npm', 'npx', 'pnpm') |
args | array | Arguments for the build command (e.g., ['run', 'build']). |
compact | boolean | Prefer compact output |
env | object | Environment variables to set for the build process (e.g., { NODE_ENV: 'production', CI: 'true' }). Merged with existing environment. |
path | string | Working directory |
timeout | integer | Timeout in milliseconds (default: 300000, max: 600000). Use for builds that need more or less time. |
esbuild esbuild
Runs the esbuild bundler and returns structured errors, warnings, and output files.
| Parameter | Type | Description |
|---|---|---|
entryPoints * | array | Entry point files to bundle (e.g., ['src/index.ts']) |
args | array | Additional esbuild flags. |
bundle | boolean | Bundle dependencies (default: true) |
compact | boolean | Prefer compact output |
define | object | Compile-time constant replacements (e.g., { 'process.env.NODE_ENV': '"production"' }). Maps to --define:KEY=VALUE for each entry. |
drop | array | Statements to drop from output (maps to --drop:console, --drop:debugger) |
external | array | Packages to exclude from the bundle (e.g., ['react', 'react-dom']). Maps to --external. |
format | string | Output format (esm, cjs, iife) |
legalComments | string | How to handle legal comments (license headers) |
loader | object | Custom file loaders by extension (e.g., { '.png': 'dataurl', '.wasm': 'binary' }). Maps to --loader:.ext=type. |
logLevel | string | Log level to control output verbosity |
metafile | boolean | Generate a metafile with bundle analysis data (inputs/outputs with byte sizes). When enabled, the metafile is included in the structured output. |
minify | boolean | Minify output (default: false) |
outdir | string | Output directory |
outfile | string | Output file (single entry point) |
path | string | Project root path |
platform | string | Target platform (browser, node, neutral) |
sourcemap | string | Source map mode: 'true' for default, 'linked', 'inline', 'external', or 'both' |
splitting | boolean | Enable code splitting (requires format=esm and outdir) |
target | string | Target environment (e.g., 'es2020', 'node16', 'chrome90'). Maps to --target. |
tsconfig | string | Path to tsconfig.json for TypeScript configuration (maps to --tsconfig) |
vite-build Vite Build
Runs Vite production build and returns structured output files with sizes.
| Parameter | Type | Description |
|---|---|---|
args | array | Additional Vite build flags. |
base | string | Public base path for non-root deployments (maps to --base) |
compact | boolean | Prefer compact output |
config | string | Path to Vite config file (maps to --config) |
emptyOutDir | boolean | Empty the output directory before building (maps to --emptyOutDir) |
logLevel | string | Log level to control output verbosity |
manifest | boolean | Generate a manifest.json for backend-integrated builds (maps to --manifest) |
minify | string | Minification strategy (esbuild, terser, or false to disable) |
mode | string | Build mode (default: production) |
outDir | string | Custom output directory (maps to --outDir) |
path | string | Project root path |
reportCompressedSize | boolean | Report compressed (gzip) size of output files — disable to speed up large builds |
sourcemap | Generate source maps. true for default, 'inline' for inline, 'hidden' for hidden source maps. | |
ssr | string | SSR build entry point (maps to --ssr) |
webpack webpack
Runs webpack build with JSON stats output and returns structured assets, errors, and warnings.
| Parameter | Type | Description |
|---|---|---|
analyze | boolean | Enable webpack-bundle-analyzer for bundle size analysis (maps to --analyze) |
args | array | Additional webpack flags. |
bail | boolean | Fail on the first error instead of tolerating them (maps to --bail) |
cache | boolean | Enable or disable webpack caching (maps to --cache / --no-cache) |
compact | boolean | Prefer compact output |
config | string | Path to webpack config file |
devtool | string | Source map strategy (e.g., 'source-map', 'eval', 'cheap-module-source-map'). Maps to --devtool. |
entry | string | Entry point file to build (maps to --entry) |
env | object | Environment variables passed to the webpack config function via --env key=value (e.g., { production: 'true', apiUrl: 'https://api.example.com' }). |
mode | string | Build mode (production, development, none) |
path | string | Project root path |
profile | boolean | Enable webpack profiling to capture per-module timing data (maps to --profile). When enabled, profile data is included in the structured output. |
target | string | Build target environment (e.g., 'web', 'node', 'electron-main'). Maps to --target. |
turbo turbo
Runs Turborepo tasks and returns structured per-package results with cache hit/miss info.
| Parameter | Type | Description |
|---|---|---|
affected | boolean | Run only tasks affected by changes since the base branch (maps to --affected) |
args | array | Additional turbo flags passed directly to turbo (e.g., ['--env-mode=strict']). |
compact | boolean | Prefer compact output |
concurrency | number | Maximum number of concurrent tasks |
continue_on_error | boolean | Continue running tasks even after failures to surface all errors (maps to --continue) |
dryRun | boolean | Preview the task graph without executing (maps to --dry-run) |
filter | string | Package filter (e.g., '@scope/pkg' or 'pkg...') |
force | boolean | Bypass the turbo cache and re-run all tasks (maps to --force) |
graph | boolean | Generate the task graph visualization (maps to --graph) |
logOrder | string | Order of task log output |
outputLogs | string | Control which task logs are shown (default: 'new-only'). Maps to --output-logs. |
path | string | Project root path |
profile | boolean | Generate a performance profile (maps to --profile) |
summarize | boolean | Generate Turbo run summary metadata and parse it into structured `summary` when available (maps to --summarize) |
task | string | Turbo task to run (e.g., 'build', 'test', 'lint'). |
tasks | array | Multiple Turbo tasks to run in one invocation (e.g., ['build','test']) |
nx nx
Runs Nx workspace commands and returns structured per-project task results with cache status.
| Parameter | Type | Description |
|---|---|---|
target * | string | Nx target to run (e.g., 'build', 'test', 'lint') |
affected | boolean | Run target only for affected projects (default: false) |
args | array | Additional arguments to pass to nx. |
base | string | Base ref for affected comparison (e.g., 'main') |
compact | boolean | Prefer compact output |
configuration | string | Build configuration to use (e.g., 'production', 'development'). Maps to --configuration. |
dryRun | boolean | Preview the task graph without executing (maps to --dry-run) |
exclude | array | Projects to exclude from run-many (maps to --exclude) |
graph | boolean | Generate the task graph visualization (maps to --graph) |
head | string | Head ref for affected comparison (maps to --head) |
nxBail | boolean | Stop task execution after the first failure (maps to --nx-bail) |
outputStyle | string | Output style for task logs |
parallel | number | Max number of parallel tasks (maps to --parallel) |
path | string | Project root path |
project | string | Specific project to run the target for |
projects | array | Specific projects to include in run-many (maps to --projects) |
skipNxCache | boolean | Skip the Nx cache and re-run all tasks (maps to --skip-nx-cache) |
verbose | boolean | Enable verbose output for debugging (maps to --verbose) |
lerna lerna
Runs Lerna monorepo commands (list, run, changed, version) and returns structured package information.
| Parameter | Type | Description |
|---|---|---|
action * | string | Lerna action to perform: list (list packages), run (run script), changed (list changed packages), version (bump versions, dry-run only) |
args | array | Additional lerna flags. |
compact | boolean | Prefer compact output |
concurrency | number | Maximum number of concurrent tasks (maps to --concurrency) |
dryRun | boolean | Preview without making changes. Always enabled for 'version' action for safety. |
path | string | Project root path |
scope | string | Package filter pattern (e.g., '@scope/pkg' or 'pkg-*'). Maps to --scope. |
script | string | Script name to run (required when action is 'run') |
rollup rollup
Runs Rollup bundler and returns structured bundle output with errors and warnings.
| Parameter | Type | Description |
|---|---|---|
args | array | Additional rollup flags. |
compact | boolean | Prefer compact output |
config | string | Path to rollup config file (maps to -c) |
format | string | Output format (maps to --format) |
input | string | Entry point file (maps to --input) |
name | string | Name for UMD/IIFE bundle (maps to --name) |
output | string | Output file path (maps to --file) |
path | string | Project root path |
sourcemap | boolean | Generate source maps (maps to --sourcemap) |
watch | boolean | Run in watch mode (maps to --watch) |