tsdown 0.22.0-beta.2 → 0.22.0-beta.3

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-B659_4oi.mjs";
9
- import { t as version } from "./package-CeuhhDjU.mjs";
9
+ import { t as version } from "./package-hXQUu9QF.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-CLGhOCqV.mjs";
1
+ import { n as buildWithConfigs, t as build } from "./build-8XnT-oz9.mjs";
2
2
  import { r as resolveUserConfig, t as mergeConfig } from "./options-DUthngzZ.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.22.0-beta.2";
2
+ var version = "0.22.0-beta.3";
3
3
  //#endregion
4
4
  export { version as t };
package/dist/run.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { a as globalLogger } from "./logger-uV8l1UFa.mjs";
3
- import { t as version } from "./package-CeuhhDjU.mjs";
3
+ import { t as version } from "./package-hXQUu9QF.mjs";
4
4
  import { t as enableDebug } from "./debug-CLlnG64L.mjs";
5
5
  import module from "node:module";
6
6
  import process from "node:process";
@@ -17,7 +17,7 @@ cli.command("[...files]", "Bundle files", {
17
17
  }).option("-c, --config <filename>", "Use a custom config file").option("--config-loader <loader>", "Config loader to use: auto, native, tsx, 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) => {
18
18
  globalLogger.level = flags.logLevel || "info";
19
19
  globalLogger.info(`${blue`tsdown v${version}`} powered by ${hex("#ff7e17")`rolldown v${VERSION}`}`);
20
- const { build } = await import("./build-CLGhOCqV.mjs").then((n) => n.r);
20
+ const { build } = await import("./build-8XnT-oz9.mjs").then((n) => n.r);
21
21
  if (input.length > 0) flags.entry = input;
22
22
  await build(flags);
23
23
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tsdown",
3
3
  "type": "module",
4
- "version": "0.22.0-beta.2",
4
+ "version": "0.22.0-beta.3",
5
5
  "description": "The Elegant Bundler for Libraries",
6
6
  "author": "Kevin Deng <sxzz@sxzz.moe>",
7
7
  "license": "MIT",
@@ -54,8 +54,8 @@
54
54
  "typescript": "^5.0.0 || ^6.0.0",
55
55
  "unplugin-unused": "^0.5.0",
56
56
  "unrun": "*",
57
- "@tsdown/css": "0.22.0-beta.2",
58
- "@tsdown/exe": "0.22.0-beta.2"
57
+ "@tsdown/css": "0.22.0-beta.3",
58
+ "@tsdown/exe": "0.22.0-beta.3"
59
59
  },
60
60
  "peerDependenciesMeta": {
61
61
  "@arethetypeswrong/core": {
@@ -96,7 +96,7 @@
96
96
  "obug": "^2.1.1",
97
97
  "picomatch": "^4.0.4",
98
98
  "rolldown": "1.0.0-rc.18",
99
- "rolldown-plugin-dts": "^0.24.0-beta.1",
99
+ "rolldown-plugin-dts": "^0.24.0",
100
100
  "semver": "^7.7.4",
101
101
  "tinyexec": "^1.1.2",
102
102
  "tinyglobby": "^0.2.16",
@@ -116,12 +116,12 @@
116
116
  "@types/node": "^25.6.0",
117
117
  "@types/picomatch": "^4.0.3",
118
118
  "@types/semver": "^7.7.1",
119
- "@typescript/native-preview": "7.0.0-dev.20260429.1",
119
+ "@typescript/native-preview": "7.0.0-dev.20260501.1",
120
120
  "@unocss/eslint-plugin": "^66.6.8",
121
- "@vitejs/devtools": "^0.1.15",
121
+ "@vitejs/devtools": "^0.1.17",
122
122
  "@vitest/coverage-v8": "^4.1.5",
123
123
  "@vitest/ui": "^4.1.5",
124
- "@vueuse/core": "^14.2.1",
124
+ "@vueuse/core": "^14.3.0",
125
125
  "baseline-browser-mapping": "^2.10.24",
126
126
  "bumpp": "^11.0.1",
127
127
  "dedent": "^1.7.2",
@@ -130,7 +130,7 @@
130
130
  "memfs": "^4.57.2",
131
131
  "package-manager-detector": "^1.6.0",
132
132
  "pkg-types": "^2.3.1",
133
- "postcss": "^8.5.12",
133
+ "postcss": "^8.5.13",
134
134
  "postcss-import": "^16.1.1",
135
135
  "prettier": "^3.8.3",
136
136
  "publint": "^0.3.18",
@@ -148,8 +148,8 @@
148
148
  "vite": "^8.0.10",
149
149
  "vitest": "^4.1.5",
150
150
  "vue": "^3.5.33",
151
- "@tsdown/css": "0.22.0-beta.2",
152
- "@tsdown/exe": "0.22.0-beta.2"
151
+ "@tsdown/css": "0.22.0-beta.3",
152
+ "@tsdown/exe": "0.22.0-beta.3"
153
153
  },
154
154
  "prettier": "@sxzz/prettier-config",
155
155
  "scripts": {