rolldown-plugin-dts 0.8.0 → 0.8.1
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.js +2 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { MagicStringAST } from "magic-string-ast";
|
|
2
2
|
import { parseSync } from "oxc-parser";
|
|
3
3
|
import path from "node:path";
|
|
4
|
+
import process from "node:process";
|
|
4
5
|
import { createResolver } from "dts-resolver";
|
|
5
6
|
import { getTsconfig, parseTsconfig } from "get-tsconfig";
|
|
6
7
|
import { isolatedDeclaration } from "oxc-transform";
|
|
@@ -579,6 +580,7 @@ function createGeneratePlugin({ tsconfig, compilerOptions, isolatedDeclarations,
|
|
|
579
580
|
...compilerOptions
|
|
580
581
|
};
|
|
581
582
|
} else if (typeof tsconfig === "string") {
|
|
583
|
+
tsconfig = path.resolve(cwd || process.cwd(), tsconfig);
|
|
582
584
|
const config = parseTsconfig(tsconfig);
|
|
583
585
|
compilerOptions = {
|
|
584
586
|
...config.compilerOptions,
|