tsdown 0.11.4 → 0.11.6
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-CQUFL4vH.d.ts → config-DQE4wDWb.d.ts} +1 -1
- package/dist/config.d.ts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +3 -3
- package/dist/{migrate-CaE0IkIE.js → migrate-XHrcGQW7.js} +1 -1
- package/dist/{options-D9qjlfFP.d.ts → options-BPeORY5t.d.ts} +1 -1
- package/dist/package-CIiyZysA.js +5 -0
- package/dist/{plugins-BPU33dye.js → plugins-CPt-D0Cs.js} +1 -0
- package/dist/plugins.d.ts +1 -1
- package/dist/plugins.js +1 -1
- package/dist/run.js +2 -2
- package/package.json +6 -7
- package/dist/package-y1rDBz8S.js +0 -5
package/dist/config.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { UserConfig, UserConfigFn } from "./options-
|
|
2
|
-
import { defineConfig$1 as defineConfig } from "./config-
|
|
1
|
+
import { UserConfig, UserConfigFn } from "./options-BPeORY5t.js";
|
|
2
|
+
import { defineConfig$1 as defineConfig } from "./config-DQE4wDWb.js";
|
|
3
3
|
export { UserConfig, UserConfigFn, defineConfig };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BuildContext, Options, ResolvedOptions, TsdownHooks, UserConfig, UserConfigFn } from "./options-
|
|
2
|
-
import { defineConfig$1 as defineConfig } from "./config-
|
|
1
|
+
import { BuildContext, Options, ResolvedOptions, TsdownHooks, UserConfig, UserConfigFn } from "./options-BPeORY5t.js";
|
|
2
|
+
import { defineConfig$1 as defineConfig } from "./config-DQE4wDWb.js";
|
|
3
3
|
|
|
4
4
|
//#region src/utils/logger.d.ts
|
|
5
5
|
declare class Logger {
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineConfig } from "./config-yiJy1jd0.js";
|
|
2
|
-
import { ExternalPlugin, NodeProtocolPlugin, ReportPlugin, ShebangPlugin, fsCopy, fsRemove, fsStat, getPackageType, lowestCommonAncestor, normalizeFormat, prettyFormat, readPackageJson } from "./plugins-
|
|
2
|
+
import { ExternalPlugin, NodeProtocolPlugin, ReportPlugin, ShebangPlugin, fsCopy, fsRemove, fsStat, getPackageType, lowestCommonAncestor, normalizeFormat, prettyFormat, readPackageJson } from "./plugins-CPt-D0Cs.js";
|
|
3
3
|
import { debounce, resolveComma, slash, toArray } from "./general-CPYs4M61.js";
|
|
4
4
|
import { logger } from "./logger-DYeY_1KP.js";
|
|
5
5
|
import path from "node:path";
|
|
@@ -382,7 +382,7 @@ async function resolveOptions(options) {
|
|
|
382
382
|
...options
|
|
383
383
|
};
|
|
384
384
|
let { entry, format = ["es"], plugins = [], clean = true, silent = false, treeshake = true, platform = "node", outDir = "dist", sourcemap = false, dts, unused = false, watch = false, shims = false, skipNodeModulesBundle = false, publint: publint$1 = false, fromVite, alias, tsconfig, report = true, target, env = {}, copy: copy$1, publicDir, hash, cwd = process.cwd() } = subOptions;
|
|
385
|
-
outDir = path.resolve(outDir);
|
|
385
|
+
outDir = path.resolve(cwd, outDir);
|
|
386
386
|
clean = resolveClean(clean, outDir, cwd);
|
|
387
387
|
const pkg = await readPackageJson(cwd);
|
|
388
388
|
entry = await resolveEntry(entry, cwd);
|
|
@@ -622,6 +622,7 @@ async function buildSingle(config, clean) {
|
|
|
622
622
|
async function getBuildOptions(config, format, cjsDts) {
|
|
623
623
|
const { entry, external, plugins: userPlugins, outDir, platform, alias, treeshake, sourcemap, dts, minify, unused, target, define, shims, tsconfig, cwd, report, env, removeNodeProtocol, loader } = config;
|
|
624
624
|
const plugins = [];
|
|
625
|
+
if (removeNodeProtocol) plugins.push(NodeProtocolPlugin());
|
|
625
626
|
if (config.pkg || config.skipNodeModulesBundle) plugins.push(ExternalPlugin(config));
|
|
626
627
|
if (dts) {
|
|
627
628
|
const { dts: dtsPlugin } = await import("rolldown-plugin-dts");
|
|
@@ -654,7 +655,6 @@ async function getBuildOptions(config, format, cjsDts) {
|
|
|
654
655
|
await LightningCSSPlugin({ target })
|
|
655
656
|
);
|
|
656
657
|
plugins.push(userPlugins);
|
|
657
|
-
if (removeNodeProtocol) plugins.push(NodeProtocolPlugin());
|
|
658
658
|
const inputOptions = await mergeUserOptions({
|
|
659
659
|
input: entry,
|
|
660
660
|
cwd,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { logger } from "./logger-DYeY_1KP.js";
|
|
2
|
-
import { version } from "./package-
|
|
2
|
+
import { version } from "./package-CIiyZysA.js";
|
|
3
3
|
import process from "node:process";
|
|
4
4
|
import { bold, green, underline } from "ansis";
|
|
5
5
|
import { readFile, unlink, writeFile } from "node:fs/promises";
|
|
@@ -130,7 +130,7 @@ interface Options$3 {
|
|
|
130
130
|
*
|
|
131
131
|
* Accepts a single target (e.g., `'es2020'`, `'node18'`) or an array of targets.
|
|
132
132
|
*
|
|
133
|
-
* @see {@link https://tsdown.dev/
|
|
133
|
+
* @see {@link https://tsdown.dev/options/target#supported-targets} for a list of valid targets and more details.
|
|
134
134
|
*
|
|
135
135
|
* @example
|
|
136
136
|
* ```jsonc
|
package/dist/plugins.d.ts
CHANGED
package/dist/plugins.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ExternalPlugin, NodeProtocolPlugin, ReportPlugin, ShebangPlugin } from "./plugins-
|
|
1
|
+
import { ExternalPlugin, NodeProtocolPlugin, ReportPlugin, ShebangPlugin } from "./plugins-CPt-D0Cs.js";
|
|
2
2
|
import "./general-CPYs4M61.js";
|
|
3
3
|
import "./logger-DYeY_1KP.js";
|
|
4
4
|
|
package/dist/run.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { resolveComma, toArray } from "./general-CPYs4M61.js";
|
|
3
3
|
import { logger } from "./logger-DYeY_1KP.js";
|
|
4
|
-
import { version } from "./package-
|
|
4
|
+
import { version } from "./package-CIiyZysA.js";
|
|
5
5
|
import module from "node:module";
|
|
6
6
|
import process from "node:process";
|
|
7
7
|
import { dim } from "ansis";
|
|
@@ -20,7 +20,7 @@ cli.command("[...files]", "Bundle files", { ignoreOptionDefaultValue: true }).op
|
|
|
20
20
|
await build$1(flags);
|
|
21
21
|
});
|
|
22
22
|
cli.command("migrate", "Migrate from tsup to tsdown").option("-c, --cwd <dir>", "Working directory").option("-d, --dry-run", "Dry run").action(async (args) => {
|
|
23
|
-
const { migrate } = await import("./migrate-
|
|
23
|
+
const { migrate } = await import("./migrate-XHrcGQW7.js");
|
|
24
24
|
await migrate(args);
|
|
25
25
|
});
|
|
26
26
|
async function runCLI() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tsdown",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.6",
|
|
4
4
|
"description": "The Elegant Bundler for Libraries",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -62,12 +62,12 @@
|
|
|
62
62
|
"cac": "^6.7.14",
|
|
63
63
|
"chokidar": "^4.0.3",
|
|
64
64
|
"debug": "^4.4.0",
|
|
65
|
-
"diff": "^
|
|
65
|
+
"diff": "^8.0.0",
|
|
66
66
|
"empathic": "^1.1.0",
|
|
67
67
|
"hookable": "^5.5.3",
|
|
68
|
-
"rolldown": "1.0.0-beta.8-commit.
|
|
69
|
-
"rolldown-plugin-dts": "^0.
|
|
70
|
-
"semver": "^7.7.
|
|
68
|
+
"rolldown": "1.0.0-beta.8-commit.d95f99e",
|
|
69
|
+
"rolldown-plugin-dts": "^0.12.1",
|
|
70
|
+
"semver": "^7.7.2",
|
|
71
71
|
"tinyexec": "^1.0.1",
|
|
72
72
|
"tinyglobby": "^0.2.13",
|
|
73
73
|
"unconfig": "^7.3.2"
|
|
@@ -78,7 +78,6 @@
|
|
|
78
78
|
"@sxzz/prettier-config": "^2.2.1",
|
|
79
79
|
"@sxzz/test-utils": "^0.5.6",
|
|
80
80
|
"@types/debug": "^4.1.12",
|
|
81
|
-
"@types/diff": "^7.0.2",
|
|
82
81
|
"@types/node": "^22.15.17",
|
|
83
82
|
"@types/semver": "^7.7.0",
|
|
84
83
|
"@unocss/eslint-plugin": "^66.1.1",
|
|
@@ -98,7 +97,7 @@
|
|
|
98
97
|
"vite": "^6.3.5",
|
|
99
98
|
"vitepress": "^1.6.3",
|
|
100
99
|
"vitepress-plugin-group-icons": "^1.5.2",
|
|
101
|
-
"vitepress-plugin-llms": "^1.1.
|
|
100
|
+
"vitepress-plugin-llms": "^1.1.4",
|
|
102
101
|
"vitest": "^3.1.3",
|
|
103
102
|
"vue": "^3.5.13"
|
|
104
103
|
},
|