tsdown 0.5.9 → 0.5.10
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/index.js
CHANGED
|
@@ -6,8 +6,6 @@ import process from "node:process";
|
|
|
6
6
|
import { fileURLToPath } from "node:url";
|
|
7
7
|
import { build as build$1 } from "rolldown";
|
|
8
8
|
import { transformPlugin } from "rolldown/experimental";
|
|
9
|
-
import { IsolatedDecl } from "unplugin-isolated-decl";
|
|
10
|
-
import { Unused } from "unplugin-unused";
|
|
11
9
|
import { access, readdir, rm, stat } from "node:fs/promises";
|
|
12
10
|
import Debug from "debug";
|
|
13
11
|
import { glob } from "tinyglobby";
|
|
@@ -419,8 +417,8 @@ async function buildSingle(resolved) {
|
|
|
419
417
|
define,
|
|
420
418
|
plugins: [
|
|
421
419
|
(pkg || resolved.skipNodeModulesBundle) && ExternalPlugin(pkg, resolved.skipNodeModulesBundle),
|
|
422
|
-
unused && Unused.rolldown(unused === true ? {} : unused),
|
|
423
|
-
dts && IsolatedDecl.rolldown({
|
|
420
|
+
unused && (await import("unplugin-unused")).Unused.rolldown(unused === true ? {} : unused),
|
|
421
|
+
dts && (await import("unplugin-isolated-decl")).IsolatedDecl.rolldown({
|
|
424
422
|
...dts,
|
|
425
423
|
extraOutdir: resolved.bundleDts ? getTempDtsDir(format$1) : dts.extraOutdir
|
|
426
424
|
}),
|
package/dist/run.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { logger, setSilent } from "./logger-4bmpqibt.js";
|
|
2
|
-
import { version } from "./package-
|
|
2
|
+
import { version } from "./package-Dp7zahEJ.js";
|
|
3
3
|
import process from "node:process";
|
|
4
4
|
import { VERSION } from "rolldown";
|
|
5
5
|
import pc from "picocolors";
|
|
@@ -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-DHjaa9Qa.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.5.
|
|
3
|
+
"version": "0.5.10",
|
|
4
4
|
"description": "An even faster bundler powered by Rolldown.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -48,9 +48,9 @@
|
|
|
48
48
|
"diff": "^7.0.0",
|
|
49
49
|
"picocolors": "^1.1.1",
|
|
50
50
|
"pkg-types": "^1.3.1",
|
|
51
|
-
"publint": "^0.3.
|
|
51
|
+
"publint": "^0.3.5",
|
|
52
52
|
"rolldown": "^1.0.0-beta.3",
|
|
53
|
-
"rollup": "^4.34.
|
|
53
|
+
"rollup": "^4.34.8",
|
|
54
54
|
"rollup-plugin-dts": "^6.1.1",
|
|
55
55
|
"tinyglobby": "^0.2.10",
|
|
56
56
|
"unconfig": "^7.0.0",
|
|
@@ -58,16 +58,16 @@
|
|
|
58
58
|
"unplugin-unused": "^0.4.1"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
|
-
"@sxzz/eslint-config": "^5.
|
|
62
|
-
"@sxzz/prettier-config": "^2.
|
|
61
|
+
"@sxzz/eslint-config": "^5.1.1",
|
|
62
|
+
"@sxzz/prettier-config": "^2.2.0",
|
|
63
63
|
"@sxzz/test-utils": "^0.5.1",
|
|
64
64
|
"@types/debug": "^4.1.12",
|
|
65
65
|
"@types/diff": "^7.0.1",
|
|
66
|
-
"@types/node": "^22.13.
|
|
67
|
-
"bumpp": "^10.0.
|
|
68
|
-
"eslint": "^9.
|
|
69
|
-
"oxc-transform": "^0.
|
|
70
|
-
"prettier": "^3.
|
|
66
|
+
"@types/node": "^22.13.4",
|
|
67
|
+
"bumpp": "^10.0.3",
|
|
68
|
+
"eslint": "^9.20.1",
|
|
69
|
+
"oxc-transform": "^0.51.0",
|
|
70
|
+
"prettier": "^3.5.1",
|
|
71
71
|
"tinyexec": "^0.3.2",
|
|
72
72
|
"tsup": "^8.3.6",
|
|
73
73
|
"tsx": "^4.19.2",
|