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.
@@ -4,4 +4,4 @@ function defineConfig(options) {
4
4
  }
5
5
 
6
6
  //#endregion
7
- export { defineConfig };
7
+ export { defineConfig as t };
@@ -1,4 +1,4 @@
1
- import { UserConfig, UserConfigFn } from "./types-CAr6Dndf.mjs";
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-CAr6Dndf.mjs";
2
- import { defineConfig } from "./config-Ck33bdQw.mjs";
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
@@ -1,3 +1,3 @@
1
- import { defineConfig } from "./config-CCGWF4al.mjs";
1
+ import { t as defineConfig } from "./config-BPLXnzPK.mjs";
2
2
 
3
3
  export { defineConfig };
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { AttwOptions, BuildContext, ChunkAddon, ChunkAddonFunction, ChunkAddonObject, CopyEntry, CopyOptions, CopyOptionsFn, DtsOptions, ExportsOptions, Format, Logger, NoExternalFn, NormalizedFormat, NormalizedUserConfig, Options, OutExtensionContext, OutExtensionFactory, OutExtensionObject, PackageType, PublintOptions, ReportOptions, ResolvedOptions, RolldownContext, Sourcemap, TsdownChunks, TsdownHooks, UnusedOptions, UserConfig, UserConfigFn, Workspace, globalLogger } from "./types-CAr6Dndf.mjs";
2
- import { defineConfig } from "./config-Ck33bdQw.mjs";
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-CCGWF4al.mjs";
2
- import { build, buildSingle, shimFile } from "./src-DjVGuMse.mjs";
3
- import { globalLogger } from "./package-BPB-NGqU.mjs";
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-BPB-NGqU.mjs";
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.8";
149
+ var version = "0.15.9";
150
150
 
151
151
  //#endregion
152
- export { LogLevels, createLogger, debounce, generateColor, globalLogger, matchPattern, noop, prettyFormat, prettyName, resolveComma, resolveRegex, slash, toArray, version };
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 };
@@ -1,4 +1,4 @@
1
- import { Logger, ReportPlugin, ResolvedOptions } from "./types-CAr6Dndf.mjs";
1
+ import { c as ResolvedOptions, g as Logger, h as ReportPlugin } from "./types-B42d6pGf.mjs";
2
2
  import { Plugin } from "rolldown";
3
3
  import { PackageJson } from "pkg-types";
4
4
 
package/dist/plugins.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import "./config-CCGWF4al.mjs";
2
- import { ExternalPlugin, NodeProtocolPlugin, ReportPlugin, ShebangPlugin } from "./src-DjVGuMse.mjs";
3
- import "./package-BPB-NGqU.mjs";
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-BPB-NGqU.mjs";
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-DWAdCBXo.mjs");
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 { LogLevels, createLogger, debounce, generateColor, globalLogger, matchPattern, noop, prettyFormat, prettyName, resolveComma, resolveRegex, slash, toArray, version } from "./package-BPB-NGqU.mjs";
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
- define: {
1133
- ...define,
1134
- ...Object.keys(env).reduce((acc, key) => {
1135
- const value = JSON.stringify(env[key]);
1136
- acc[`process.env.${key}`] = value;
1137
- acc[`import.meta.env.${key}`] = value;
1138
- return acc;
1139
- }, Object.create(null))
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 { ExternalPlugin, NodeProtocolPlugin, ReportPlugin, ShebangPlugin, build$1 as build, buildSingle, shimFile };
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 { type AttwOptions, type BuildContext, type ChunkAddon, type ChunkAddonFunction, type ChunkAddonObject, type CopyEntry, type CopyOptions, type CopyOptionsFn, type DtsOptions, type ExportsOptions, Format, Logger, NoExternalFn, NormalizedFormat, NormalizedUserConfig, Options, type OutExtensionContext, type OutExtensionFactory, type OutExtensionObject, type PackageType, type PublintOptions, type ReportOptions, ReportPlugin, ResolvedOptions, type RolldownContext, Sourcemap, type TsdownChunks, type TsdownHooks, type UnusedOptions, UserConfig, UserConfigFn, Workspace, globalLogger };
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.8",
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": "latest",
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.14",
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",