bun-plugin-dtsx 0.21.11 → 0.21.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -10,7 +10,10 @@ declare interface PluginConfig extends DtsGenerationOption {
10
10
  }
11
11
  }
12
12
  }
13
- export declare function dts(options: PluginConfig = {}): BunPlugin;
13
+ export declare function dts(options: PluginConfig = {
14
+ root: './src',
15
+ outdir: './dist',
16
+ }): BunPlugin;
14
17
  declare function normalizeConfig(options: PluginConfig, build: PluginConfig['build']): DtsGenerationOption;
15
18
 
16
19
  export default dts;
package/dist/index.js CHANGED
@@ -1,7 +1,10 @@
1
1
  // @bun
2
2
  // src/index.ts
3
3
  import { generate } from "@stacksjs/dtsx";
4
- function dts(options = {}) {
4
+ function dts(options = {
5
+ root: "./src",
6
+ outdir: "./dist"
7
+ }) {
5
8
  return {
6
9
  name: "bun-plugin-dtsx",
7
10
  async setup(build) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bun-plugin-dtsx",
3
3
  "type": "module",
4
- "version": "0.21.11",
4
+ "version": "0.21.12",
5
5
  "description": "A Bun Bundler plugin that auto generates your DTS types extremely fast.",
6
6
  "author": "Chris Breuer <chris@ow3.org>",
7
7
  "license": "MIT",