# typescript-bundler

> A Zero-configuration TypeScript transpiler and bundler

Latest version **1.0.1** (published 2021-11-11) · 0 weekly downloads

## Install

```sh
npm install typescript-bundler
pnpm add typescript-bundler
yarn add typescript-bundler
bun add typescript-bundler
```

Provides the command `tsb`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2021-11-11 |
| First published | 2020-03-03 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=8.5.0 |
| Dependencies | 13 |
| Unpacked size | 93.1 KB |
| Known vulnerabilities | 0 (+14 in 5 direct dependencies) |
| Install scripts | no |
| Author | Ling Zhang |
| Maintainers | e2tox |

## Links

- npm: https://www.npmjs.com/package/typescript-bundler
- Issues: https://github.com/e2tox/tsb/issues
- npm.io page: https://npm.io/package/typescript-bundler

## Dependencies (13)

- [ini](https://npm.io/package/ini.md) 1.3.8
- [chalk](https://npm.io/package/chalk.md) 4.1.2
- [sharp](https://npm.io/package/sharp.md) 0.26.3
- [tslib](https://npm.io/package/tslib.md) 2.3.1
- [rollup](https://npm.io/package/rollup.md) 2.59.0
- [semver](https://npm.io/package/semver.md) 7.3.5
- [terser](https://npm.io/package/terser.md) 5.3.8
- [js-yaml](https://npm.io/package/js-yaml.md) 3.14.1
- [prettier](https://npm.io/package/prettier.md) 2.4.1
- [commander](https://npm.io/package/commander.md) 5.1.0
- [typescript](https://npm.io/package/typescript.md) 4.4.4
- [magic-string](https://npm.io/package/magic-string.md) 0.25.7
- [rollup-plugin-terser](https://npm.io/package/rollup-plugin-terser.md) 7.0.2

## Recent versions

- 1.0.1 (latest) — 2021-11-11
- 1.0.0 — 2021-11-10
- 1.0.0-rc.5 — 2021-08-21
- 1.0.0-rc.4 — 2021-08-14
- 1.0.0-rc.3 — 2021-08-07
- 1.0.0-rc.2 — 2021-08-07
- 1.0.0-rc.1 — 2020-12-22
- 0.0.12 — 2020-09-24
- 0.0.11 — 2020-09-23
- 0.0.10 — 2020-05-29
- 0.0.9 — 2020-05-29
- 0.0.8 — 2020-03-27
- 0.0.7 — 2020-03-27
- 0.0.6 — 2020-03-26
- 0.0.5 — 2020-03-16
- … 4 more at https://npm.io/package/typescript-bundler/versions

## README

# TypeScript Bundler

A Zero-configuration TypeScript transpiler and bundler.

## Features

1. Transpile `.ts` file to `.js` and `.d.ts`
2. Bundle `.js` and `.d.ts` output automatically
3. Inline and treeshaking `sideEffectFree: false` es modules which defined in `devDependencies`
4. Allow multiple `.ts` entries under `bin` or `lib` folder
5. Compress the `public` folder with `gzip`, `br2` and `webp`
6. Mangle, Prettier output code automatically
7. Generate `package.json` for the bundle
8. Generate `settings.js` from different type of config files
9. No intermediate files written on disk, keep your project folder clean
10. Improve `agentframework` performance

## How to use?
1. Install

```bash
npm i -g git+ssh://git@github.com/e2tox/tsb.git
```

2. Make your project structure similar as following:

```
Project
    |-- bin
    |    |-- cli.ts
    |    |-- ...
    |
    |-- conf
    |    |-- settings.properties
    |    |-- settings.yaml
    |    |-- ...
    |
    |-- lib
    |    |-- index.ts
    |    |-- library.ts
    |    |-- utils.ts
    |    |-- ...
    |
    |-- public
    |    |-- image.gif
    |    |-- page.html
    |    |-- embeded.js
    |    |-- ...
    |
    |-- src
    |    |-- app.ts
    |    |-- utils.ts
    |    |-- services
    |    |    |-- users.ts
    |    |    |-- groups.ts
    |    |    |-- ...
    |    |-- ...
    |
    |-- index.ts
    |-- package.json
    |-- tsconfig.json
```

2. run this command at project root

```
tsb
```

# Supported Configuration Files

- JavaScript File (settings.js)
- JSON File (settings.json)
- YAML File (settings.yaml, settings.yml)
- JSON File (settings.json)
- JSON5 File (settings.json5)
- INI File (settings.ini)
- Properties File (settings.properties)

# Report Bugs

https://github.com/e2tox/tsb/issues

Please also include a link to a sample code repository which can reproduce the issue.

---
_Source: https://npm.io/package/typescript-bundler · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
