@bunup/dts 0.14.35 → 0.14.36

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
@@ -61,6 +61,15 @@ type GenerateDtsOptions = {
61
61
  * Ensure `@typescript/native-preview` is installed as dev dependency: `bun add --dev @typescript/native-preview`
62
62
  */
63
63
  tsgo?: boolean;
64
+ /**
65
+ * The root directory for the project.
66
+ *
67
+ * It is computed to be the first common ancestor of all entrypoint files.
68
+ *
69
+ * @example
70
+ * root: './src'
71
+ */
72
+ root?: string;
64
73
  };
65
74
  type GenerateDtsResultFile = {
66
75
  /**
package/dist/index.js CHANGED
@@ -656,6 +656,7 @@ async function generateDts(entrypoints, options = {}) {
656
656
  plugins: [fakeJsPlugin],
657
657
  packages: "external",
658
658
  minify: options.minify,
659
+ root: options.root,
659
660
  throw: false,
660
661
  tsconfig: options.preferredTsconfig ? path2.resolve(cwd, options.preferredTsconfig) : undefined
661
662
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bunup/dts",
3
- "version": "0.14.35",
3
+ "version": "0.14.36",
4
4
  "description": "An extremely fast TypeScript declaration bundler built on Bun's native bundler.",
5
5
  "homepage": "https://github.com/bunup/dts#readme",
6
6
  "bugs": {