tsdown 0.15.2 → 0.15.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.
- package/dist/index.mjs +1 -1
- package/dist/{migrate-D3HWK6xC.mjs → migrate-Buw8lGN7.mjs} +1 -1
- package/dist/package-x7iVusai.mjs +5 -0
- package/dist/plugins.mjs +1 -1
- package/dist/run.mjs +2 -2
- package/dist/{src-CJAG-MXu.mjs → src-AiuiQJQr.mjs} +7 -4
- package/package.json +1 -1
- package/dist/package-13Z93fyS.mjs +0 -5
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineConfig } from "./config-CCGWF4al.mjs";
|
|
2
|
-
import { build, buildSingle, shimFile } from "./src-
|
|
2
|
+
import { build, buildSingle, shimFile } from "./src-AiuiQJQr.mjs";
|
|
3
3
|
import { globalLogger } from "./logger-C09npKHT.mjs";
|
|
4
4
|
|
|
5
5
|
export { build, buildSingle, defineConfig, globalLogger, shimFile };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { globalLogger } from "./logger-C09npKHT.mjs";
|
|
2
|
-
import { version } from "./package-
|
|
2
|
+
import { version } from "./package-x7iVusai.mjs";
|
|
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/plugins.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./config-CCGWF4al.mjs";
|
|
2
|
-
import { ExternalPlugin, NodeProtocolPlugin, ReportPlugin, ShebangPlugin } from "./src-
|
|
2
|
+
import { ExternalPlugin, NodeProtocolPlugin, ReportPlugin, ShebangPlugin } from "./src-AiuiQJQr.mjs";
|
|
3
3
|
import "./logger-C09npKHT.mjs";
|
|
4
4
|
|
|
5
5
|
export { ExternalPlugin, NodeProtocolPlugin, ReportPlugin, ShebangPlugin };
|
package/dist/run.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { globalLogger, resolveComma, toArray } from "./logger-C09npKHT.mjs";
|
|
3
|
-
import { version } from "./package-
|
|
3
|
+
import { version } from "./package-x7iVusai.mjs";
|
|
4
4
|
import module from "node:module";
|
|
5
5
|
import process from "node:process";
|
|
6
6
|
import { dim } from "ansis";
|
|
@@ -22,7 +22,7 @@ cli.command("[...files]", "Bundle files", {
|
|
|
22
22
|
await build$1(flags);
|
|
23
23
|
});
|
|
24
24
|
cli.command("migrate", "Migrate from tsup to tsdown").option("-c, --cwd <dir>", "Working directory").option("-d, --dry-run", "Dry run").action(async (args) => {
|
|
25
|
-
const { migrate } = await import("./migrate-
|
|
25
|
+
const { migrate } = await import("./migrate-Buw8lGN7.mjs");
|
|
26
26
|
await migrate(args);
|
|
27
27
|
});
|
|
28
28
|
async function runCLI() {
|
|
@@ -133,7 +133,7 @@ async function attw(options) {
|
|
|
133
133
|
const tarball = await readFile(tarballPath);
|
|
134
134
|
const pkg = attwCore.createPackageFromTarballData(tarball);
|
|
135
135
|
const checkResult = await attwCore.checkPackage(pkg, attwOptions);
|
|
136
|
-
if (checkResult.types !== false && checkResult.problems) {
|
|
136
|
+
if (checkResult.types !== false && checkResult.problems.length) {
|
|
137
137
|
const problems = checkResult.problems.filter((problem) => {
|
|
138
138
|
if ("resolutionKind" in problem) return !profiles[profile]?.includes(problem.resolutionKind);
|
|
139
139
|
return true;
|
|
@@ -700,10 +700,13 @@ async function resolveConfig(userConfig) {
|
|
|
700
700
|
if (fromVite) {
|
|
701
701
|
const viteUserConfig = await loadViteConfig(fromVite === true ? "vite" : fromVite, cwd);
|
|
702
702
|
if (viteUserConfig) {
|
|
703
|
-
if (Array.isArray(alias)) throw new TypeError("Unsupported resolve.alias in Vite config. Use object instead of array");
|
|
704
|
-
if (viteUserConfig.plugins) plugins = [viteUserConfig.plugins, plugins];
|
|
705
703
|
const viteAlias = viteUserConfig.resolve?.alias;
|
|
706
|
-
if (
|
|
704
|
+
if (Array.isArray(viteAlias)) throw new TypeError("Unsupported resolve.alias in Vite config. Use object instead of array");
|
|
705
|
+
if (viteAlias) alias = {
|
|
706
|
+
...alias,
|
|
707
|
+
...viteAlias
|
|
708
|
+
};
|
|
709
|
+
if (viteUserConfig.plugins) plugins = [viteUserConfig.plugins, plugins];
|
|
707
710
|
}
|
|
708
711
|
}
|
|
709
712
|
ignoreWatch = toArray(ignoreWatch).map((ignore) => {
|
package/package.json
CHANGED