tsdown 0.17.0-beta.6 → 0.17.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.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as defineConfig } from "./config-DLSWqKoz.mjs";
|
|
2
|
-
import { n as buildSingle, r as shimFile, t as build } from "./src-
|
|
3
|
-
import { a as globalLogger } from "./package-
|
|
2
|
+
import { n as buildSingle, r as shimFile, t as build } from "./src-v58M1R6D.mjs";
|
|
3
|
+
import { a as globalLogger } from "./package-D-MHLh9E.mjs";
|
|
4
4
|
|
|
5
5
|
export { build, buildSingle, defineConfig, globalLogger, shimFile };
|
|
@@ -161,7 +161,7 @@ function hue2rgb(p, q, t) {
|
|
|
161
161
|
|
|
162
162
|
//#endregion
|
|
163
163
|
//#region package.json
|
|
164
|
-
var version = "0.17.0
|
|
164
|
+
var version = "0.17.0";
|
|
165
165
|
|
|
166
166
|
//#endregion
|
|
167
167
|
export { globalLogger as a, importWithError as c, pkgExists as d, promiseWithResolvers as f, toArray as g, slash as h, generateColor as i, matchPattern as l, resolveRegex as m, LogLevels as n, prettyFormat as o, resolveComma as p, createLogger as r, prettyName as s, version as t, noop as u };
|
package/dist/plugins.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as ShebangPlugin, c as ExternalPlugin, i as WatchPlugin, o as ReportPlugin, s as NodeProtocolPlugin } from "./src-
|
|
2
|
-
import "./package-
|
|
1
|
+
import { a as ShebangPlugin, c as ExternalPlugin, i as WatchPlugin, o as ReportPlugin, s as NodeProtocolPlugin } from "./src-v58M1R6D.mjs";
|
|
2
|
+
import "./package-D-MHLh9E.mjs";
|
|
3
3
|
|
|
4
4
|
export { ExternalPlugin, NodeProtocolPlugin, ReportPlugin, ShebangPlugin, WatchPlugin };
|
package/dist/run.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { a as globalLogger, g as toArray, p as resolveComma, t as version } from "./package-
|
|
2
|
+
import { a as globalLogger, g as toArray, p as resolveComma, t as version } from "./package-D-MHLh9E.mjs";
|
|
3
3
|
import module from "node:module";
|
|
4
4
|
import { dim } from "ansis";
|
|
5
5
|
import { VERSION } from "rolldown";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createRequire as __cjs_createRequire } from "node:module";
|
|
2
2
|
const __cjs_require = __cjs_createRequire(import.meta.url);
|
|
3
|
-
import { a as globalLogger, c as importWithError, d as pkgExists, f as promiseWithResolvers, g as toArray, h as slash, i as generateColor, l as matchPattern, m as resolveRegex, n as LogLevels, o as prettyFormat, p as resolveComma, r as createLogger, s as prettyName, t as version, u as noop } from "./package-
|
|
3
|
+
import { a as globalLogger, c as importWithError, d as pkgExists, f as promiseWithResolvers, g as toArray, h as slash, i as generateColor, l as matchPattern, m as resolveRegex, n as LogLevels, o as prettyFormat, p as resolveComma, r as createLogger, s as prettyName, t as version, u as noop } from "./package-D-MHLh9E.mjs";
|
|
4
4
|
import { builtinModules, isBuiltin } from "node:module";
|
|
5
5
|
import path, { dirname, join, normalize, sep } from "node:path";
|
|
6
6
|
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
@@ -739,16 +739,16 @@ function warnLegacyCJS(config) {
|
|
|
739
739
|
//#region src/features/copy.ts
|
|
740
740
|
async function copy(options) {
|
|
741
741
|
if (!options.copy) return;
|
|
742
|
-
const
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
742
|
+
const resolved = toArray(typeof options.copy === "function" ? await options.copy(options) : options.copy).map((dir) => {
|
|
743
|
+
const from = path.resolve(options.cwd, typeof dir === "string" ? dir : dir.from);
|
|
744
|
+
return [from, typeof dir === "string" ? path.resolve(options.outDir, path.basename(from)) : path.resolve(options.cwd, dir.to)];
|
|
745
|
+
});
|
|
746
|
+
const name = prettyName(options.name);
|
|
747
|
+
await Promise.all(resolved.map(([from, to]) => {
|
|
748
|
+
options.logger.info(name, `Copying files from ${path.relative(options.cwd, from)} to ${path.relative(options.cwd, to)}`);
|
|
749
|
+
return fsCopy(from, to);
|
|
747
750
|
}));
|
|
748
751
|
}
|
|
749
|
-
function cp$1(cwd, from, to) {
|
|
750
|
-
return fsCopy(path.resolve(cwd, from), path.resolve(cwd, to));
|
|
751
|
-
}
|
|
752
752
|
|
|
753
753
|
//#endregion
|
|
754
754
|
//#region src/features/hooks.ts
|
|
@@ -1336,7 +1336,7 @@ async function resolveInputOptions(config, format, configFiles, bundle, cjsDts,
|
|
|
1336
1336
|
}
|
|
1337
1337
|
if (target) plugins.push(await LightningCSSPlugin({ target }));
|
|
1338
1338
|
plugins.push(ShebangPlugin(logger, cwd, name, isDualFormat));
|
|
1339
|
-
if (globImport) plugins.push(importGlobPlugin());
|
|
1339
|
+
if (globImport) plugins.push(importGlobPlugin({ root: cwd }));
|
|
1340
1340
|
}
|
|
1341
1341
|
if (report && LogLevels[logger.level] >= 3) plugins.push(ReportPlugin(report, logger, cwd, cjsDts, name, isDualFormat));
|
|
1342
1342
|
if (watch$1) plugins.push(WatchPlugin(configFiles, bundle));
|
|
@@ -1614,8 +1614,8 @@ async function buildSingle(config, configFiles, isDualFormat, clean, restart, do
|
|
|
1614
1614
|
return configs$1;
|
|
1615
1615
|
}
|
|
1616
1616
|
async function postBuild() {
|
|
1617
|
-
|
|
1618
|
-
|
|
1617
|
+
await copy(config);
|
|
1618
|
+
if (!updated) await done(bundle);
|
|
1619
1619
|
await hooks.callHook("build:done", {
|
|
1620
1620
|
...context,
|
|
1621
1621
|
chunks
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tsdown",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.17.0
|
|
4
|
+
"version": "0.17.0",
|
|
5
5
|
"description": "The Elegant Bundler for Libraries",
|
|
6
6
|
"author": "Kevin Deng <sxzz@sxzz.moe>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"import-without-cache": "^0.2.2",
|
|
84
84
|
"obug": "^2.1.1",
|
|
85
85
|
"rolldown": "1.0.0-beta.53",
|
|
86
|
-
"rolldown-plugin-dts": "^0.18.
|
|
86
|
+
"rolldown-plugin-dts": "^0.18.2",
|
|
87
87
|
"semver": "^7.7.3",
|
|
88
88
|
"tinyexec": "^1.0.2",
|
|
89
89
|
"tinyglobby": "^0.2.15",
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
"@sxzz/test-utils": "^0.5.13",
|
|
99
99
|
"@types/node": "^24.10.1",
|
|
100
100
|
"@types/semver": "^7.7.1",
|
|
101
|
-
"@typescript/native-preview": "7.0.0-dev.
|
|
101
|
+
"@typescript/native-preview": "7.0.0-dev.20251204.1",
|
|
102
102
|
"@unocss/eslint-plugin": "^66.5.10",
|
|
103
103
|
"@vitejs/devtools": "^0.0.0-alpha.18",
|
|
104
104
|
"@vitest/coverage-v8": "4.0.15",
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
"pkg-types": "^2.3.0",
|
|
112
112
|
"prettier": "^3.7.4",
|
|
113
113
|
"publint": "^0.3.15",
|
|
114
|
-
"rolldown-plugin-require-cjs": "^0.3.
|
|
114
|
+
"rolldown-plugin-require-cjs": "^0.3.3",
|
|
115
115
|
"typescript": "~5.9.3",
|
|
116
116
|
"unocss": "^66.5.10",
|
|
117
117
|
"unplugin-lightningcss": "^0.4.3",
|