mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 13:50:49 +00:00
fix(release): classify packaged runtime deps roots
This commit is contained in:
@@ -705,9 +705,10 @@ export async function runPluginRegistryPostinstallMigration(params = {}) {
|
||||
|
||||
export function isSourceCheckoutRoot(params) {
|
||||
const pathExists = params.existsSync ?? existsSync;
|
||||
const hasPostinstallInventory = pathExists(join(params.packageRoot, DIST_INVENTORY_PATH));
|
||||
return (
|
||||
(pathExists(join(params.packageRoot, ".git")) ||
|
||||
pathExists(join(params.packageRoot, "pnpm-workspace.yaml"))) &&
|
||||
(pathExists(join(params.packageRoot, "pnpm-workspace.yaml")) && !hasPostinstallInventory)) &&
|
||||
pathExists(join(params.packageRoot, "src")) &&
|
||||
pathExists(join(params.packageRoot, "extensions"))
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user