tsdown 0.11.0-beta.2 → 0.11.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.
@@ -1,4 +1,4 @@
1
- import { UserConfig, UserConfigFn } from "./options.d-BLasdguL.js";
1
+ import { UserConfig, UserConfigFn } from "./options-7rAywKbw.js";
2
2
 
3
3
  //#region src/config.d.ts
4
4
  /**
package/dist/config.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- import { UserConfig, UserConfigFn } from "./options.d-BLasdguL.js";
2
- import { defineConfig$1 as defineConfig } from "./config.d-2sS1Su5e.js";
1
+ import { UserConfig, UserConfigFn } from "./options-7rAywKbw.js";
2
+ import { defineConfig$1 as defineConfig } from "./config-C9bfeI27.js";
3
3
  export { UserConfig, UserConfigFn, defineConfig };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { BuildContext, Options, ResolvedOptions, TsdownHooks, UserConfig } from "./options.d-BLasdguL.js";
2
- import { defineConfig$1 as defineConfig } from "./config.d-2sS1Su5e.js";
1
+ import { BuildContext, Options, ResolvedOptions, TsdownHooks, UserConfig } from "./options-7rAywKbw.js";
2
+ import { defineConfig$1 as defineConfig } from "./config-C9bfeI27.js";
3
3
 
4
4
  //#region src/utils/logger.d.ts
5
5
  declare class Logger {
@@ -1,5 +1,5 @@
1
1
  import { logger } from "./logger-DKXLpcNj.js";
2
- import { version } from "./package-DFBc-KMm.js";
2
+ import { version } from "./package-Cbg4AOwu.js";
3
3
  import process from "node:process";
4
4
  import { bold, green, underline } from "ansis";
5
5
  import { readFile, unlink, writeFile } from "node:fs/promises";
@@ -105,16 +105,18 @@ interface Options$3 {
105
105
  /** @default 'node' */
106
106
  platform?: "node" | "neutral" | "browser";
107
107
  inputOptions?: InputOptions | ((options: InputOptions, format: NormalizedFormat) => Awaitable<InputOptions | void | null>);
108
- /** @default 'es' */
108
+ /** @default ['es'] */
109
109
  format?: Format | Format[];
110
110
  globalName?: string;
111
111
  /** @default 'dist' */
112
112
  outDir?: string;
113
+ /** @default false */
113
114
  sourcemap?: Sourcemap;
114
115
  /**
115
116
  * Clean directories before build.
116
117
  *
117
118
  * Default to output directory.
119
+ * @default true
118
120
  */
119
121
  clean?: boolean | string[];
120
122
  /** @default false */
@@ -161,11 +163,13 @@ interface Options$3 {
161
163
  /** @default true */
162
164
  treeshake?: boolean;
163
165
  plugins?: InputOptions["plugins"];
166
+ /** @default false */
164
167
  silent?: boolean;
165
168
  /**
166
169
  * Config file path
167
170
  */
168
171
  config?: boolean | string;
172
+ /** @default false */
169
173
  watch?: boolean | string | string[];
170
174
  /**
171
175
  * You can specify command to be executed after a successful build, specially useful for Watch mode
@@ -173,6 +177,7 @@ interface Options$3 {
173
177
  onSuccess?: string | ((config: ResolvedOptions) => void | Promise<void>);
174
178
  /**
175
179
  * Skip bundling `node_modules`.
180
+ * @default false
176
181
  */
177
182
  skipNodeModulesBundle?: boolean;
178
183
  /**
@@ -191,11 +196,13 @@ interface Options$3 {
191
196
  /**
192
197
  * Enable unused dependencies check with `unplugin-unused`
193
198
  * Requires `unplugin-unused` to be installed.
199
+ * @default false
194
200
  */
195
201
  unused?: boolean | Options$2;
196
202
  /**
197
203
  * Run publint after bundling.
198
204
  * Requires `publint` to be installed.
205
+ * @default false
199
206
  */
200
207
  publint?: boolean | Options;
201
208
  /**
@@ -0,0 +1,5 @@
1
+ //#region package.json
2
+ var version = "0.11.0-beta.3";
3
+
4
+ //#endregion
5
+ export { version };
package/dist/plugins.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { ReportPlugin$1 as ReportPlugin, ResolvedOptions } from "./options.d-BLasdguL.js";
1
+ import { ReportPlugin$1 as ReportPlugin, ResolvedOptions } from "./options-7rAywKbw.js";
2
2
  import { Plugin } from "rolldown";
3
3
  import { PackageJson } from "pkg-types";
4
4
 
package/dist/run.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { logger } from "./logger-DKXLpcNj.js";
3
3
  import { resolveComma, toArray } from "./general-nv5tYplM.js";
4
- import { version } from "./package-DFBc-KMm.js";
4
+ import { version } from "./package-Cbg4AOwu.js";
5
5
  import process from "node:process";
6
6
  import { dim } from "ansis";
7
7
  import Debug from "debug";
@@ -20,7 +20,7 @@ cli.command("[...files]", "Bundle files", { ignoreOptionDefaultValue: true }).op
20
20
  await build$1(flags);
21
21
  });
22
22
  cli.command("migrate", "Migrate from tsup to tsdown").option("-c, --cwd <dir>", "Working directory").option("-d, --dry-run", "Dry run").action(async (args) => {
23
- const { migrate } = await import("./migrate-Dm0fpIdu.js");
23
+ const { migrate } = await import("./migrate-DY7fY60S.js");
24
24
  await migrate(args);
25
25
  });
26
26
  async function runCLI() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tsdown",
3
- "version": "0.11.0-beta.2",
3
+ "version": "0.11.0-beta.3",
4
4
  "description": "The Elegant Bundler for Libraries",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -63,42 +63,42 @@
63
63
  "chokidar": "^4.0.3",
64
64
  "debug": "^4.4.0",
65
65
  "diff": "^7.0.0",
66
- "empathic": "^1.0.0",
66
+ "empathic": "^1.1.0",
67
67
  "hookable": "^5.5.3",
68
68
  "rolldown": "1.0.0-beta.8-commit.852c603",
69
- "rolldown-plugin-dts": "^0.9.7",
69
+ "rolldown-plugin-dts": "^0.10.0",
70
70
  "semver": "^7.7.1",
71
71
  "tinyexec": "^1.0.1",
72
72
  "tinyglobby": "^0.2.13",
73
73
  "unconfig": "^7.3.2"
74
74
  },
75
75
  "devDependencies": {
76
+ "@oxc-node/core": "^0.0.27",
76
77
  "@sxzz/eslint-config": "^6.2.0",
77
78
  "@sxzz/prettier-config": "^2.2.1",
78
- "@sxzz/test-utils": "^0.5.5",
79
+ "@sxzz/test-utils": "^0.5.6",
79
80
  "@types/debug": "^4.1.12",
80
81
  "@types/diff": "^7.0.2",
81
82
  "@types/node": "^22.15.3",
82
83
  "@types/semver": "^7.7.0",
83
- "@unocss/eslint-plugin": "^66.1.0-beta.12",
84
+ "@unocss/eslint-plugin": "^66.1.0-beta.13",
84
85
  "bumpp": "^10.1.0",
85
- "eslint": "^9.25.1",
86
+ "eslint": "^9.26.0",
86
87
  "lightningcss": "^1.29.3",
87
88
  "pkg-types": "^2.1.0",
88
89
  "prettier": "^3.5.3",
89
90
  "publint": "^0.3.12",
90
91
  "tsup": "^8.4.0",
91
- "tsx": "^4.19.4",
92
92
  "typedoc": "^0.28.3",
93
93
  "typedoc-plugin-markdown": "^4.6.3",
94
94
  "typescript": "~5.8.3",
95
- "unocss": "^66.1.0-beta.12",
95
+ "unocss": "^66.1.0-beta.13",
96
96
  "unplugin-lightningcss": "^0.3.3",
97
97
  "unplugin-unused": "^0.4.4",
98
- "vite": "^6.3.3",
98
+ "vite": "^6.3.4",
99
99
  "vitepress": "^1.6.3",
100
100
  "vitepress-plugin-group-icons": "^1.5.2",
101
- "vitepress-plugin-llms": "^1.1.1",
101
+ "vitepress-plugin-llms": "^1.1.3",
102
102
  "vitest": "^3.1.2",
103
103
  "vue": "^3.5.13"
104
104
  },
@@ -109,8 +109,8 @@
109
109
  "scripts": {
110
110
  "lint": "eslint --cache .",
111
111
  "lint:fix": "pnpm run lint --fix",
112
- "build": "tsx ./src/run.ts",
113
- "dev": "tsx ./src/run.ts",
112
+ "build": "node --import @oxc-node/core/register ./src/run.ts",
113
+ "dev": "node --import @oxc-node/core/register ./src/run.ts",
114
114
  "test": "vitest",
115
115
  "typecheck": "tsc --noEmit",
116
116
  "format": "prettier --cache --write .",
@@ -1,5 +0,0 @@
1
- //#region package.json
2
- var version = "0.11.0-beta.2";
3
-
4
- //#endregion
5
- export { version };