tsdown 0.15.8 → 0.15.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-CCGWF4al.mjs → config-BPLXnzPK.mjs} +1 -1
- package/dist/{config-Ck33bdQw.d.mts → config-CNqtanO8.d.mts} +2 -2
- package/dist/config.d.mts +2 -2
- package/dist/config.mjs +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +3 -3
- package/dist/{migrate-DWAdCBXo.mjs → migrate-Bh_d_JVL.mjs} +1 -1
- package/dist/{package-BPB-NGqU.mjs → package--bDJO_eC.mjs} +2 -2
- package/dist/plugins.d.mts +1 -1
- package/dist/plugins.mjs +3 -3
- package/dist/run.mjs +2 -2
- package/dist/{src-DjVGuMse.mjs → src-BE9Pi-HH.mjs} +14 -12
- package/dist/{types-CAr6Dndf.d.mts → types-B42d6pGf.d.mts} +1 -1
- package/package.json +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { UserConfig, UserConfigFn } from "./types-
|
|
1
|
+
import { d as UserConfig, f as UserConfigFn } from "./types-B42d6pGf.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/config.d.ts
|
|
4
4
|
|
|
@@ -8,4 +8,4 @@ import { UserConfig, UserConfigFn } from "./types-CAr6Dndf.mjs";
|
|
|
8
8
|
declare function defineConfig(options: UserConfig): UserConfig;
|
|
9
9
|
declare function defineConfig(options: UserConfigFn): UserConfigFn;
|
|
10
10
|
//#endregion
|
|
11
|
-
export { defineConfig };
|
|
11
|
+
export { defineConfig as t };
|
package/dist/config.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { UserConfig, UserConfigFn } from "./types-
|
|
2
|
-
import { defineConfig } from "./config-
|
|
1
|
+
import { d as UserConfig, f as UserConfigFn } from "./types-B42d6pGf.mjs";
|
|
2
|
+
import { t as defineConfig } from "./config-CNqtanO8.mjs";
|
|
3
3
|
export { UserConfig, UserConfigFn, defineConfig };
|
package/dist/config.mjs
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { defineConfig } from "./config-
|
|
1
|
+
import { A as CopyEntry, C as OutExtensionObject, D as TsdownHooks, E as RolldownContext, M as CopyOptionsFn, N as AttwOptions, O as ExportsOptions, S as OutExtensionFactory, T as BuildContext, _ as globalLogger, a as NormalizedUserConfig, b as ChunkAddonObject, c as ResolvedOptions, d as UserConfig, f as UserConfigFn, g as Logger, i as NormalizedFormat, j as CopyOptions, k as TsdownChunks, l as Sourcemap, m as ReportOptions, n as Format, o as Options, p as Workspace, r as NoExternalFn, s as PublintOptions, t as DtsOptions, u as UnusedOptions, v as ChunkAddon, w as PackageType, x as OutExtensionContext, y as ChunkAddonFunction } from "./types-B42d6pGf.mjs";
|
|
2
|
+
import { t as defineConfig } from "./config-CNqtanO8.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/index.d.ts
|
|
5
5
|
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineConfig } from "./config-
|
|
2
|
-
import {
|
|
3
|
-
import { globalLogger } from "./package
|
|
1
|
+
import { t as defineConfig } from "./config-BPLXnzPK.mjs";
|
|
2
|
+
import { n as buildSingle, r as shimFile, t as build } from "./src-BE9Pi-HH.mjs";
|
|
3
|
+
import { a as globalLogger } from "./package--bDJO_eC.mjs";
|
|
4
4
|
|
|
5
5
|
export { build, buildSingle, defineConfig, globalLogger, shimFile };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { globalLogger, version } from "./package
|
|
1
|
+
import { a as globalLogger, t as version } from "./package--bDJO_eC.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";
|
|
@@ -146,7 +146,7 @@ function hue2rgb(p, q, t) {
|
|
|
146
146
|
|
|
147
147
|
//#endregion
|
|
148
148
|
//#region package.json
|
|
149
|
-
var version = "0.15.
|
|
149
|
+
var version = "0.15.9";
|
|
150
150
|
|
|
151
151
|
//#endregion
|
|
152
|
-
export {
|
|
152
|
+
export { globalLogger as a, debounce as c, resolveComma as d, resolveRegex as f, generateColor as i, matchPattern as l, toArray as m, LogLevels as n, prettyFormat as o, slash as p, createLogger as r, prettyName as s, version as t, noop as u };
|
package/dist/plugins.d.mts
CHANGED
package/dist/plugins.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./config-
|
|
2
|
-
import {
|
|
3
|
-
import "./package
|
|
1
|
+
import "./config-BPLXnzPK.mjs";
|
|
2
|
+
import { a as ReportPlugin, i as ShebangPlugin, o as NodeProtocolPlugin, s as ExternalPlugin } from "./src-BE9Pi-HH.mjs";
|
|
3
|
+
import "./package--bDJO_eC.mjs";
|
|
4
4
|
|
|
5
5
|
export { ExternalPlugin, NodeProtocolPlugin, ReportPlugin, ShebangPlugin };
|
package/dist/run.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire as __cjs_createRequire } from "node:module";
|
|
3
3
|
const __cjs_require = __cjs_createRequire(import.meta.url);
|
|
4
|
-
import { globalLogger, resolveComma, toArray, version } from "./package
|
|
4
|
+
import { a as globalLogger, d as resolveComma, m as toArray, t as version } from "./package--bDJO_eC.mjs";
|
|
5
5
|
import module from "node:module";
|
|
6
6
|
import process from "node:process";
|
|
7
7
|
import { dim } from "ansis";
|
|
@@ -23,7 +23,7 @@ cli.command("[...files]", "Bundle files", {
|
|
|
23
23
|
await build$1(flags);
|
|
24
24
|
});
|
|
25
25
|
cli.command("migrate", "Migrate from tsup to tsdown").option("-c, --cwd <dir>", "Working directory").option("-d, --dry-run", "Dry run").action(async (args) => {
|
|
26
|
-
const { migrate } = await import("./migrate-
|
|
26
|
+
const { migrate } = await import("./migrate-Bh_d_JVL.mjs");
|
|
27
27
|
await migrate(args);
|
|
28
28
|
});
|
|
29
29
|
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 {
|
|
3
|
+
import { a as globalLogger, c as debounce, d as resolveComma, f as resolveRegex, i as generateColor, l as matchPattern, m as toArray, n as LogLevels, o as prettyFormat, p as slash, r as createLogger, s as prettyName, t as version, u as noop } from "./package--bDJO_eC.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";
|
|
@@ -1129,18 +1129,20 @@ async function resolveInputOptions(config, format, cjsDts, isMultiFormat) {
|
|
|
1129
1129
|
tsconfig: tsconfig || void 0,
|
|
1130
1130
|
treeshake,
|
|
1131
1131
|
platform: cjsDts || format === "cjs" ? "node" : platform,
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1132
|
+
transform: {
|
|
1133
|
+
target,
|
|
1134
|
+
define: {
|
|
1135
|
+
...define,
|
|
1136
|
+
...Object.keys(env).reduce((acc, key) => {
|
|
1137
|
+
const value = JSON.stringify(env[key]);
|
|
1138
|
+
acc[`process.env.${key}`] = value;
|
|
1139
|
+
acc[`import.meta.env.${key}`] = value;
|
|
1140
|
+
return acc;
|
|
1141
|
+
}, Object.create(null))
|
|
1142
|
+
},
|
|
1143
|
+
inject: { ...shims && !cjsDts && getShimsInject(format, platform) }
|
|
1140
1144
|
},
|
|
1141
|
-
transform: { target },
|
|
1142
1145
|
plugins,
|
|
1143
|
-
inject: { ...shims && !cjsDts && getShimsInject(format, platform) },
|
|
1144
1146
|
moduleTypes: loader,
|
|
1145
1147
|
logLevel: logger.level === "error" ? "silent" : logger.level,
|
|
1146
1148
|
onLog: cjsDefault ? (level, log, defaultHandler) => {
|
|
@@ -1397,4 +1399,4 @@ async function buildSingle(config, clean) {
|
|
|
1397
1399
|
}
|
|
1398
1400
|
|
|
1399
1401
|
//#endregion
|
|
1400
|
-
export {
|
|
1402
|
+
export { ReportPlugin as a, ShebangPlugin as i, buildSingle as n, NodeProtocolPlugin as o, shimFile as r, ExternalPlugin as s, build$1 as t };
|
|
@@ -525,4 +525,4 @@ type ResolvedOptions = Omit<Overwrite<MarkPartial<Omit<Options, "publicDir" | "w
|
|
|
525
525
|
inlineOnly?: Array<string | RegExp>;
|
|
526
526
|
}>, "config" | "fromVite">;
|
|
527
527
|
//#endregion
|
|
528
|
-
export {
|
|
528
|
+
export { CopyEntry as A, OutExtensionObject as C, TsdownHooks as D, RolldownContext as E, CopyOptionsFn as M, AttwOptions as N, ExportsOptions as O, OutExtensionFactory as S, BuildContext as T, globalLogger as _, NormalizedUserConfig as a, ChunkAddonObject as b, ResolvedOptions as c, UserConfig as d, UserConfigFn as f, Logger as g, ReportPlugin as h, NormalizedFormat as i, CopyOptions as j, TsdownChunks as k, Sourcemap as l, ReportOptions as m, Format as n, Options as o, Workspace as p, NoExternalFn as r, PublintOptions as s, DtsOptions as t, UnusedOptions as u, ChunkAddon as v, PackageType as w, OutExtensionContext as x, ChunkAddonFunction as y };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tsdown",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.9",
|
|
4
4
|
"description": "The Elegant Bundler for Libraries",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"diff": "^8.0.2",
|
|
77
77
|
"empathic": "^2.0.0",
|
|
78
78
|
"hookable": "^5.5.3",
|
|
79
|
-
"rolldown": "
|
|
79
|
+
"rolldown": "1.0.0-beta.44",
|
|
80
80
|
"rolldown-plugin-dts": "^0.16.12",
|
|
81
81
|
"semver": "^7.7.3",
|
|
82
82
|
"tinyexec": "^1.0.1",
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
"lightningcss": "^1.30.2",
|
|
100
100
|
"pkg-types": "^2.3.0",
|
|
101
101
|
"prettier": "^3.6.2",
|
|
102
|
-
"publint": "^0.3.
|
|
102
|
+
"publint": "^0.3.15",
|
|
103
103
|
"rolldown-plugin-require-cjs": "^0.3.1",
|
|
104
104
|
"tsx": "^4.20.6",
|
|
105
105
|
"typescript": "~5.9.3",
|