tsdown 0.16.3 → 0.16.4
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.mjs +2 -2
- package/dist/{migrate-DYCJSMvi.mjs → migrate-Cxbt-lPD.mjs} +1 -1
- package/dist/{package-B_3r_AxD.mjs → package-2depcwF3.mjs} +1 -1
- package/dist/plugins.mjs +2 -2
- package/dist/run.mjs +2 -2
- package/dist/{src-JtWi3UZD.mjs → src-DoHg27jj.mjs} +3 -3
- package/package.json +7 -7
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as defineConfig } from "./config-DLSWqKoz.mjs";
|
|
2
|
-
import { n as buildSingle, r as shimFile, t as build } from "./src-
|
|
3
|
-
import { a as globalLogger } from "./package-
|
|
2
|
+
import { n as buildSingle, r as shimFile, t as build } from "./src-DoHg27jj.mjs";
|
|
3
|
+
import { a as globalLogger } from "./package-2depcwF3.mjs";
|
|
4
4
|
|
|
5
5
|
export { build, buildSingle, defineConfig, globalLogger, shimFile };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as globalLogger, t as version } from "./package-
|
|
1
|
+
import { a as globalLogger, t as version } from "./package-2depcwF3.mjs";
|
|
2
2
|
import process from "node:process";
|
|
3
3
|
import { bold, green, underline } from "ansis";
|
|
4
4
|
import { readFile, unlink, writeFile } from "node:fs/promises";
|
|
@@ -160,7 +160,7 @@ function hue2rgb(p, q, t) {
|
|
|
160
160
|
|
|
161
161
|
//#endregion
|
|
162
162
|
//#region package.json
|
|
163
|
-
var version = "0.16.
|
|
163
|
+
var version = "0.16.4";
|
|
164
164
|
|
|
165
165
|
//#endregion
|
|
166
166
|
export { globalLogger as a, debounce as c, noop as d, pkgExists as f, toArray as g, slash as h, generateColor as i, importWithError as l, resolveRegex as m, LogLevels as n, prettyFormat as o, resolveComma as p, createLogger as r, prettyName as s, version as t, matchPattern as u };
|
package/dist/plugins.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./config-DLSWqKoz.mjs";
|
|
2
|
-
import { a as ReportPlugin, i as ShebangPlugin, o as NodeProtocolPlugin, s as ExternalPlugin } from "./src-
|
|
3
|
-
import "./package-
|
|
2
|
+
import { a as ReportPlugin, i as ShebangPlugin, o as NodeProtocolPlugin, s as ExternalPlugin } from "./src-DoHg27jj.mjs";
|
|
3
|
+
import "./package-2depcwF3.mjs";
|
|
4
4
|
|
|
5
5
|
export { ExternalPlugin, NodeProtocolPlugin, ReportPlugin, ShebangPlugin };
|
package/dist/run.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { a as globalLogger, g as toArray, p as resolveComma, t as version } from "./package-
|
|
2
|
+
import { a as globalLogger, g as toArray, p as resolveComma, t as version } from "./package-2depcwF3.mjs";
|
|
3
3
|
import module from "node:module";
|
|
4
4
|
import process from "node:process";
|
|
5
5
|
import { dim } from "ansis";
|
|
@@ -36,7 +36,7 @@ cli.command("[...files]", "Bundle files", {
|
|
|
36
36
|
await build$1(flags);
|
|
37
37
|
});
|
|
38
38
|
cli.command("migrate", "Migrate from tsup to tsdown").option("-c, --cwd <dir>", "Working directory").option("-d, --dry-run", "Dry run").action(async (args) => {
|
|
39
|
-
const { migrate } = await import("./migrate-
|
|
39
|
+
const { migrate } = await import("./migrate-Cxbt-lPD.mjs");
|
|
40
40
|
await migrate(args);
|
|
41
41
|
});
|
|
42
42
|
async function runCLI() {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createRequire as __cjs_createRequire } from "node:module";
|
|
2
2
|
const __cjs_require = __cjs_createRequire(import.meta.url);
|
|
3
|
-
import { a as globalLogger, c as debounce, d as noop, f as pkgExists, g as toArray, h as slash, i as generateColor, l as importWithError, m as resolveRegex, n as LogLevels, o as prettyFormat, p as resolveComma, r as createLogger, s as prettyName, t as version, u as matchPattern } from "./package-
|
|
3
|
+
import { a as globalLogger, c as debounce, d as noop, f as pkgExists, g as toArray, h as slash, i as generateColor, l as importWithError, m as resolveRegex, n as LogLevels, o as prettyFormat, p as resolveComma, r as createLogger, s as prettyName, t as version, u as matchPattern } from "./package-2depcwF3.mjs";
|
|
4
4
|
import { builtinModules, isBuiltin } from "node:module";
|
|
5
5
|
import path, { dirname, join, normalize, sep } from "node:path";
|
|
6
6
|
import process from "node:process";
|
|
@@ -267,7 +267,7 @@ async function writeExports(options, chunks) {
|
|
|
267
267
|
if (!options.exports) return;
|
|
268
268
|
const { outDir, pkg } = options;
|
|
269
269
|
if (!pkg) throw new Error("`package.json` not found, cannot write exports");
|
|
270
|
-
const { publishExports
|
|
270
|
+
const { publishExports, ...generated } = await generateExports(pkg, outDir, chunks, options.exports);
|
|
271
271
|
const updatedPkg = {
|
|
272
272
|
...pkg,
|
|
273
273
|
...generated,
|
|
@@ -692,7 +692,7 @@ async function attw(options) {
|
|
|
692
692
|
options.logger.warn("attw is enabled but package.json is not found");
|
|
693
693
|
return;
|
|
694
694
|
}
|
|
695
|
-
const { profile = "strict", level = "warn"
|
|
695
|
+
const { profile = "strict", level = "warn", ...attwOptions } = options.attw === true ? {} : options.attw;
|
|
696
696
|
const t = performance.now();
|
|
697
697
|
debug$4("Running attw check");
|
|
698
698
|
const tempDir = await mkdtemp(path.join(tmpdir(), "tsdown-attw-"));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tsdown",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.4",
|
|
4
4
|
"description": "The Elegant Bundler for Libraries",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -79,22 +79,22 @@
|
|
|
79
79
|
"diff": "^8.0.2",
|
|
80
80
|
"empathic": "^2.0.0",
|
|
81
81
|
"hookable": "^5.5.3",
|
|
82
|
-
"obug": "^0.
|
|
83
|
-
"rolldown": "1.0.0-beta.
|
|
84
|
-
"rolldown-plugin-dts": "^0.17.
|
|
82
|
+
"obug": "^1.0.0",
|
|
83
|
+
"rolldown": "1.0.0-beta.50",
|
|
84
|
+
"rolldown-plugin-dts": "^0.17.7",
|
|
85
85
|
"semver": "^7.7.3",
|
|
86
86
|
"tinyexec": "^1.0.2",
|
|
87
87
|
"tinyglobby": "^0.2.15",
|
|
88
88
|
"tree-kill": "^1.2.2",
|
|
89
89
|
"unconfig-core": "^7.4.1",
|
|
90
|
-
"unrun": "^0.2.
|
|
90
|
+
"unrun": "^0.2.9"
|
|
91
91
|
},
|
|
92
92
|
"devDependencies": {
|
|
93
93
|
"@arethetypeswrong/core": "^0.18.2",
|
|
94
94
|
"@sxzz/eslint-config": "^7.2.10",
|
|
95
95
|
"@sxzz/prettier-config": "^2.2.4",
|
|
96
96
|
"@sxzz/test-utils": "^0.5.12",
|
|
97
|
-
"@types/node": "^24.10.
|
|
97
|
+
"@types/node": "^24.10.1",
|
|
98
98
|
"@types/semver": "^7.7.1",
|
|
99
99
|
"@unocss/eslint-plugin": "66.5.4",
|
|
100
100
|
"@vitejs/devtools": "^0.0.0-alpha.17",
|
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
"unocss": "^66.5.6",
|
|
111
111
|
"unplugin-lightningcss": "^0.4.3",
|
|
112
112
|
"unplugin-unused": "^0.5.6",
|
|
113
|
-
"vite": "npm:rolldown-vite@^7.2.
|
|
113
|
+
"vite": "npm:rolldown-vite@^7.2.5",
|
|
114
114
|
"vitest": "^4.0.8"
|
|
115
115
|
},
|
|
116
116
|
"engines": {
|