tsdown 0.11.0-beta.5 → 0.11.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.
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BuildContext, Options, ResolvedOptions, TsdownHooks, UserConfig } from "./options-7rAywKbw.js";
|
|
1
|
+
import { BuildContext, Options, ResolvedOptions, TsdownHooks, UserConfig, UserConfigFn } from "./options-7rAywKbw.js";
|
|
2
2
|
import { defineConfig$1 as defineConfig } from "./config-B-A_eh0M.js";
|
|
3
3
|
|
|
4
4
|
//#region src/utils/logger.d.ts
|
|
@@ -28,4 +28,4 @@ declare const pkgRoot: string;
|
|
|
28
28
|
declare function buildSingle(config: ResolvedOptions, clean: () => Promise<void>): Promise<(() => Promise<void>) | undefined>;
|
|
29
29
|
|
|
30
30
|
//#endregion
|
|
31
|
-
export { BuildContext, Options, TsdownHooks, UserConfig, build, buildSingle, defineConfig, logger, pkgRoot };
|
|
31
|
+
export { BuildContext, Options, TsdownHooks, UserConfig, UserConfigFn, build, buildSingle, defineConfig, logger, pkgRoot };
|
package/dist/index.js
CHANGED
|
@@ -4,6 +4,7 @@ import { logger } from "./logger-DKXLpcNj.js";
|
|
|
4
4
|
import { debounce, resolveComma, toArray } from "./general-nv5tYplM.js";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
import process from "node:process";
|
|
7
|
+
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
7
8
|
import { blue, bold, dim, green, underline } from "ansis";
|
|
8
9
|
import Debug from "debug";
|
|
9
10
|
import { build as build$1 } from "rolldown";
|
|
@@ -13,7 +14,6 @@ import { glob } from "tinyglobby";
|
|
|
13
14
|
import { stat } from "node:fs/promises";
|
|
14
15
|
import { createHooks } from "hookable";
|
|
15
16
|
import readline from "node:readline";
|
|
16
|
-
import { pathToFileURL } from "node:url";
|
|
17
17
|
import { loadConfig } from "unconfig";
|
|
18
18
|
import minVersion from "semver/ranges/min-version.js";
|
|
19
19
|
import { up } from "empathic/find";
|
|
@@ -556,7 +556,8 @@ async function build(userOptions = {}) {
|
|
|
556
556
|
build(userOptions);
|
|
557
557
|
}
|
|
558
558
|
}
|
|
559
|
-
const
|
|
559
|
+
const dirname$1 = path.dirname(fileURLToPath(import.meta.url));
|
|
560
|
+
const pkgRoot = path.resolve(dirname$1, "..");
|
|
560
561
|
/**
|
|
561
562
|
* Build a single configuration, without watch and shortcuts features.
|
|
562
563
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { logger } from "./logger-DKXLpcNj.js";
|
|
2
|
-
import { version } from "./package-
|
|
2
|
+
import { version } from "./package-r0-JZYQB.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";
|
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-r0-JZYQB.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-BClsYfT0.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
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"description": "The Elegant Bundler for Libraries",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
"vue": "^3.5.13"
|
|
104
104
|
},
|
|
105
105
|
"engines": {
|
|
106
|
-
"node": ">=
|
|
106
|
+
"node": ">=18.0.0"
|
|
107
107
|
},
|
|
108
108
|
"prettier": "@sxzz/prettier-config",
|
|
109
109
|
"scripts": {
|