rolldown-plugin-dts 0.11.4 → 0.12.0
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/README.md +1 -1
- package/dist/index.js +4 -3
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@ A Rolldown plugin to generate and bundle dts files.
|
|
|
6
6
|
|
|
7
7
|
## Install
|
|
8
8
|
|
|
9
|
-
⚠️ Requires `rolldown@1.0.0-beta.8-commit.
|
|
9
|
+
⚠️ Requires `rolldown@1.0.0-beta.8-commit.2a5c6a6` (which is canary) or later.
|
|
10
10
|
|
|
11
11
|
```bash
|
|
12
12
|
npm i rolldown-plugin-dts
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { createRequire } from "node:module";
|
|
1
2
|
import path from "node:path";
|
|
2
3
|
import process from "node:process";
|
|
3
4
|
import Debug from "debug";
|
|
@@ -6,8 +7,7 @@ import _generate from "@babel/generator";
|
|
|
6
7
|
import { parse } from "@babel/parser";
|
|
7
8
|
import * as t from "@babel/types";
|
|
8
9
|
import { isDeclarationType, isTypeOf } from "ast-kit";
|
|
9
|
-
import { isolatedDeclaration } from "rolldown/experimental";
|
|
10
|
-
import { createRequire } from "node:module";
|
|
10
|
+
import { ResolverFactory, isolatedDeclaration } from "rolldown/experimental";
|
|
11
11
|
import { createResolver } from "dts-resolver";
|
|
12
12
|
|
|
13
13
|
//#region src/dts-input.ts
|
|
@@ -891,7 +891,8 @@ function createGeneratePlugin({ compilerOptions = {}, isolatedDeclarations, emit
|
|
|
891
891
|
function createDtsResolvePlugin({ tsconfig, resolve }) {
|
|
892
892
|
const resolver = createResolver({
|
|
893
893
|
tsconfig,
|
|
894
|
-
resolveNodeModules: !!resolve
|
|
894
|
+
resolveNodeModules: !!resolve,
|
|
895
|
+
ResolverFactory
|
|
895
896
|
});
|
|
896
897
|
return {
|
|
897
898
|
name: "rolldown-plugin-dts:resolve",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rolldown-plugin-dts",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.0",
|
|
4
4
|
"description": "A Rolldown plugin to bundle dts files",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"@babel/types": "^7.27.1",
|
|
47
47
|
"ast-kit": "^2.0.0",
|
|
48
48
|
"debug": "^4.4.0",
|
|
49
|
-
"dts-resolver": "^
|
|
49
|
+
"dts-resolver": "^2.0.1",
|
|
50
50
|
"get-tsconfig": "^4.10.0"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
@@ -64,10 +64,10 @@
|
|
|
64
64
|
"eslint": "^9.26.0",
|
|
65
65
|
"estree-walker": "^3.0.3",
|
|
66
66
|
"prettier": "^3.5.3",
|
|
67
|
-
"rolldown": "
|
|
67
|
+
"rolldown": "canary",
|
|
68
68
|
"rollup-plugin-dts": "^6.2.1",
|
|
69
69
|
"tinyglobby": "^0.2.13",
|
|
70
|
-
"tsdown": "^0.11.
|
|
70
|
+
"tsdown": "^0.11.4",
|
|
71
71
|
"tsx": "^4.19.4",
|
|
72
72
|
"typescript": "^5.8.3",
|
|
73
73
|
"vitest": "^3.1.3",
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"node": ">=20.18.0"
|
|
79
79
|
},
|
|
80
80
|
"resolutions": {
|
|
81
|
-
"rolldown": "
|
|
81
|
+
"rolldown": "canary",
|
|
82
82
|
"rolldown-plugin-dts": "workspace:*"
|
|
83
83
|
},
|
|
84
84
|
"prettier": "@sxzz/prettier-config",
|