tsdown 0.6.7 → 0.6.9
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/{dts-Df2nwp_8.js → dts-1peUIB3t.js} +1 -1
- package/dist/index.js +2 -2
- package/dist/{migrate-DKlBgcvw.js → migrate-BE_ZyLSg.js} +1 -1
- package/dist/package-7shDmypH.js +6 -0
- package/dist/plugins.js +1 -1
- package/dist/run.js +2 -2
- package/package.json +12 -12
- package/dist/package-DFHU_6-V.js +0 -6
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 "./dts-
|
|
2
|
+
import { ExternalPlugin, bundleDts, debounce, fsExists, fsRemove, getTempDtsDir, lowestCommonAncestor, toArray } from "./dts-1peUIB3t.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";
|
|
@@ -374,12 +374,12 @@ const dirname$1 = path.dirname(fileURLToPath(import.meta.url));
|
|
|
374
374
|
const pkgRoot = path.resolve(dirname$1, "..");
|
|
375
375
|
async function buildSingle(config) {
|
|
376
376
|
const { entry, external, plugins: userPlugins, outDir, format, clean, platform, alias, treeshake, sourcemap, dts, minify, watch, unused, target, define, shims, fixedExtension, onSuccess } = config;
|
|
377
|
-
if (clean) await cleanOutDir(outDir, clean);
|
|
378
377
|
const pkg = await readPackageJson(process.cwd());
|
|
379
378
|
await rebuild(true);
|
|
380
379
|
if (watch) return () => rebuild();
|
|
381
380
|
async function rebuild(first) {
|
|
382
381
|
const startTime = performance.now();
|
|
382
|
+
if (clean) await cleanOutDir(outDir, clean);
|
|
383
383
|
await Promise.all(format.map(async (format$1) => {
|
|
384
384
|
const inputOptions = await mergeUserOptions({
|
|
385
385
|
input: entry,
|
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-7shDmypH.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-BE_ZyLSg.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.6.
|
|
3
|
+
"version": "0.6.9",
|
|
4
4
|
"description": "An even faster bundler powered by Rolldown.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -57,38 +57,38 @@
|
|
|
57
57
|
"ansis": "^3.17.0",
|
|
58
58
|
"cac": "^6.7.14",
|
|
59
59
|
"chokidar": "^4.0.3",
|
|
60
|
-
"consola": "^3.4.
|
|
60
|
+
"consola": "^3.4.1",
|
|
61
61
|
"debug": "^4.4.0",
|
|
62
62
|
"diff": "^7.0.0",
|
|
63
63
|
"oxc-resolver": "^5.0.0",
|
|
64
64
|
"pkg-types": "^2.1.0",
|
|
65
|
-
"rolldown": "1.0.0-beta.
|
|
66
|
-
"rollup": "^4.
|
|
65
|
+
"rolldown": "1.0.0-beta.6",
|
|
66
|
+
"rollup": "^4.36.0",
|
|
67
67
|
"rollup-plugin-dts": "^6.1.1",
|
|
68
68
|
"tinyglobby": "^0.2.12",
|
|
69
69
|
"unconfig": "^7.3.1",
|
|
70
|
-
"unplugin-isolated-decl": "^0.13.
|
|
70
|
+
"unplugin-isolated-decl": "^0.13.3"
|
|
71
71
|
},
|
|
72
72
|
"devDependencies": {
|
|
73
|
-
"@sxzz/eslint-config": "^6.0.
|
|
73
|
+
"@sxzz/eslint-config": "^6.0.2",
|
|
74
74
|
"@sxzz/prettier-config": "^2.2.1",
|
|
75
|
-
"@sxzz/test-utils": "^0.5.
|
|
75
|
+
"@sxzz/test-utils": "^0.5.2",
|
|
76
76
|
"@types/debug": "^4.1.12",
|
|
77
77
|
"@types/diff": "^7.0.1",
|
|
78
78
|
"@types/node": "^22.13.10",
|
|
79
|
-
"bumpp": "^10.0
|
|
79
|
+
"bumpp": "^10.1.0",
|
|
80
80
|
"eslint": "^9.22.0",
|
|
81
|
-
"oxc-transform": "^0.
|
|
81
|
+
"oxc-transform": "^0.60.0",
|
|
82
82
|
"prettier": "^3.5.3",
|
|
83
83
|
"publint": "^0.3.9",
|
|
84
84
|
"tinyexec": "^0.3.2",
|
|
85
85
|
"tsup": "^8.4.0",
|
|
86
86
|
"tsx": "^4.19.3",
|
|
87
87
|
"typescript": "~5.8.2",
|
|
88
|
-
"unplugin-ast": "^0.14.
|
|
88
|
+
"unplugin-ast": "^0.14.3",
|
|
89
89
|
"unplugin-unused": "^0.4.3",
|
|
90
|
-
"vite": "^6.2.
|
|
91
|
-
"vitest": "^3.0.
|
|
90
|
+
"vite": "^6.2.2",
|
|
91
|
+
"vitest": "^3.0.9"
|
|
92
92
|
},
|
|
93
93
|
"engines": {
|
|
94
94
|
"node": ">=18.0.0"
|