tsdown 0.5.7 → 0.5.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/{config.d-zCyRCdco.d.ts → config.d-BB68aL5b.d.ts} +1 -1
- package/dist/config.d.ts +2 -2
- package/dist/index.d.ts +3 -3
- package/dist/index.js +2 -9
- package/dist/{migrate-CAxpGo3J.js → migrate-DynPUYzO.js} +1 -1
- package/dist/package-DJ0bMKNl.js +6 -0
- package/dist/{plugins.d-DtLTz4jh.d.ts → plugins.d-4au0qSn9.d.ts} +1 -1
- package/dist/plugins.d.ts +1 -1
- package/dist/run.js +2 -2
- package/package.json +14 -14
- package/dist/package-Bvw78lhP.js +0 -6
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { E as External } from './plugins.d-
|
|
1
|
+
import { E as External } from './plugins.d-4au0qSn9.js';
|
|
2
2
|
import { Options as Options$3 } from 'publint';
|
|
3
3
|
import { InputOptions, ModuleFormat, OutputOptions, InternalModuleFormat } from 'rolldown';
|
|
4
4
|
import { Options as Options$1 } from 'unplugin-isolated-decl';
|
package/dist/config.d.ts
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { O as Options, R as ResolvedOptions } from './config.d-
|
|
2
|
-
export { C as Config, d as defineConfig } from './config.d-
|
|
1
|
+
import { O as Options, R as ResolvedOptions } from './config.d-BB68aL5b.js';
|
|
2
|
+
export { C as Config, d as defineConfig } from './config.d-BB68aL5b.js';
|
|
3
3
|
import { ConsolaInstance } from 'consola';
|
|
4
|
-
import './plugins.d-
|
|
4
|
+
import './plugins.d-4au0qSn9.js';
|
|
5
5
|
import 'pkg-types';
|
|
6
6
|
import 'rolldown';
|
|
7
7
|
import 'publint';
|
package/dist/index.js
CHANGED
|
@@ -327,7 +327,6 @@ function normalizeFormat(format) {
|
|
|
327
327
|
}
|
|
328
328
|
});
|
|
329
329
|
}
|
|
330
|
-
let loaded = false;
|
|
331
330
|
async function loadConfigFile(options) {
|
|
332
331
|
let { config: filePath } = options;
|
|
333
332
|
if (filePath === false) return [[]];
|
|
@@ -342,7 +341,6 @@ async function loadConfigFile(options) {
|
|
|
342
341
|
cwd = path.dirname(filePath);
|
|
343
342
|
} else cwd = resolved;
|
|
344
343
|
}
|
|
345
|
-
const nativeLoader = !loaded && process.features.typescript;
|
|
346
344
|
const { config, sources } = await loadConfig({
|
|
347
345
|
sources: overrideConfig ? [{
|
|
348
346
|
files: filePath,
|
|
@@ -365,13 +363,8 @@ async function loadConfigFile(options) {
|
|
|
365
363
|
rewrite: (config$1) => config$1?.tsdown
|
|
366
364
|
}],
|
|
367
365
|
cwd,
|
|
368
|
-
defaults: {}
|
|
369
|
-
|
|
370
|
-
loader: nativeLoader ? "native" : "bundle-require",
|
|
371
|
-
fallbackLoaders: [...nativeLoader ? ["bundle-require"] : [], "jiti"],
|
|
372
|
-
cache: loaded ? false : null
|
|
373
|
-
}
|
|
374
|
-
}).finally(() => loaded = true);
|
|
366
|
+
defaults: {}
|
|
367
|
+
});
|
|
375
368
|
if (sources.length > 0) logger.info(`Using tsdown config: ${pc.underline(sources.join(", "))}`);
|
|
376
369
|
const file = sources[0];
|
|
377
370
|
return [toArray(config), file];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PackageJson } from 'pkg-types';
|
|
2
|
-
import {
|
|
2
|
+
import { InputOptions, Plugin } from 'rolldown';
|
|
3
3
|
|
|
4
4
|
type External = InputOptions["external"];
|
|
5
5
|
declare function ExternalPlugin(pkg?: PackageJson, skipNodeModulesBundle?: boolean): Plugin;
|
package/dist/plugins.d.ts
CHANGED
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-DJ0bMKNl.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-DynPUYzO.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.9",
|
|
4
4
|
"description": "An even faster bundler powered by Rolldown.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -48,32 +48,32 @@
|
|
|
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.3",
|
|
52
52
|
"rolldown": "^1.0.0-beta.3",
|
|
53
|
-
"rollup": "^4.
|
|
53
|
+
"rollup": "^4.34.4",
|
|
54
54
|
"rollup-plugin-dts": "^6.1.1",
|
|
55
55
|
"tinyglobby": "^0.2.10",
|
|
56
|
-
"unconfig": "^0.
|
|
57
|
-
"unplugin-isolated-decl": "^0.
|
|
58
|
-
"unplugin-unused": "^0.
|
|
56
|
+
"unconfig": "^7.0.0",
|
|
57
|
+
"unplugin-isolated-decl": "^0.11.0",
|
|
58
|
+
"unplugin-unused": "^0.4.1"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
|
-
"@sxzz/eslint-config": "^5.0.
|
|
62
|
-
"@sxzz/prettier-config": "^2.1.
|
|
63
|
-
"@sxzz/test-utils": "^0.
|
|
61
|
+
"@sxzz/eslint-config": "^5.0.1",
|
|
62
|
+
"@sxzz/prettier-config": "^2.1.2",
|
|
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.
|
|
67
|
-
"bumpp": "^10.0.
|
|
66
|
+
"@types/node": "^22.13.1",
|
|
67
|
+
"bumpp": "^10.0.2",
|
|
68
68
|
"eslint": "^9.19.0",
|
|
69
|
-
"oxc-transform": "^0.48.
|
|
69
|
+
"oxc-transform": "^0.48.2",
|
|
70
70
|
"prettier": "^3.4.2",
|
|
71
71
|
"tinyexec": "^0.3.2",
|
|
72
72
|
"tsup": "^8.3.6",
|
|
73
73
|
"tsx": "^4.19.2",
|
|
74
74
|
"typescript": "~5.7.3",
|
|
75
|
-
"unplugin-ast": "^0.
|
|
76
|
-
"vitest": "^3.0.
|
|
75
|
+
"unplugin-ast": "^0.14.0",
|
|
76
|
+
"vitest": "^3.0.5"
|
|
77
77
|
},
|
|
78
78
|
"engines": {
|
|
79
79
|
"node": ">=18.0.0"
|