dtsup

Bundle your d.ts files.

Usage no npm install needed!

<script type="module">
  import dtsup from 'https://cdn.skypack.dev/dtsup';
</script>

README

dtsup

Bundle your d.ts files.

Usage

Recommend tsconfig.json:

{
  "compilerOptions": {
    "declaration": true,
    "declarationDir": "temp",
    "moduleResolution": "node"
  }
}

Run tsc to generate unbundled .d.ts to temp directory, then run dtsup to bundle external types:

dtsup temp/index.d.ts

This will generate dist/index.d.ts

License

MIT © EGOIST