Generate js proxy files from dts-bundle file
- Install from npm:
$ npm install dts-bundle-proxyjs
-
Run
dts-bundle
. -
After
d.ts
file bundled, rundts-bundle-proxyjs
.
- Creates JS proxy from bundled dts.
$ dts-bundle-proxyjs --help
Using config:
Default config is dts-bundle.js
.
$ dts-bundle-proxy -c dts-bundle.json
{
"name": "example-lib",
"main": "./dist/index.d.ts",
"out": "./dist/example-lib.d.ts",
"removeSource": true,
"proxyjs": {
"default": "Hello",
"generateDir": "./dist",
"requireFile": "./dist/build.js",
"exportAsDefault": true
}
}
proxyjs
part:
Argument | Type | Default | Description |
---|---|---|---|
default | string | none | Parts that must be included. |
generateDir * |
string | none | Parts that will be generated js files. |
requireFile * |
string | none | Bundled js file from where proxy will be made. |
exportAsDefault | bool | true | Generated js files exported as default. |
*
- Required.
Released under the PGL-3.0 license.