.. | ||
README.md | ||
rollup.config.js |
Bundling typescript declarations
The stuff in this folder are responsible for producing the .d.ts
declaration
files in lib/
.
Declarations are produced in two steps:
- (
$ npm run build:declarations:emit
):$ tsc
is run withtsconfig.declarations.json
. This produces a.d.ts
file for every module in the project and emits them to.temp/
. - (
$ npm run build:declarations:bundle
): We then use rollup with rollup-plugin-dts to bundle the declaration files into a concise bundle.