0.20.6 • Published 8 months ago

bun-plugin-dts-auto v0.20.6

Weekly downloads
-
License
-
Repository
-
Last release
8 months ago

Social Card of Bun Plugin DTS Auto

bun-plugin-dts-auto

npm version GitHub Actions Commitizen friendly npm downloads

This Bun plugin generates dts files for your TypeScript project.

Features

  • Automatic dts generation based on your entrypoints
  • Honors & inherits your tsconfig.json settings
  • Monorepo support
  • Dependency-free (aside from TS & Bun)

Usage

bun install -d bun-plugin-dts-auto

You may now use the plugin:

import dts from 'bun-plugin-dts-auto'

await Bun.build({
  root: './src', // optional

  entrypoints: [
    'src/index.ts',
  ],

  outdir: './dist',

  plugins: [
    dts({
      cwd: import.meta.dir, // optional
      rootDir: `${import.meta.dir}/src`, // optional
      outdir: 'dist/types', // optional
    }),
  ],
})

console.log('Build complete ✅')

!NOTE Please note, this plugin honors your tsconfig.json compilerOptions.outDir setting. If you want to override this, you can do so by setting the outdir, rootDir, and cwd option in the build object.

Testing

bun test

Changelog

Please see our releases page for more information on what has changed recently.

Contributing

Please review the Contributing Guide for details.

Community

For help, discussion about best practices, or any other conversation that would benefit from being searchable:

Discussions on GitHub

For casual chit-chat with others using this package:

Join the Stacks Discord Server

Postcardware

You will always be free to use any of the Stacks OSS software. We would also love to see which parts of the world Stacks ends up in. Receiving postcards makes us happy—and we will publish them on our website.

Our address: Stacks.js, 12665 Village Ln #2306, Playa Vista, CA 90094, United States 🌎

Sponsors

We would like to extend our thanks to the following sponsors for funding Stacks development. If you are interested in becoming a sponsor, please reach out to us.

Credits

Many thanks to the following core technologies & people who have contributed to this package:

License

The MIT License (MIT). Please see LICENSE for more information.

Made with 💙

0.18.10

9 months ago

0.18.12

9 months ago

0.20.1

8 months ago

0.18.9

9 months ago

0.20.0

8 months ago

0.19.0

8 months ago

0.19.1

8 months ago

0.18.8

9 months ago

0.18.19

9 months ago

0.16.0

9 months ago

0.17.0

9 months ago

0.18.20

9 months ago

0.20.6

8 months ago

0.20.5

8 months ago

0.20.4

8 months ago

0.20.3

8 months ago

0.20.2

8 months ago

0.15.4

9 months ago

0.15.0

9 months ago

0.14.1

9 months ago

0.15.1

9 months ago

0.15.2

9 months ago

0.15.3

9 months ago

0.11.0

1 year ago

0.11.1

1 year ago

0.10.0

1 year ago

0.3.0

1 year ago

0.9.0

1 year ago

0.8.0

1 year ago

0.5.3

1 year ago

0.5.0

1 year ago

0.4.1

1 year ago

0.4.0

1 year ago

0.7.0

1 year ago

0.6.1

1 year ago

0.5.2

1 year ago

0.6.0

1 year ago

0.5.1

1 year ago

0.2.2

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.0

2 years ago