rolldown-plugin-dts 0.11.4 → 0.12.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/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.534fde3` (which is canary) or later.
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.11.4",
3
+ "version": "0.12.1",
4
4
  "description": "A Rolldown plugin to bundle dts files",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -28,7 +28,7 @@
28
28
  "access": "public"
29
29
  },
30
30
  "peerDependencies": {
31
- "rolldown": "^1.0.0-beta.8-commit.534fde3",
31
+ "rolldown": "^1.0.0-beta.8-commit.2a5c6a6",
32
32
  "typescript": "^5.0.0",
33
33
  "vue-tsc": "~2.2.0"
34
34
  },
@@ -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": "^1.2.0",
49
+ "dts-resolver": "^2.0.1",
50
50
  "get-tsconfig": "^4.10.0"
51
51
  },
52
52
  "devDependencies": {
@@ -55,19 +55,18 @@
55
55
  "@sxzz/test-utils": "^0.5.6",
56
56
  "@types/babel__generator": "^7.27.0",
57
57
  "@types/debug": "^4.1.12",
58
- "@types/diff": "^7.0.2",
59
58
  "@types/node": "^22.15.17",
60
59
  "@volar/typescript": "^2.4.13",
61
60
  "@vue/language-core": "^2.2.10",
62
61
  "bumpp": "^10.1.0",
63
- "diff": "^7.0.0",
62
+ "diff": "^8.0.0",
64
63
  "eslint": "^9.26.0",
65
64
  "estree-walker": "^3.0.3",
66
65
  "prettier": "^3.5.3",
67
- "rolldown": "nightly",
66
+ "rolldown": "canary",
68
67
  "rollup-plugin-dts": "^6.2.1",
69
68
  "tinyglobby": "^0.2.13",
70
- "tsdown": "^0.11.1",
69
+ "tsdown": "^0.11.5",
71
70
  "tsx": "^4.19.4",
72
71
  "typescript": "^5.8.3",
73
72
  "vitest": "^3.1.3",
@@ -78,7 +77,7 @@
78
77
  "node": ">=20.18.0"
79
78
  },
80
79
  "resolutions": {
81
- "rolldown": "nightly",
80
+ "rolldown": "canary",
82
81
  "rolldown-plugin-dts": "workspace:*"
83
82
  },
84
83
  "prettier": "@sxzz/prettier-config",