aria-build is a zero-configuration command-line interface (CLI) bundler and packager designed for both TypeScript and JavaScript projects, built upon Rollup. It also exposes a programmatic API for developers needing more granular control over their build processes. The current stable version, 0.7.4, was released approximately three years ago, suggesting the project is no longer actively maintained. Its primary differentiators include a simplified CLI experience, seamless integration with SWC and esbuild for efficient code transformations, and automatic generation of TypeScript declaration files. It aims to streamline common bundling tasks by offering sensible defaults for various module formats like ES and CommonJS. Due to the lack of recent updates, users should be aware that it might not fully support the latest advancements in the JavaScript and TypeScript ecosystems.
npm install aria-buildVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to programmatically bundle a TypeScript project using `aria-build`'s API, including cleaning the output directory, configuring ES and CJS formats, and enabling esbuild for transformations.
Consider evaluating alternative, actively maintained bundlers like Rollup directly, esbuild, or Vite. If using `aria-build`, pin all dependencies to versions known to work with 0.7.4.
Always pin exact versions (`"aria-build": "0.7.4"`) to ensure consistent builds and thoroughly test after any updates.
Ensure your `tslib` version matches the one recommended by `aria-build` (`1.13.0`). If you encounter issues, verify `tslib` compatibility with your project's TypeScript version and other dependencies. You might need to use `resolutions` or `overrides` in your `package.json`.
No direct fix for users, but it's a strong indicator to proceed with caution and consider alternatives for long-term projects.
Install all required peer dependencies: `npm install --save-dev typescript @swc/core aria-fs`.
Use ES module import syntax: `import { bundle, clean } from 'aria-build';`.Install the specific version of `tslib` recommended by `aria-build`: `npm install --save-dev tslib@1.13.0`.