tsdown 0.7.1 → 0.7.2
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
|
@@ -387,6 +387,7 @@ async function buildSingle(config) {
|
|
|
387
387
|
async function rebuild(first) {
|
|
388
388
|
const startTime = performance.now();
|
|
389
389
|
if (clean) await cleanOutDir(outDir, clean);
|
|
390
|
+
let hasErrors = false;
|
|
390
391
|
await Promise.all(format.map(async (format$1) => {
|
|
391
392
|
const inputOptions = await mergeUserOptions({
|
|
392
393
|
input: entry,
|
|
@@ -417,12 +418,22 @@ async function buildSingle(config) {
|
|
|
417
418
|
entryFileNames: `[name].${extension}`,
|
|
418
419
|
chunkFileNames: `[name]-[hash].${extension}`
|
|
419
420
|
}, config.outputOptions, [format$1]);
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
421
|
+
try {
|
|
422
|
+
await build$1({
|
|
423
|
+
...inputOptions,
|
|
424
|
+
output: outputOptions
|
|
425
|
+
});
|
|
426
|
+
if (config.dts && config.bundleDts) await bundleDts(config, extension, format$1);
|
|
427
|
+
} catch (error) {
|
|
428
|
+
if (watch) {
|
|
429
|
+
logger.error(error);
|
|
430
|
+
hasErrors = true;
|
|
431
|
+
return;
|
|
432
|
+
}
|
|
433
|
+
throw error;
|
|
434
|
+
}
|
|
425
435
|
}));
|
|
436
|
+
if (hasErrors) return;
|
|
426
437
|
if (config.publint) if (pkg) await publint(pkg);
|
|
427
438
|
else logger.warn("publint is enabled but package.json is not found");
|
|
428
439
|
logger.success(`${first ? "Build" : "Rebuild"} complete in ${Math.round(performance.now() - startTime)}ms`);
|
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-B6NtTdMC.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-Bstk6m9b.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.
|
|
3
|
+
"version": "0.7.2",
|
|
4
4
|
"description": "An even faster bundler powered by Rolldown.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"debug": "^4.4.0",
|
|
62
62
|
"diff": "^7.0.0",
|
|
63
63
|
"find-up-simple": "^1.0.1",
|
|
64
|
-
"oxc-resolver": "^5.0
|
|
64
|
+
"oxc-resolver": "^5.1.0",
|
|
65
65
|
"rolldown": "^1.0.0-beta.7",
|
|
66
66
|
"rolldown-plugin-dts": "https://pkg.pr.new/sxzz/rolldown-plugin-dts@7b446ed",
|
|
67
67
|
"tinyglobby": "^0.2.12",
|
|
@@ -74,10 +74,10 @@
|
|
|
74
74
|
"@sxzz/test-utils": "^0.5.4",
|
|
75
75
|
"@types/debug": "^4.1.12",
|
|
76
76
|
"@types/diff": "^7.0.2",
|
|
77
|
-
"@types/node": "^22.13.
|
|
77
|
+
"@types/node": "^22.13.17",
|
|
78
78
|
"bumpp": "^10.1.0",
|
|
79
79
|
"eslint": "^9.23.0",
|
|
80
|
-
"oxc-transform": "^0.
|
|
80
|
+
"oxc-transform": "^0.62.0",
|
|
81
81
|
"pkg-types": "^2.1.0",
|
|
82
82
|
"prettier": "^3.5.3",
|
|
83
83
|
"publint": "^0.3.9",
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"tsx": "^4.19.3",
|
|
87
87
|
"typescript": "~5.8.2",
|
|
88
88
|
"unplugin-ast": "^0.14.4",
|
|
89
|
-
"unplugin-unused": "^0.4.
|
|
89
|
+
"unplugin-unused": "^0.4.4",
|
|
90
90
|
"vite": "^6.2.4",
|
|
91
91
|
"vitest": "^3.1.1"
|
|
92
92
|
},
|