
Company News
Jerod Santo Joins Socket as Head of Media
Allow myself to introduce... myself.
@anymud/bun-plugin-dts
Advanced tools
This Bun.build plugin leverages `dts-bundle-generator` to automatically generate TypeScript definition files (`.d.ts`) for projects. It's designed to make your development process smoother by ensuring your project is strongly typed with TypeScript support
This Bun.build plugin leverages dts-bundle-generator to automatically generate TypeScript definition files (.d.ts) for projects. It's designed to make your development process smoother by ensuring your project is strongly typed with TypeScript support.
.d.ts File Generation: Generates definition files for your project automatically.Install the plugin in your project directory:
bun add -D @anymud/bun-plugin-dts
To use @anymud/bun-plugin-dts in your project, you need to configure it as part of your build process in Bun. Below is an example configuration that demonstrates how to use this plugin within the Bun.build() API.
import dts from '@anymud/bun-plugin-dts';
const distPath = './dist'; // Define your distribution path
const result = await Bun.build({
entrypoints: ['./src/index.ts'],
outdir: distPath,
external: ['*'], // Specify external modules to be excluded from the bundle
plugins: [dts()], // Use the dts plugin
root: './src', // Set the root directory
});
When configuring @anymud/bun-plugin-dts, you can pass options to customize the behavior of the plugin. Here's a basic template you can modify according to your needs:
dts({
// Configuration options for dts-bundle-generator
});
Note: Currently, dts-bundle-generator specific options can be used here. Please refer to the dts-bundle-generator documentation for a complete list of available options.
We welcome contributions of all kinds from the community! If you're interested in helping improve @anymud/bun-plugin-dts, please fork the repository and submit a pull request with your changes. For substantial changes, please open an issue first to discuss what you'd like to contribute.
MIT © AnyMud
FAQs
This Bun.build plugin leverages `dts-bundle-generator` to automatically generate TypeScript definition files (`.d.ts`) for projects. It's designed to make your development process smoother by ensuring your project is strongly typed with TypeScript support
The npm package @anymud/bun-plugin-dts receives a total of 6 weekly downloads. As such, @anymud/bun-plugin-dts popularity was classified as not popular.
We found that @anymud/bun-plugin-dts demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.

Company News
Allow myself to introduce... myself.

Research
/Security News
A Twitch browser extension on Chrome and Firefox forwards users’ live OAuth session tokens through proxies controlled by a Russian bot service.

Security News
Anthropic found biased reasoning and recklessness drove Claude Mythos 5 to publish malware on PyPI and compromise a security vendor.