pare-build

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

Pare 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.

ParameterTypeDescription
compactbooleanPrefer compact output
declarationbooleanGenerate .d.ts declaration files (maps to --declaration)
declarationDirstringOutput directory for .d.ts declaration files (maps to --declarationDir). Use with --declaration.
emitDeclarationOnlybooleanOnly emit .d.ts declaration files without JS output (maps to --emitDeclarationOnly)
incrementalbooleanEnable incremental compilation for faster repeated checks (maps to --incremental)
listEmittedFilesbooleanList emitted output files when emit is enabled (maps to --listEmittedFiles). Default: true when noEmit=false.
noEmitbooleanSkip emitting output files (default: true)
pathstringProject root path
prettybooleanEnable or disable pretty-printed output (maps to --pretty). Set false for normalized parser-friendly output.
projectstringPath to tsconfig.json
skipLibCheckbooleanSkip 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.

ParameterTypeDescription
command *stringBuild command to run (e.g., 'npm', 'npx', 'pnpm')
argsarrayArguments for the build command (e.g., ['run', 'build']).
compactbooleanPrefer compact output
envobjectEnvironment variables to set for the build process (e.g., { NODE_ENV: 'production', CI: 'true' }). Merged with existing environment.
pathstringWorking directory
timeoutintegerTimeout 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.

ParameterTypeDescription
entryPoints *arrayEntry point files to bundle (e.g., ['src/index.ts'])
argsarrayAdditional esbuild flags.
bundlebooleanBundle dependencies (default: true)
compactbooleanPrefer compact output
defineobjectCompile-time constant replacements (e.g., { 'process.env.NODE_ENV': '"production"' }). Maps to --define:KEY=VALUE for each entry.
droparrayStatements to drop from output (maps to --drop:console, --drop:debugger)
externalarrayPackages to exclude from the bundle (e.g., ['react', 'react-dom']). Maps to --external.
formatstringOutput format (esm, cjs, iife)
legalCommentsstringHow to handle legal comments (license headers)
loaderobjectCustom file loaders by extension (e.g., { '.png': 'dataurl', '.wasm': 'binary' }). Maps to --loader:.ext=type.
logLevelstringLog level to control output verbosity
metafilebooleanGenerate a metafile with bundle analysis data (inputs/outputs with byte sizes). When enabled, the metafile is included in the structured output.
minifybooleanMinify output (default: false)
outdirstringOutput directory
outfilestringOutput file (single entry point)
pathstringProject root path
platformstringTarget platform (browser, node, neutral)
sourcemapstringSource map mode: 'true' for default, 'linked', 'inline', 'external', or 'both'
splittingbooleanEnable code splitting (requires format=esm and outdir)
targetstringTarget environment (e.g., 'es2020', 'node16', 'chrome90'). Maps to --target.
tsconfigstringPath to tsconfig.json for TypeScript configuration (maps to --tsconfig)

vite-build Vite Build

Runs Vite production build and returns structured output files with sizes.

ParameterTypeDescription
argsarrayAdditional Vite build flags.
basestringPublic base path for non-root deployments (maps to --base)
compactbooleanPrefer compact output
configstringPath to Vite config file (maps to --config)
emptyOutDirbooleanEmpty the output directory before building (maps to --emptyOutDir)
logLevelstringLog level to control output verbosity
manifestbooleanGenerate a manifest.json for backend-integrated builds (maps to --manifest)
minifystringMinification strategy (esbuild, terser, or false to disable)
modestringBuild mode (default: production)
outDirstringCustom output directory (maps to --outDir)
pathstringProject root path
reportCompressedSizebooleanReport compressed (gzip) size of output files — disable to speed up large builds
sourcemapGenerate source maps. true for default, 'inline' for inline, 'hidden' for hidden source maps.
ssrstringSSR build entry point (maps to --ssr)

webpack webpack

Runs webpack build with JSON stats output and returns structured assets, errors, and warnings.

ParameterTypeDescription
analyzebooleanEnable webpack-bundle-analyzer for bundle size analysis (maps to --analyze)
argsarrayAdditional webpack flags.
bailbooleanFail on the first error instead of tolerating them (maps to --bail)
cachebooleanEnable or disable webpack caching (maps to --cache / --no-cache)
compactbooleanPrefer compact output
configstringPath to webpack config file
devtoolstringSource map strategy (e.g., 'source-map', 'eval', 'cheap-module-source-map'). Maps to --devtool.
entrystringEntry point file to build (maps to --entry)
envobjectEnvironment variables passed to the webpack config function via --env key=value (e.g., { production: 'true', apiUrl: 'https://api.example.com' }).
modestringBuild mode (production, development, none)
pathstringProject root path
profilebooleanEnable webpack profiling to capture per-module timing data (maps to --profile). When enabled, profile data is included in the structured output.
targetstringBuild 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.

ParameterTypeDescription
affectedbooleanRun only tasks affected by changes since the base branch (maps to --affected)
argsarrayAdditional turbo flags passed directly to turbo (e.g., ['--env-mode=strict']).
compactbooleanPrefer compact output
concurrencynumberMaximum number of concurrent tasks
continue_on_errorbooleanContinue running tasks even after failures to surface all errors (maps to --continue)
dryRunbooleanPreview the task graph without executing (maps to --dry-run)
filterstringPackage filter (e.g., '@scope/pkg' or 'pkg...')
forcebooleanBypass the turbo cache and re-run all tasks (maps to --force)
graphbooleanGenerate the task graph visualization (maps to --graph)
logOrderstringOrder of task log output
outputLogsstringControl which task logs are shown (default: 'new-only'). Maps to --output-logs.
pathstringProject root path
profilebooleanGenerate a performance profile (maps to --profile)
summarizebooleanGenerate Turbo run summary metadata and parse it into structured `summary` when available (maps to --summarize)
taskstringTurbo task to run (e.g., 'build', 'test', 'lint').
tasksarrayMultiple 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.

ParameterTypeDescription
target *stringNx target to run (e.g., 'build', 'test', 'lint')
affectedbooleanRun target only for affected projects (default: false)
argsarrayAdditional arguments to pass to nx.
basestringBase ref for affected comparison (e.g., 'main')
compactbooleanPrefer compact output
configurationstringBuild configuration to use (e.g., 'production', 'development'). Maps to --configuration.
dryRunbooleanPreview the task graph without executing (maps to --dry-run)
excludearrayProjects to exclude from run-many (maps to --exclude)
graphbooleanGenerate the task graph visualization (maps to --graph)
headstringHead ref for affected comparison (maps to --head)
nxBailbooleanStop task execution after the first failure (maps to --nx-bail)
outputStylestringOutput style for task logs
parallelnumberMax number of parallel tasks (maps to --parallel)
pathstringProject root path
projectstringSpecific project to run the target for
projectsarraySpecific projects to include in run-many (maps to --projects)
skipNxCachebooleanSkip the Nx cache and re-run all tasks (maps to --skip-nx-cache)
verbosebooleanEnable verbose output for debugging (maps to --verbose)

lerna lerna

Runs Lerna monorepo commands (list, run, changed, version) and returns structured package information.

ParameterTypeDescription
action *stringLerna action to perform: list (list packages), run (run script), changed (list changed packages), version (bump versions, dry-run only)
argsarrayAdditional lerna flags.
compactbooleanPrefer compact output
concurrencynumberMaximum number of concurrent tasks (maps to --concurrency)
dryRunbooleanPreview without making changes. Always enabled for 'version' action for safety.
pathstringProject root path
scopestringPackage filter pattern (e.g., '@scope/pkg' or 'pkg-*'). Maps to --scope.
scriptstringScript name to run (required when action is 'run')

rollup rollup

Runs Rollup bundler and returns structured bundle output with errors and warnings.

ParameterTypeDescription
argsarrayAdditional rollup flags.
compactbooleanPrefer compact output
configstringPath to rollup config file (maps to -c)
formatstringOutput format (maps to --format)
inputstringEntry point file (maps to --input)
namestringName for UMD/IIFE bundle (maps to --name)
outputstringOutput file path (maps to --file)
pathstringProject root path
sourcemapbooleanGenerate source maps (maps to --sourcemap)
watchbooleanRun in watch mode (maps to --watch)