tsdown 0.11.0-beta.2 → 0.11.0-beta.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.
- package/dist/{config.d-2sS1Su5e.d.ts → config-DjKymy8A.d.ts} +1 -1
- package/dist/config.d.ts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/{migrate-Dm0fpIdu.js → migrate-D0EMWH91.js} +1 -1
- package/dist/{options.d-BLasdguL.d.ts → options-ALItLMNc.d.ts} +14 -7
- package/dist/package-CNKNizJc.js +5 -0
- package/dist/plugins.d.ts +3 -3
- package/dist/run.js +2 -2
- package/package.json +13 -13
- package/dist/package-DFBc-KMm.js +0 -5
package/dist/config.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { UserConfig, UserConfigFn } from "./options
|
|
2
|
-
import { defineConfig$1 as defineConfig } from "./config
|
|
1
|
+
import { UserConfig, UserConfigFn } from "./options-ALItLMNc.js";
|
|
2
|
+
import { defineConfig$1 as defineConfig } from "./config-DjKymy8A.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
|
|
2
|
-
import { defineConfig$1 as defineConfig } from "./config
|
|
1
|
+
import { BuildContext, Options, ResolvedOptions, TsdownHooks, UserConfig } from "./options-ALItLMNc.js";
|
|
2
|
+
import { defineConfig$1 as defineConfig } from "./config-DjKymy8A.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-
|
|
2
|
+
import { version } from "./package-CNKNizJc.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";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { Options
|
|
5
|
-
import { Options as Options$
|
|
6
|
-
import {
|
|
1
|
+
import { Hookable } from "/Users/kevin/Developer/open-source/tsdown/node_modules/.pnpm/hookable@5.5.3/node_modules/hookable/dist/index.mjs";
|
|
2
|
+
import { PackageJson } from "/Users/kevin/Developer/open-source/tsdown/node_modules/.pnpm/pkg-types@2.1.0/node_modules/pkg-types/dist/index.mjs";
|
|
3
|
+
import { BuildOptions, ExternalOption, InputOption, InputOptions, InternalModuleFormat, MinifyOptions, ModuleFormat, OutputOptions, Plugin } from "/Users/kevin/Developer/open-source/tsdown/node_modules/.pnpm/rolldown@1.0.0-beta.8-commit.534fde3/node_modules/rolldown/dist/index.mjs";
|
|
4
|
+
import { Options } from "/Users/kevin/Developer/open-source/tsdown/node_modules/.pnpm/publint@0.3.12/node_modules/publint/src/index-node.js";
|
|
5
|
+
import { Options as Options$1 } from "/Users/kevin/Developer/open-source/tsdown/node_modules/.pnpm/rolldown-plugin-dts@0.11.0_rolldown@1.0.0-beta.8-commit.534fde3_typescript@5.8.3/node_modules/rolldown-plugin-dts/dist/index.js";
|
|
6
|
+
import { Options as Options$2 } from "/Users/kevin/Developer/open-source/tsdown/node_modules/.pnpm/unplugin-unused@0.4.4/node_modules/unplugin-unused/dist/index.js";
|
|
7
7
|
|
|
8
8
|
//#region src/utils/types.d.ts
|
|
9
9
|
type Overwrite<T, U> = Omit<T, keyof U> & U;
|
|
@@ -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
|
/**
|
package/dist/plugins.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ReportPlugin$1 as ReportPlugin, ResolvedOptions } from "./options
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { ReportPlugin$1 as ReportPlugin, ResolvedOptions } from "./options-ALItLMNc.js";
|
|
2
|
+
import { PackageJson } from "/Users/kevin/Developer/open-source/tsdown/node_modules/.pnpm/pkg-types@2.1.0/node_modules/pkg-types/dist/index.mjs";
|
|
3
|
+
import { Plugin } from "/Users/kevin/Developer/open-source/tsdown/node_modules/.pnpm/rolldown@1.0.0-beta.8-commit.534fde3/node_modules/rolldown/dist/index.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/features/external.d.ts
|
|
6
6
|
declare function ExternalPlugin(options: ResolvedOptions): Plugin;
|
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-
|
|
4
|
+
import { version } from "./package-CNKNizJc.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-
|
|
23
|
+
const { migrate } = await import("./migrate-D0EMWH91.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.
|
|
3
|
+
"version": "0.11.0-beta.4",
|
|
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.
|
|
66
|
+
"empathic": "^1.1.0",
|
|
67
67
|
"hookable": "^5.5.3",
|
|
68
|
-
"rolldown": "1.0.0-beta.8-commit.
|
|
69
|
-
"rolldown-plugin-dts": "^0.
|
|
68
|
+
"rolldown": "1.0.0-beta.8-commit.534fde3",
|
|
69
|
+
"rolldown-plugin-dts": "^0.11.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.
|
|
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.
|
|
84
|
+
"@unocss/eslint-plugin": "^66.1.0-beta.13",
|
|
84
85
|
"bumpp": "^10.1.0",
|
|
85
|
-
"eslint": "^9.
|
|
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.
|
|
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.
|
|
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.
|
|
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": "
|
|
113
|
-
"dev": "
|
|
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 .",
|