rolldown-plugin-dts 0.24.0-beta.2 → 0.24.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.
Files changed (2) hide show
  1. package/dist/index.mjs +3 -4
  2. package/package.json +4 -7
package/dist/index.mjs CHANGED
@@ -1,5 +1,3 @@
1
- import { createRequire as __cjs_createRequire } from "node:module";
2
- const __cjs_require = __cjs_createRequire(import.meta.url);
3
1
  import { a as RE_JSON, c as RE_TS, d as filename_js_to_dts, f as filename_to_dts, i as RE_JS, l as RE_VUE, m as resolveTemplateFn, n as RE_DTS, o as RE_NODE_MODULES, p as replaceTemplateName, r as RE_DTS_MAP, s as RE_ROLLDOWN_RUNTIME, t as RE_CSS, u as filename_dts_to } from "./filename-DQnUJlio.mjs";
4
2
  import { createContext, globalContext, invalidateContextFile } from "./tsc-context.mjs";
5
3
  import { createDebug } from "obug";
@@ -12,7 +10,6 @@ import { fork, spawn } from "node:child_process";
12
10
  import { existsSync } from "node:fs";
13
11
  import { mkdtemp, readFile, rm } from "node:fs/promises";
14
12
  import path from "node:path";
15
- const picomatch = __cjs_require("picomatch");
16
13
  import { ResolverFactory, isolatedDeclarationSync } from "rolldown/experimental";
17
14
  import { tmpdir } from "node:os";
18
15
  import process from "node:process";
@@ -782,7 +779,9 @@ async function runTsgo(rootDir, tsconfig, sourcemap, tsgoPath) {
782
779
  const debug$2 = createDebug("rolldown-plugin-dts:generate");
783
780
  const WORKER_URL = "./tsc-worker.mjs";
784
781
  function createGeneratePlugin({ entry, tsconfig, tsconfigRaw, build, incremental, cwd, oxc, emitDtsOnly, vue, tsMacro, parallel, eager, tsgo, newContext, emitJs, sourcemap }) {
785
- const entryMatcher = entry ? picomatch(entry, { ignore: entry.filter((p) => p.startsWith("!")).map((p) => p.slice(1)) }) : void 0;
782
+ const entryIncludes = entry?.filter((p) => p[0] !== "!");
783
+ const entryIgnores = entry?.filter((p) => p[0] === "!").map((p) => p.slice(1));
784
+ const entryMatcher = entry ? (file) => entryIncludes.some((p) => path.matchesGlob(file, p)) && !entryIgnores.some((p) => path.matchesGlob(file, p)) : void 0;
786
785
  const dtsMap = /* @__PURE__ */ new Map();
787
786
  /**
788
787
  * A map of input id to output file name
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "rolldown-plugin-dts",
3
3
  "type": "module",
4
- "version": "0.24.0-beta.2",
4
+ "version": "0.24.1",
5
5
  "description": "A Rolldown plugin to generate and bundle dts files.",
6
6
  "author": "Kevin Deng <sxzz@sxzz.moe>",
7
7
  "license": "MIT",
@@ -38,7 +38,7 @@
38
38
  "access": "public"
39
39
  },
40
40
  "engines": {
41
- "node": ">=22.18.0"
41
+ "node": "^22.18.0 || >=24.0.0"
42
42
  },
43
43
  "peerDependencies": {
44
44
  "@ts-macro/tsc": "^0.3.6",
@@ -68,9 +68,8 @@
68
68
  "ast-kit": "^3.0.0-beta.1",
69
69
  "birpc": "^4.0.0",
70
70
  "dts-resolver": "^2.1.3",
71
- "get-tsconfig": "^5.0.0-beta.5",
72
- "obug": "^2.1.1",
73
- "picomatch": "^4.0.4"
71
+ "get-tsconfig": "5.0.0-beta.5",
72
+ "obug": "^2.1.1"
74
73
  },
75
74
  "devDependencies": {
76
75
  "@babel/types": "^8.0.0-rc.4",
@@ -79,7 +78,6 @@
79
78
  "@sxzz/prettier-config": "^2.3.1",
80
79
  "@sxzz/test-utils": "^0.5.18",
81
80
  "@types/node": "^25.6.0",
82
- "@types/picomatch": "^4.0.3",
83
81
  "@typescript/native-preview": "7.0.0-dev.20260430.1",
84
82
  "@volar/typescript": "^2.4.28",
85
83
  "@vue/language-core": "^3.2.7",
@@ -91,7 +89,6 @@
91
89
  "rolldown": "^1.0.0-rc.18",
92
90
  "rolldown-plugin-require-cjs": "^0.4.0",
93
91
  "rollup-plugin-dts": "^6.4.1",
94
- "tinyglobby": "^0.2.16",
95
92
  "tsdown": "^0.22.0-beta.2",
96
93
  "tsnapi": "^0.3.2",
97
94
  "typescript": "^6.0.3",