Merge bd57dcb844bea56c9117efa392347dfe23787132 into 5e417b44e1540f528d2ae63e3e20229a902d1db2

This commit is contained in:
しんらてんせい 2026-03-21 10:53:21 +08:00 committed by GitHub
commit c7de66d7a8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,6 +1,7 @@
import fs from "node:fs";
import path from "node:path";
import { pathToFileURL } from "node:url";
import { shouldBuildBundledCluster } from "./lib/optional-bundled-clusters.mjs";
import {
removeFileIfExists,
removePathIfExists,
@ -176,6 +177,11 @@ export function copyBundledPluginMetadata(params = {}) {
if (!dirent.isDirectory()) {
continue;
}
// Skip optional bundled clusters that are not included in this build.
// This matches the filtering logic in tsdown.config.ts.
if (!shouldBuildBundledCluster(dirent.name, process.env)) {
continue;
}
sourcePluginDirs.add(dirent.name);
const pluginDir = path.join(extensionsRoot, dirent.name);