mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-05 07:10:23 +00:00
fix(release): preserve shipped channel surfaces in npm tar (#52913)
* fix(channels): ship official channel catalog (#52838) * fix(release): keep shipped bundles in npm tar (#52838) * build(release): fix rebased release-check helpers (#52838)
This commit is contained in:
19
scripts/lib/bundled-plugin-build-entries.d.mts
Normal file
19
scripts/lib/bundled-plugin-build-entries.d.mts
Normal file
@@ -0,0 +1,19 @@
|
||||
export type BundledPluginBuildEntry = {
|
||||
id: string;
|
||||
hasPackageJson: boolean;
|
||||
packageJson: unknown;
|
||||
sourceEntries: string[];
|
||||
};
|
||||
|
||||
export type BundledPluginBuildEntryParams = {
|
||||
cwd?: string;
|
||||
env?: NodeJS.ProcessEnv;
|
||||
};
|
||||
|
||||
export function collectBundledPluginBuildEntries(
|
||||
params?: BundledPluginBuildEntryParams,
|
||||
): BundledPluginBuildEntry[];
|
||||
export function listBundledPluginBuildEntries(
|
||||
params?: BundledPluginBuildEntryParams,
|
||||
): Record<string, string>;
|
||||
export function listBundledPluginPackArtifacts(params?: BundledPluginBuildEntryParams): string[];
|
||||
19
scripts/lib/bundled-plugin-build-entries.d.ts
vendored
Normal file
19
scripts/lib/bundled-plugin-build-entries.d.ts
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
export type BundledPluginBuildEntry = {
|
||||
id: string;
|
||||
hasPackageJson: boolean;
|
||||
packageJson: unknown;
|
||||
sourceEntries: string[];
|
||||
};
|
||||
|
||||
export type BundledPluginBuildEntryParams = {
|
||||
cwd?: string;
|
||||
env?: NodeJS.ProcessEnv;
|
||||
};
|
||||
|
||||
export function collectBundledPluginBuildEntries(
|
||||
params?: BundledPluginBuildEntryParams,
|
||||
): BundledPluginBuildEntry[];
|
||||
export function listBundledPluginBuildEntries(
|
||||
params?: BundledPluginBuildEntryParams,
|
||||
): Record<string, string>;
|
||||
export function listBundledPluginPackArtifacts(params?: BundledPluginBuildEntryParams): string[];
|
||||
@@ -23,7 +23,9 @@ export function isOptionalBundledCluster(cluster) {
|
||||
}
|
||||
|
||||
export function shouldIncludeOptionalBundledClusters(env = process.env) {
|
||||
return env[OPTIONAL_BUNDLED_BUILD_ENV] === "1";
|
||||
// Release artifacts should preserve the last shipped upgrade surface by
|
||||
// default. Specific size-sensitive lanes can still opt out explicitly.
|
||||
return env[OPTIONAL_BUNDLED_BUILD_ENV] !== "0";
|
||||
}
|
||||
|
||||
export function hasReleasedBundledInstall(packageJson) {
|
||||
|
||||
Reference in New Issue
Block a user