tsdown 0.6.7 → 0.6.9

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.
@@ -83,7 +83,7 @@ function ExternalPlugin(options, pkg) {
83
83
  debug$1("External dependency:", id);
84
84
  return {
85
85
  id,
86
- external: true
86
+ external: shouldExternal
87
87
  };
88
88
  }
89
89
  }
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineConfig } from "./config-0LDjKwZ7.js";
2
- import { ExternalPlugin, bundleDts, debounce, fsExists, fsRemove, getTempDtsDir, lowestCommonAncestor, toArray } from "./dts-Df2nwp_8.js";
2
+ import { ExternalPlugin, bundleDts, debounce, fsExists, fsRemove, getTempDtsDir, lowestCommonAncestor, toArray } from "./dts-1peUIB3t.js";
3
3
  import { debug, logger, setSilent } from "./logger-9p9U7Sx7.js";
4
4
  import path from "node:path";
5
5
  import process from "node:process";
@@ -374,12 +374,12 @@ const dirname$1 = path.dirname(fileURLToPath(import.meta.url));
374
374
  const pkgRoot = path.resolve(dirname$1, "..");
375
375
  async function buildSingle(config) {
376
376
  const { entry, external, plugins: userPlugins, outDir, format, clean, platform, alias, treeshake, sourcemap, dts, minify, watch, unused, target, define, shims, fixedExtension, onSuccess } = config;
377
- if (clean) await cleanOutDir(outDir, clean);
378
377
  const pkg = await readPackageJson(process.cwd());
379
378
  await rebuild(true);
380
379
  if (watch) return () => rebuild();
381
380
  async function rebuild(first) {
382
381
  const startTime = performance.now();
382
+ if (clean) await cleanOutDir(outDir, clean);
383
383
  await Promise.all(format.map(async (format$1) => {
384
384
  const inputOptions = await mergeUserOptions({
385
385
  input: entry,
@@ -1,4 +1,4 @@
1
- import { version } from "./package-DFHU_6-V.js";
1
+ import { version } from "./package-7shDmypH.js";
2
2
  import process from "node:process";
3
3
  import { readFile, unlink, writeFile } from "node:fs/promises";
4
4
  import consola from "consola";
@@ -0,0 +1,6 @@
1
+
2
+ //#region package.json
3
+ var version = "0.6.9";
4
+
5
+ //#endregion
6
+ export { version };
package/dist/plugins.js CHANGED
@@ -1,3 +1,3 @@
1
- import { ExternalPlugin, ResolveDtsPlugin } from "./dts-Df2nwp_8.js";
1
+ import { ExternalPlugin, ResolveDtsPlugin } from "./dts-1peUIB3t.js";
2
2
 
3
3
  export { ExternalPlugin, ResolveDtsPlugin };
package/dist/run.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { logger, setSilent } from "./logger-9p9U7Sx7.js";
2
- import { version } from "./package-DFHU_6-V.js";
2
+ import { version } from "./package-7shDmypH.js";
3
3
  import process from "node:process";
4
4
  import { VERSION } from "rolldown";
5
5
  import { dim } from "ansis";
@@ -16,7 +16,7 @@ cli.command("[...files]", "Bundle files", { ignoreOptionDefaultValue: true }).op
16
16
  await build$1(flags);
17
17
  });
18
18
  cli.command("migrate", "Migrate from tsup to tsdown").option("-c, --cwd <dir>", "Working directory").option("-d, --dry-run", "Dry run").action(async (args) => {
19
- const { migrate } = await import("./migrate-DKlBgcvw.js");
19
+ const { migrate } = await import("./migrate-BE_ZyLSg.js");
20
20
  await migrate(args);
21
21
  });
22
22
  async function runCLI() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tsdown",
3
- "version": "0.6.7",
3
+ "version": "0.6.9",
4
4
  "description": "An even faster bundler powered by Rolldown.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -57,38 +57,38 @@
57
57
  "ansis": "^3.17.0",
58
58
  "cac": "^6.7.14",
59
59
  "chokidar": "^4.0.3",
60
- "consola": "^3.4.0",
60
+ "consola": "^3.4.1",
61
61
  "debug": "^4.4.0",
62
62
  "diff": "^7.0.0",
63
63
  "oxc-resolver": "^5.0.0",
64
64
  "pkg-types": "^2.1.0",
65
- "rolldown": "1.0.0-beta.3-commit.e170e6e",
66
- "rollup": "^4.35.0",
65
+ "rolldown": "1.0.0-beta.6",
66
+ "rollup": "^4.36.0",
67
67
  "rollup-plugin-dts": "^6.1.1",
68
68
  "tinyglobby": "^0.2.12",
69
69
  "unconfig": "^7.3.1",
70
- "unplugin-isolated-decl": "^0.13.2"
70
+ "unplugin-isolated-decl": "^0.13.3"
71
71
  },
72
72
  "devDependencies": {
73
- "@sxzz/eslint-config": "^6.0.1",
73
+ "@sxzz/eslint-config": "^6.0.2",
74
74
  "@sxzz/prettier-config": "^2.2.1",
75
- "@sxzz/test-utils": "^0.5.1",
75
+ "@sxzz/test-utils": "^0.5.2",
76
76
  "@types/debug": "^4.1.12",
77
77
  "@types/diff": "^7.0.1",
78
78
  "@types/node": "^22.13.10",
79
- "bumpp": "^10.0.3",
79
+ "bumpp": "^10.1.0",
80
80
  "eslint": "^9.22.0",
81
- "oxc-transform": "^0.56.5",
81
+ "oxc-transform": "^0.60.0",
82
82
  "prettier": "^3.5.3",
83
83
  "publint": "^0.3.9",
84
84
  "tinyexec": "^0.3.2",
85
85
  "tsup": "^8.4.0",
86
86
  "tsx": "^4.19.3",
87
87
  "typescript": "~5.8.2",
88
- "unplugin-ast": "^0.14.2",
88
+ "unplugin-ast": "^0.14.3",
89
89
  "unplugin-unused": "^0.4.3",
90
- "vite": "^6.2.1",
91
- "vitest": "^3.0.8"
90
+ "vite": "^6.2.2",
91
+ "vitest": "^3.0.9"
92
92
  },
93
93
  "engines": {
94
94
  "node": ">=18.0.0"
@@ -1,6 +0,0 @@
1
-
2
- //#region package.json
3
- var version = "0.6.7";
4
-
5
- //#endregion
6
- export { version };