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.
- package/dist/{external-C5ou1-pj.js → external-DZHHBSOL.js} +1 -1
- package/dist/index.js +5 -2
- package/dist/{migrate-CMuH_u5D.js → migrate-B8vI88KN.js} +1 -1
- package/dist/package-DIC6v_iz.js +6 -0
- package/dist/plugins.js +1 -1
- package/dist/run.js +2 -2
- package/package.json +4 -4
- package/dist/package-BsNQT3Ra.js +0 -6
|
@@ -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-
|
|
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-
|
|
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({
|
|
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) }
|
package/dist/plugins.js
CHANGED
package/dist/run.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { logger, setSilent } from "./logger-9p9U7Sx7.js";
|
|
2
|
-
import { version } from "./package-
|
|
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-
|
|
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.
|
|
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-
|
|
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.
|
|
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.
|
|
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",
|