tsdown 0.13.3 → 0.13.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.
@@ -218,6 +218,8 @@ interface Options {
218
218
  clean?: boolean | string[];
219
219
  /** @default false */
220
220
  minify?: boolean | "dce-only" | MinifyOptions;
221
+ footer?: ChunkAddon;
222
+ banner?: ChunkAddon;
221
223
  /**
222
224
  * Specifies the compilation target environment(s).
223
225
  *
@@ -273,6 +275,10 @@ interface Options {
273
275
  * `fixedExtension` will be overridden by this option.
274
276
  */
275
277
  outExtensions?: OutExtensionFactory;
278
+ /**
279
+ * @default true
280
+ */
281
+ cjsDefault?: boolean;
276
282
  outputOptions?: OutputOptions | ((options: OutputOptions, format: NormalizedFormat, context: {
277
283
  cjsDts: boolean;
278
284
  }) => Awaitable<OutputOptions | void | null>);
@@ -300,6 +306,11 @@ interface Options {
300
306
  */
301
307
  logLevel?: LogLevel;
302
308
  /**
309
+ * If true, fails the build on warnings.
310
+ * @default false
311
+ */
312
+ failOnWarn?: boolean;
313
+ /**
303
314
  * Custom logger.
304
315
  */
305
316
  customLogger?: Logger;
@@ -439,8 +450,6 @@ interface Options {
439
450
  * Filter workspace packages. This option is only available in workspace mode.
440
451
  */
441
452
  filter?: RegExp | string | string[];
442
- footer?: ChunkAddon;
443
- banner?: ChunkAddon;
444
453
  }
445
454
  /**
446
455
  * Options without specifying config file path.
@@ -448,7 +457,7 @@ interface Options {
448
457
  type UserConfig = Arrayable<Omit<Options, "config" | "filter">>;
449
458
  type UserConfigFn = (cliOptions: Options) => Awaitable<UserConfig>;
450
459
  type NormalizedUserConfig = Exclude<UserConfig, any[]>;
451
- type ResolvedOptions = Omit<Overwrite<MarkPartial<Omit<Options, "publicDir" | "workspace" | "filter" | "silent" | "logLevel" | "customLogger">, "globalName" | "inputOptions" | "outputOptions" | "minify" | "define" | "alias" | "external" | "noExternal" | "onSuccess" | "fixedExtension" | "outExtensions" | "hooks" | "removeNodeProtocol" | "copy" | "loader" | "name" | "bundle" | "banner" | "footer">, {
460
+ type ResolvedOptions = Omit<Overwrite<MarkPartial<Omit<Options, "publicDir" | "workspace" | "filter" | "silent" | "logLevel" | "failOnWarn" | "customLogger">, "globalName" | "inputOptions" | "outputOptions" | "minify" | "define" | "alias" | "external" | "noExternal" | "onSuccess" | "fixedExtension" | "outExtensions" | "hooks" | "removeNodeProtocol" | "copy" | "loader" | "name" | "bundle" | "banner" | "footer">, {
452
461
  format: NormalizedFormat[];
453
462
  target?: string[];
454
463
  clean: string[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tsdown",
3
- "version": "0.13.3",
3
+ "version": "0.13.4",
4
4
  "description": "The Elegant Bundler for Libraries",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -75,7 +75,7 @@
75
75
  "empathic": "^2.0.0",
76
76
  "hookable": "^5.5.3",
77
77
  "rolldown": "^1.0.0-beta.31",
78
- "rolldown-plugin-dts": "^0.15.3",
78
+ "rolldown-plugin-dts": "^0.15.6",
79
79
  "semver": "^7.7.2",
80
80
  "tinyexec": "^1.0.1",
81
81
  "tinyglobby": "^0.2.14",
@@ -90,12 +90,12 @@
90
90
  "@types/debug": "^4.1.12",
91
91
  "@types/node": "^24.2.0",
92
92
  "@types/semver": "^7.7.0",
93
- "@unocss/eslint-plugin": "^66.4.1",
93
+ "@unocss/eslint-plugin": "^66.4.2",
94
94
  "@vueuse/core": "^13.6.0",
95
95
  "bumpp": "^10.2.2",
96
96
  "eslint": "^9.32.0",
97
97
  "lightningcss": "^1.30.1",
98
- "oxc-minify": "^0.80.0",
98
+ "oxc-minify": "^0.81.0",
99
99
  "pkg-types": "^2.2.0",
100
100
  "prettier": "^3.6.2",
101
101
  "publint": "^0.3.12",
@@ -104,7 +104,7 @@
104
104
  "typedoc-plugin-markdown": "^4.8.0",
105
105
  "typedoc-vitepress-theme": "^1.1.2",
106
106
  "typescript": "~5.9.2",
107
- "unocss": "^66.4.1",
107
+ "unocss": "^66.4.2",
108
108
  "unplugin-lightningcss": "^0.4.1",
109
109
  "unplugin-unused": "^0.5.1",
110
110
  "vite": "npm:rolldown-vite@latest",
@@ -1,5 +0,0 @@
1
- //#region package.json
2
- var version = "0.13.3";
3
-
4
- //#endregion
5
- export { version };