@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 +9 -0
- package/dist/index.js +1 -0
- package/package.json +1 -1
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
|
});
|