tsdown 0.22.0-beta.2 → 0.22.0

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-Dzmmm_a2.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";
@@ -331,7 +331,8 @@ async function bundleDone(bundleByPkg, bundle) {
331
331
  }
332
332
  const publintConfigs = dedupeConfigs(configs, "publint");
333
333
  const attwConfigs = dedupeConfigs(configs, "attw");
334
- if (publintConfigs.length > 1 || attwConfigs.length > 1) publintConfigs[1].logger.warn(`Multiple publint or attw configurations found for package at ${pkg.packageJsonPath}. Consider merging them for better consistency and performance.`);
334
+ const duplicate = publintConfigs[1] || attwConfigs[1];
335
+ if (duplicate) duplicate.logger.warn(`Multiple publint or attw configurations found for package at ${pkg.packageJsonPath}. Consider merging them for better consistency and performance.`);
335
336
  try {
336
337
  if (publintConfigs.length || attwConfigs.length) {
337
338
  const tarball = await packTarball(pkg.packageJsonPath);
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-5FURNVr0.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";
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-Dzmmm_a2.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-5FURNVr0.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",
5
5
  "description": "The Elegant Bundler for Libraries",
6
6
  "author": "Kevin Deng <sxzz@sxzz.moe>",
7
7
  "license": "MIT",
@@ -44,7 +44,7 @@
44
44
  "access": "public"
45
45
  },
46
46
  "engines": {
47
- "node": ">=22.18.0"
47
+ "node": "^22.18.0 || >=24.0.0"
48
48
  },
49
49
  "peerDependencies": {
50
50
  "@arethetypeswrong/core": "^0.18.1",
@@ -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",
58
+ "@tsdown/exe": "0.22.0"
59
59
  },
60
60
  "peerDependenciesMeta": {
61
61
  "@arethetypeswrong/core": {
@@ -92,11 +92,11 @@
92
92
  "defu": "^6.1.7",
93
93
  "empathic": "^2.0.0",
94
94
  "hookable": "^6.1.1",
95
- "import-without-cache": "^0.3.3",
95
+ "import-without-cache": "^0.4.0",
96
96
  "obug": "^2.1.1",
97
97
  "picomatch": "^4.0.4",
98
- "rolldown": "1.0.0-rc.18",
99
- "rolldown-plugin-dts": "^0.24.0-beta.1",
98
+ "rolldown": "^1.0.0",
99
+ "rolldown-plugin-dts": "^0.25.0",
100
100
  "semver": "^7.7.4",
101
101
  "tinyexec": "^1.1.2",
102
102
  "tinyglobby": "^0.2.16",
@@ -116,40 +116,40 @@
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.20260507.1",
120
120
  "@unocss/eslint-plugin": "^66.6.8",
121
- "@vitejs/devtools": "^0.1.15",
121
+ "@vitejs/devtools": "^0.1.19",
122
122
  "@vitest/coverage-v8": "^4.1.5",
123
123
  "@vitest/ui": "^4.1.5",
124
- "@vueuse/core": "^14.2.1",
125
- "baseline-browser-mapping": "^2.10.24",
126
- "bumpp": "^11.0.1",
124
+ "@vueuse/core": "^14.3.0",
125
+ "baseline-browser-mapping": "^2.10.27",
126
+ "bumpp": "^11.1.0",
127
127
  "dedent": "^1.7.2",
128
- "eslint": "^10.2.1",
128
+ "eslint": "^10.3.0",
129
129
  "is-in-ci": "^2.0.0",
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.14",
134
134
  "postcss-import": "^16.1.1",
135
135
  "prettier": "^3.8.3",
136
- "publint": "^0.3.18",
136
+ "publint": "^0.3.19",
137
137
  "rolldown-plugin-require-cjs": "^0.4.0",
138
138
  "sass": "^1.99.0",
139
139
  "tsnapi": "^0.3.2",
140
140
  "tsx": "^4.21.0",
141
141
  "typescript": "~6.0.3",
142
142
  "unocss": "^66.6.8",
143
- "unplugin-ast": "^0.16.0",
143
+ "unplugin-ast": "^0.17.0",
144
144
  "unplugin-raw": "^0.7.0",
145
145
  "unplugin-unused": "^0.5.7",
146
146
  "unplugin-vue": "^7.2.0",
147
147
  "unrun": "^0.2.37",
148
- "vite": "^8.0.10",
148
+ "vite": "^8.0.11",
149
149
  "vitest": "^4.1.5",
150
- "vue": "^3.5.33",
151
- "@tsdown/css": "0.22.0-beta.2",
152
- "@tsdown/exe": "0.22.0-beta.2"
150
+ "vue": "^3.5.34",
151
+ "@tsdown/css": "0.22.0",
152
+ "@tsdown/exe": "0.22.0"
153
153
  },
154
154
  "prettier": "@sxzz/prettier-config",
155
155
  "scripts": {