#swc #cli #source-map #file #bundle #path #compile

app bndl_cli

A basic TypeScript transpiling and bundling tool for (primarily backend) monorepos

29 stable releases

new 1.5.1 Dec 8, 2023
1.4.6 Dec 4, 2023
1.3.1 Nov 29, 2023

#63 in Command line utilities

Download history 129/week @ 2023-11-12 282/week @ 2023-11-19 335/week @ 2023-11-26 142/week @ 2023-12-03

888 downloads per month

MIT license

57KB
1K SLoC

bndl

crates.io npm GitHub Workflow Status (with event)

Introducing bndl, a basic TypeScript transpiling and bundling tool for (primarily backend) monorepos. It uses SWC under the hood so it benefits from the speed improvements that it brings over tsc.

It aims to be a near drop in replacement for people already accustomed to tsc and uses the tsconfig.json already present in your project. bndl goes through the monorepo, builds the current app (or package) with swc, identifies which dependencies are used by the consumer and copies them over to the compiled directory node_modules of said consumer.

The result? A dist that contains everything for your app to run. Simply copy the dist over to a Docker image and run it. Read more about it here.

Installing

cargo

$ cargo install bndl_cli

npm

$ npm install -g bndl-cli

curl

$ sh -c "$(curl -fsSL https://raw.githubusercontent.com/segersniels/bndl/master/scripts/install.sh)"

wget

$ sh -c "$(wget https://raw.githubusercontent.com/segersniels/bndl/master/scripts/install.sh -O -)"

Contributing

Expect a lot of missing functionality and potential things breaking. This was made with a specific use case in mind and there might be cases where functionality drifts from what you might need. Feel free to make issues or PRs adding your requested functionality.

Please provide the provided panic log or debug logging with RUST_LOG=debug bndl ... so your issue can get resolved quicker.

Dependencies

~22–35MB
~604K SLoC