# dts-bundle-append

> Append custom d.ts files into d.ts file bundle by dts-bundle.

Latest version **0.0.2** (published 2016-08-08) · GPL-3.0 license · 0 weekly downloads

## Install

```sh
npm install dts-bundle-append
pnpm add dts-bundle-append
yarn add dts-bundle-append
bun add dts-bundle-append
```

Provides the command `dts-bundle-append`.

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2016-08-08 |
| First published | 2016-08-08 |
| Weekly downloads | 0 |
| License | GPL-3.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=6.0.0 |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Giedrius Grabauskas |
| Maintainers | quatrodev |

## Links

- npm: https://www.npmjs.com/package/dts-bundle-append
- Repository: https://github.com/quatrocode/dts-bundle-append
- Homepage: https://github.com/QuatroCode/dts-bundle-append
- Issues: https://github.com/QuatroCode/dts-bundle-append/issues
- npm.io page: https://npm.io/package/dts-bundle-append

## Dependencies (2)

- [glob](https://npm.io/package/glob.md) ^7.0.5
- [yargs](https://npm.io/package/yargs.md) ^4.8.1

## Recent versions

- 0.0.2 (latest) — 2016-08-08

## README

# dts-bundle-append 
[![NPM version](http://img.shields.io/npm/v/dts-bundle-append.svg)](https://www.npmjs.com/package/dts-bundle-append) [![dependencies Status](https://david-dm.org/quatrocode/dts-bundle-append/status.svg)](https://david-dm.org/quatrocode/dts-bundle-append) [![devDependencies Status](https://david-dm.org/quatrocode/dts-bundle-append/dev-status.svg)](https://david-dm.org/quatrocode/dts-bundle-append?type=dev)

Append custom `d.ts` files into one `d.ts` file bundled by [dts-bundle](https://github.com/TypeStrong/dts-bundle). 

## Usage
1) Install from npm:
```cmd
npm install dts-bundle-append
```
2) Run `dts-bundle`.

3) After `d.ts` file bundled, run `dts-bundle-append`.

## Requirements
[NodeJS](https://nodejs.org/): >= 6.0.0 

## Configuration
Default configuration are taken from a `dts-bundle.json` file.

Also, you can specify a custom config file (see [#command-line](#command-line)).

### Configuration options
| Argument     | Type                           | Description                                                                                                                                                                |
|--------------|--------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| append       | `string | Array<string>`       | Specifies a list of glob patterns that match `d.ts` files to be appended in bundled `d.ts` file. Read more about [globs](https://github.com/isaacs/node-glob#glob-primer). |

*All other configuration options available from `dts-bundle` (read more [TypeStrong/dts-bundle#options](https://github.com/TypeStrong/dts-bundle#options)).


### Configuration example
```json
{
    "name": "module-name",
    "main": "dist/main.d.ts",
    "out": "module-name.d.ts",
    "baseDir": "dist",
    "append": [
      "src/global.d.ts"
    ]
}
```

## Command line
```cmd
Usage: dts-bundle-append [options]

Options:
  --help        Show help                                                    [boolean]
  --version     Show version number                                          [boolean]
  --append      Append files to global                                        [string]
  --out         dts-bundle bundled out file                                   [string]
  --configJson  dts-bundle configuration file    [string] [default: "dts-bundle.json"]
  --baseDir     dts-bundle base directory                                     [string]
  ```

## License
[GPL-3.0](LICENSE)

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