tsdown 0.21.9 → 0.21.10

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.
@@ -6,7 +6,7 @@ import { a as pkgExists, l as slash, n as importWithError, o as promiseWithResol
6
6
  import { a as globalLogger, t as LogLevels } from "./logger-uV8l1UFa.mjs";
7
7
  import { i as getShimsInject, n as DepsPlugin } from "./format-CajNSstg.mjs";
8
8
  import { a as ReportPlugin, i as ShebangPlugin, n as endsWithConfig, o as NodeProtocolPlugin, r as addOutDirToChunks, s as copy, t as WatchPlugin } from "./watch-D6EGzM6P.mjs";
9
- import { t as version } from "./package-JOXUdJGa.mjs";
9
+ import { t as version } from "./package-GYPjxY9U.mjs";
10
10
  import { mkdtemp, readFile, readdir, writeFile } from "node:fs/promises";
11
11
  import path from "node:path";
12
12
  import process from "node:process";
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { n as buildWithConfigs, t as build } from "./build-OX8uszs6.mjs";
1
+ import { n as buildWithConfigs, t as build } from "./build-CgGnBlCD.mjs";
2
2
  import { r as resolveUserConfig, t as mergeConfig } from "./options-8hmVMssn.mjs";
3
3
  import { a as globalLogger } from "./logger-uV8l1UFa.mjs";
4
4
  import { defineConfig } from "./config.mjs";
@@ -1,4 +1,4 @@
1
1
  //#region package.json
2
- var version = "0.21.9";
2
+ var version = "0.21.10";
3
3
  //#endregion
4
4
  export { version as t };
package/dist/run.mjs CHANGED
@@ -2,7 +2,7 @@
2
2
  import { createRequire as __cjs_createRequire } from "node:module";
3
3
  const __cjs_require = __cjs_createRequire(import.meta.url);
4
4
  import { a as globalLogger } from "./logger-uV8l1UFa.mjs";
5
- import { t as version } from "./package-JOXUdJGa.mjs";
5
+ import { t as version } from "./package-GYPjxY9U.mjs";
6
6
  import { t as enableDebug } from "./debug-CLlnG64L.mjs";
7
7
  import module from "node:module";
8
8
  import process from "node:process";
@@ -20,7 +20,7 @@ cli.command("[...files]", "Bundle files", {
20
20
  }).option("-c, --config <filename>", "Use a custom config file").option("--config-loader <loader>", "Config loader to use: auto, native, unrun", { default: "auto" }).option("--no-config", "Disable config file").option("-f, --format <format>", "Bundle format: esm, cjs, iife, umd", { default: "esm" }).option("--clean", "Clean output directory, --no-clean to disable").option("--deps.never-bundle <module>", "Mark dependencies as external").option("--minify", "Minify output").option("--devtools", "Enable devtools integration").option("--debug [feat]", "Show debug logs").option("--target <target>", "Bundle target, e.g \"es2015\", \"esnext\"").option("-l, --logLevel <level>", "Set log level: info, warn, error, silent").option("--fail-on-warn", "Fail on warnings", { default: true }).option("--no-write", "Disable writing files to disk, incompatible with watch mode").option("-d, --out-dir <dir>", "Output directory", { default: "dist" }).option("--treeshake", "Tree-shake bundle", { default: true }).option("--sourcemap", "Generate source map", { default: false }).option("--shims", "Enable cjs and esm shims ", { default: false }).option("--platform <platform>", "Target platform", { default: "node" }).option("--dts", "Generate dts files").option("--publint", "Enable publint", { default: false }).option("--attw", "Enable Are the types wrong integration", { default: false }).option("--unused", "Enable unused dependencies check", { default: false }).option("-w, --watch [path]", "Watch mode").option("--ignore-watch <path>", "Ignore custom paths in watch mode").option("--from-vite [vitest]", "Reuse config from Vite or Vitest").option("--report", "Size report", { default: true }).option("--env.* <value>", "Define compile-time env variables").option("--env-file <file>", "Load environment variables from a file, when used together with --env, variables in --env take precedence").option("--env-prefix <prefix>", "Prefix for env variables to inject into the bundle", { default: "TSDOWN_" }).option("--on-success <command>", "Command to run on success").option("--copy <dir>", "Copy files to output dir").option("--public-dir <dir>", "Alias for --copy, deprecated").option("--tsconfig <tsconfig>", "Set tsconfig path").option("--unbundle", "Unbundle mode").option("--root <dir>", "Root directory of input files").option("--exe", "Bundle as executable").option("-W, --workspace [dir]", "Enable workspace mode").option("-F, --filter <pattern>", "Filter configs (cwd or name), e.g. /pkg-name$/ or pkg-name").option("--exports", "Generate export-related metadata for package.json (experimental)").action(async (input, flags) => {
21
21
  globalLogger.level = flags.logLevel || "info";
22
22
  globalLogger.info(`${blue`tsdown v${version}`} powered by ${hex("#ff7e17")`rolldown v${VERSION}`}`);
23
- const { build } = await import("./build-OX8uszs6.mjs").then((n) => n.r);
23
+ const { build } = await import("./build-CgGnBlCD.mjs").then((n) => n.r);
24
24
  if (input.length > 0) flags.entry = input;
25
25
  await build(flags);
26
26
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tsdown",
3
3
  "type": "module",
4
- "version": "0.21.9",
4
+ "version": "0.21.10",
5
5
  "description": "The Elegant Bundler for Libraries",
6
6
  "author": "Kevin Deng <sxzz@sxzz.moe>",
7
7
  "license": "MIT",
@@ -52,8 +52,8 @@
52
52
  "publint": "^0.3.0",
53
53
  "typescript": "^5.0.0 || ^6.0.0",
54
54
  "unplugin-unused": "^0.5.0",
55
- "@tsdown/css": "0.21.9",
56
- "@tsdown/exe": "0.21.9"
55
+ "@tsdown/css": "0.21.10",
56
+ "@tsdown/exe": "0.21.10"
57
57
  },
58
58
  "peerDependenciesMeta": {
59
59
  "@arethetypeswrong/core": {
@@ -87,14 +87,14 @@
87
87
  "import-without-cache": "^0.3.3",
88
88
  "obug": "^2.1.1",
89
89
  "picomatch": "^4.0.4",
90
- "rolldown": "1.0.0-rc.16",
90
+ "rolldown": "1.0.0-rc.17",
91
91
  "rolldown-plugin-dts": "^0.23.2",
92
92
  "semver": "^7.7.4",
93
93
  "tinyexec": "^1.1.1",
94
94
  "tinyglobby": "^0.2.16",
95
95
  "tree-kill": "^1.2.2",
96
96
  "unconfig-core": "^7.5.0",
97
- "unrun": "^0.2.36"
97
+ "unrun": "^0.2.37"
98
98
  },
99
99
  "inlinedDependencies": {
100
100
  "is-in-ci": "2.0.0",
@@ -109,18 +109,18 @@
109
109
  "@types/node": "^25.6.0",
110
110
  "@types/picomatch": "^4.0.3",
111
111
  "@types/semver": "^7.7.1",
112
- "@typescript/native-preview": "7.0.0-dev.20260416.1",
112
+ "@typescript/native-preview": "7.0.0-dev.20260422.1",
113
113
  "@unocss/eslint-plugin": "^66.6.8",
114
- "@vitejs/devtools": "^0.1.13",
115
- "@vitest/coverage-v8": "^4.1.4",
116
- "@vitest/ui": "^4.1.4",
114
+ "@vitejs/devtools": "^0.1.15",
115
+ "@vitest/coverage-v8": "^4.1.5",
116
+ "@vitest/ui": "^4.1.5",
117
117
  "@vueuse/core": "^14.2.1",
118
- "baseline-browser-mapping": "^2.10.19",
118
+ "baseline-browser-mapping": "^2.10.20",
119
119
  "bumpp": "^11.0.1",
120
120
  "dedent": "^1.7.2",
121
- "eslint": "^10.2.0",
121
+ "eslint": "^10.2.1",
122
122
  "is-in-ci": "^2.0.0",
123
- "memfs": "^4.57.1",
123
+ "memfs": "^4.57.2",
124
124
  "package-manager-detector": "^1.6.0",
125
125
  "pkg-types": "^2.3.0",
126
126
  "postcss": "^8.5.10",
@@ -129,18 +129,18 @@
129
129
  "publint": "^0.3.18",
130
130
  "rolldown-plugin-require-cjs": "^0.4.0",
131
131
  "sass": "^1.99.0",
132
- "tsnapi": "^0.3.0",
133
- "typescript": "~6.0.2",
132
+ "tsnapi": "^0.3.2",
133
+ "typescript": "~6.0.3",
134
134
  "unocss": "^66.6.8",
135
135
  "unplugin-ast": "^0.16.0",
136
136
  "unplugin-raw": "^0.7.0",
137
137
  "unplugin-unused": "^0.5.7",
138
138
  "unplugin-vue": "^7.1.1",
139
- "vite": "^8.0.8",
140
- "vitest": "^4.1.4",
141
- "vue": "^3.5.32",
142
- "@tsdown/exe": "0.21.9",
143
- "@tsdown/css": "0.21.9"
139
+ "vite": "^8.0.9",
140
+ "vitest": "^4.1.5",
141
+ "vue": "^3.5.33",
142
+ "@tsdown/css": "0.21.10",
143
+ "@tsdown/exe": "0.21.10"
144
144
  },
145
145
  "prettier": "@sxzz/prettier-config",
146
146
  "scripts": {