tsdown 0.7.4 → 0.8.0-beta.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.
@@ -4,7 +4,7 @@ import { build } from "rolldown";
4
4
  import { access, rm } from "node:fs/promises";
5
5
  import Debug from "debug";
6
6
  import { ResolverFactory } from "oxc-resolver";
7
- import { dts } from "rolldown-plugin-types";
7
+ import { dts } from "rolldown-plugin-dts";
8
8
 
9
9
  //#region src/utils/fs.ts
10
10
  function fsExists(path$1) {
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineConfig } from "./config-0LDjKwZ7.js";
2
- import { ExternalPlugin, bundleDts, debounce, fsExists, fsRemove, getTempDtsDir, lowestCommonAncestor, toArray } from "./external-C5ou1-pj.js";
2
+ import { ExternalPlugin, bundleDts, debounce, fsExists, fsRemove, getTempDtsDir, lowestCommonAncestor, toArray } from "./external-DZHHBSOL.js";
3
3
  import { debug, logger, setSilent } from "./logger-9p9U7Sx7.js";
4
4
  import path from "node:path";
5
5
  import process from "node:process";
@@ -403,7 +403,10 @@ async function buildSingle(config) {
403
403
  ...dts,
404
404
  extraOutdir: config.bundleDts ? getTempDtsDir(format$1) : dts.extraOutdir
405
405
  }),
406
- !!target && transformPlugin({ target: target && (typeof target === "string" ? target : target.join(",")) }),
406
+ !!target && transformPlugin({
407
+ target: target && (typeof target === "string" ? target : target.join(",")),
408
+ exclude: /\.d\.[cm]?ts$/
409
+ }),
407
410
  userPlugins
408
411
  ],
409
412
  inject: { ...shims && getShimsInject(format$1, platform) }
@@ -1,4 +1,4 @@
1
- import { version } from "./package-BsNQT3Ra.js";
1
+ import { version } from "./package-DIC6v_iz.js";
2
2
  import process from "node:process";
3
3
  import { readFile, unlink, writeFile } from "node:fs/promises";
4
4
  import consola from "consola";
@@ -0,0 +1,6 @@
1
+
2
+ //#region package.json
3
+ var version = "0.8.0-beta.1";
4
+
5
+ //#endregion
6
+ export { version };
package/dist/plugins.js CHANGED
@@ -1,3 +1,3 @@
1
- import { ExternalPlugin, ResolveDtsPlugin } from "./external-C5ou1-pj.js";
1
+ import { ExternalPlugin, ResolveDtsPlugin } from "./external-DZHHBSOL.js";
2
2
 
3
3
  export { ExternalPlugin, ResolveDtsPlugin };
package/dist/run.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { logger, setSilent } from "./logger-9p9U7Sx7.js";
2
- import { version } from "./package-BsNQT3Ra.js";
2
+ import { version } from "./package-DIC6v_iz.js";
3
3
  import process from "node:process";
4
4
  import { VERSION } from "rolldown";
5
5
  import { dim } from "ansis";
@@ -16,7 +16,7 @@ cli.command("[...files]", "Bundle files", { ignoreOptionDefaultValue: true }).op
16
16
  await build$1(flags);
17
17
  });
18
18
  cli.command("migrate", "Migrate from tsup to tsdown").option("-c, --cwd <dir>", "Working directory").option("-d, --dry-run", "Dry run").action(async (args) => {
19
- const { migrate } = await import("./migrate-CMuH_u5D.js");
19
+ const { migrate } = await import("./migrate-B8vI88KN.js");
20
20
  await migrate(args);
21
21
  });
22
22
  async function runCLI() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tsdown",
3
- "version": "0.7.4",
3
+ "version": "0.8.0-beta.1",
4
4
  "description": "An even faster bundler powered by Rolldown.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -63,7 +63,7 @@
63
63
  "find-up-simple": "^1.0.1",
64
64
  "oxc-resolver": "^5.1.1",
65
65
  "rolldown": "^1.0.0-beta.7",
66
- "rolldown-plugin-types": "^0.0.0",
66
+ "rolldown-plugin-dts": "^0.1.0",
67
67
  "tinyglobby": "^0.2.12",
68
68
  "unconfig": "^7.3.1",
69
69
  "unplugin-isolated-decl": "^0.13.6"
@@ -76,7 +76,7 @@
76
76
  "@types/diff": "^7.0.2",
77
77
  "@types/node": "^22.14.0",
78
78
  "bumpp": "^10.1.0",
79
- "eslint": "^9.23.0",
79
+ "eslint": "^9.24.0",
80
80
  "oxc-transform": "^0.62.0",
81
81
  "pkg-types": "^2.1.0",
82
82
  "prettier": "^3.5.3",
@@ -84,7 +84,7 @@
84
84
  "tinyexec": "^1.0.1",
85
85
  "tsup": "^8.4.0",
86
86
  "tsx": "^4.19.3",
87
- "typescript": "~5.8.2",
87
+ "typescript": "~5.8.3",
88
88
  "unplugin-ast": "^0.14.4",
89
89
  "unplugin-unused": "^0.4.4",
90
90
  "vite": "^6.2.5",
@@ -1,6 +0,0 @@
1
-
2
- //#region package.json
3
- var version = "0.7.4";
4
-
5
- //#endregion
6
- export { version };