{"_id":"@anymud/bun-plugin-dts","_rev":"1-b5e21cf80c846346b2721cc49ddf32d4","name":"@anymud/bun-plugin-dts","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.0":{"name":"@anymud/bun-plugin-dts","author":{"name":"Kyle Tse","email":"shtse8@gmail.com"},"version":"1.0.0","scripts":{"test":"bun test","build":"bun build.ts"},"description":"This plugin for Bun.build leverages `dts-bundle-generator` to automatically generate TypeScript definition files (`.d.ts`) for your Bun projects. It simplifies the process of creating and managing TypeScript definitions, ensuring your Bun-based applicatio","license":"MIT","repository":{"type":"git","url":"git+https://github.com/anymud/bun-plugin-dts.git"},"private":false,"sideEffects":false,"exports":{".":{"import":"./dist/index.js"}},"module":"dist/index.js","types":"dist/index.d.ts","type":"module","dependencies":{"dts-bundle-generator":"^9.3.1","get-tsconfig":"^4.7.2","consola":"^3.2.3"},"devDependencies":{"@types/bun":"latest"},"peerDependencies":{"typescript":"^5.0.0"},"keywords":[],"_id":"@anymud/bun-plugin-dts@1.0.0","gitHead":"159a23b29baa63d6cd5c64fcafefbe3cbdecf058","bugs":{"url":"https://github.com/anymud/bun-plugin-dts/issues"},"homepage":"https://github.com/anymud/bun-plugin-dts#readme","_nodeVersion":"21.6.2","_npmVersion":"10.2.4","dist":{"integrity":"sha512-WeGscaOwVMPV8+4U7TAEz+/R9xn7C3YXnmDJ8oDanp0ijMJCyTvA2WflWd+Fd0IUG12KOmW7bN2sd94NuKiiWA==","shasum":"8039f99476c4fcbcfded33842577663bcb63eefc","tarball":"https://registry.npmjs.org/@anymud/bun-plugin-dts/-/bun-plugin-dts-1.0.0.tgz","fileCount":4,"unpackedSize":4203,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBkWCHtwGjgdMm+UBQABFsfkbJnuNhLIToGQaFLs6PFpAiEA/F1q369yjWNBtgcCReIjtRhSDv84HLNA6Yy98Ks5D+0="}]},"_npmUser":{"name":"shtse8","email":"shtse8@gmail.com"},"directories":{},"maintainers":[{"name":"shtse8","email":"shtse8@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bun-plugin-dts_1.0.0_1708947051172_0.2536443350152935"},"_hasShrinkwrap":false},"1.0.2":{"name":"@anymud/bun-plugin-dts","author":{"name":"Kyle Tse","email":"shtse8@gmail.com"},"version":"1.0.2","scripts":{"test":"bun test","build":"bun build.ts"},"description":"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","license":"MIT","repository":{"type":"git","url":"git+https://github.com/anymud/bun-plugin-dts.git"},"private":false,"sideEffects":false,"exports":{".":{"import":"./dist/index.js"}},"module":"dist/index.js","types":"dist/index.d.ts","type":"module","dependencies":{"dts-bundle-generator":"^9.3.1","get-tsconfig":"^4.7.2","consola":"^3.2.3"},"devDependencies":{"@types/bun":"latest"},"peerDependencies":{"typescript":"^5.0.0"},"keywords":["bun","bun-plugins","typescript","dts","dts-generator","type-definitions","typescript-definitions","bun-build-tool","automatic-dts","typescript-plugin","bun-typescript","definition-files","code-generation","bun-build-plugin","bun-development","bun-javascript","js-to-ts","bun-js","typescript-support","bun-build-system"],"_id":"@anymud/bun-plugin-dts@1.0.2","gitHead":"e4ef6ec132ec83c258a2309e558dd8ec76078f8c","bugs":{"url":"https://github.com/anymud/bun-plugin-dts/issues"},"homepage":"https://github.com/anymud/bun-plugin-dts#readme","_nodeVersion":"21.6.2","_npmVersion":"10.2.4","dist":{"integrity":"sha512-qm3RdYoBMUtOtXjI4Q/CPmk14sGDPUUNw7gDMj61VtL+/Gd13NS3fMfmCv/vVM4yY86EhFHN1+S2oxI4f1/ByQ==","shasum":"2d52ec76648750658042ad6f6971ff65b91772fd","tarball":"https://registry.npmjs.org/@anymud/bun-plugin-dts/-/bun-plugin-dts-1.0.2.tgz","fileCount":4,"unpackedSize":4730,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDCmd8TqLvZ0Npk4T7OkvHkRQcjQapjeZfeqVoZuKFA+gIgIBfRJhBKAzoJr5s0ekvzjFZ7sqi+HBKVO1DKD8q8GA4="}]},"_npmUser":{"name":"shtse8","email":"shtse8@gmail.com"},"directories":{},"maintainers":[{"name":"shtse8","email":"shtse8@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bun-plugin-dts_1.0.2_1708947570921_0.3703633241308979"},"_hasShrinkwrap":false}},"time":{"created":"2024-02-26T11:30:51.073Z","1.0.0":"2024-02-26T11:30:51.339Z","modified":"2024-02-26T11:39:31.498Z","1.0.2":"2024-02-26T11:39:31.054Z"},"maintainers":[{"name":"shtse8","email":"shtse8@gmail.com"}],"description":"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","homepage":"https://github.com/anymud/bun-plugin-dts#readme","keywords":["bun","bun-plugins","typescript","dts","dts-generator","type-definitions","typescript-definitions","bun-build-tool","automatic-dts","typescript-plugin","bun-typescript","definition-files","code-generation","bun-build-plugin","bun-development","bun-javascript","js-to-ts","bun-js","typescript-support","bun-build-system"],"repository":{"type":"git","url":"git+https://github.com/anymud/bun-plugin-dts.git"},"author":{"name":"Kyle Tse","email":"shtse8@gmail.com"},"bugs":{"url":"https://github.com/anymud/bun-plugin-dts/issues"},"license":"MIT","readme":"# @anymud/bun-plugin-dts\n\nThis 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.\n\n## Features\n\n- **Automatic `.d.ts` File Generation**: Generates definition files for your project automatically.\n- **Seamless Bun Integration**: Works effortlessly within the Bun ecosystem.\n- **Custom Configuration**: Offers customizable settings to fit your project's needs.\n\n## Installation\n\nInstall the plugin in your project directory:\n\n```sh\nbun add -D @anymud/bun-plugin-dts\n```\n\n## Usage\n\nTo 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.\n\n```js\nimport dts from '@anymud/bun-plugin-dts';\n\nconst distPath = './dist'; // Define your distribution path\n\nconst result = await Bun.build({\n    entrypoints: ['./src/index.ts'],\n    outdir: distPath,\n    external: ['*'], // Specify external modules to be excluded from the bundle\n    plugins: [dts()], // Use the dts plugin\n    root: './src', // Set the root directory\n});\n```\n\n### Configuration Options\n\nWhen 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:\n\n```js\ndts({\n  // Configuration options for dts-bundle-generator\n});\n```\n\n**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.\n\n## Contributing\n\nWe 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.\n\n## License\n\n[MIT](LICENSE) © AnyMud","readmeFilename":"README.md"}