dts-bundle-appends
v0.0.2
Published
Appends custom d.ts files into d.ts file bundle by dts-bundle.
Downloads
2
Readme
dts-bundle-appends
Appends custom d.ts
files into one d.ts
file bundled by dts-bundle.
Usage
- Install from npm:
npm install dts-bundle-appends
Run
dts-bundle
.After
d.ts
file bundled, rundts-bundle-appends
.
Requirements
NodeJS: >= 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).
Configuration options
| Argument | Type | Description |
|--------------|--------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| appends | 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. |
*All other configuration options available from dts-bundle
(read more TypeStrong/dts-bundle#options).
Configuration example
{
"name": "module-name",
"main": "dist/main.d.ts",
"out": "module-name.d.ts",
"baseDir": "dist",
"appends": [
"src/global.d.ts"
]
}
Command line
Usage: dts-bundle-appends [options]
Options:
--help Show help [boolean]
--version Show version number [boolean]
--appends Appends 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]