Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bun-plugin-dts-auto

Package Overview
Dependencies
Maintainers
0
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bun-plugin-dts-auto

  • 0.20.6
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
53
decreased by-78.97%
Maintainers
0
Weekly downloads
 
Created
Source

bun-plugin-dts-auto

Social Card of Bun Plugin DTS Auto npm version GitHub Actions Commitizen friendly npm downloads

This Bun plugin generates dts files for your TypeScript projects.

Features

  • Automatic & fast dts generation
  • Powered by oxc-transform & isolatedDeclarations
  • Monorepo support

Usage

bun install -d bun-plugin-dts-auto

You may now use the plugin:

import dts from 'bun-plugin-dts-auto'
// if you prefer named imports
// import { dts } from 'bun-plugin-dts-auto'

await Bun.build({
  root: './src',
  entrypoints: [
    'src/index.ts',
  ],
  outdir: './dist',
  plugins: [
    dts({
      cwd: process.cwd(), // optional
      root: './src', // optional, default: 'src'
      outdir: './dist/types', // optional, default: './dist'
      files: ['src/index.ts'], // optional, if not specified, all .ts files in root will be processed
    }),
  ],
})

console.log('Build complete ✅')

API

The dts plugin accepts an options object with the following properties:

  • cwd: The current working directory (optional, default: process.cwd())
  • root: The root directory of your TypeScript files (optional, default: 'src')
  • outdir: The output directory for generated declaration files (optional, default: './dist')
  • files: An array of file paths or a single file path to process (optional, if not specified, all .ts files in the root directory will be processed)

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 💙

FAQs

Package last updated on 08 Oct 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc