fix(release): classify packaged runtime deps roots

This commit is contained in:
Peter Steinberger
2026-05-02 02:17:00 +01:00
parent 3f6b67fd4e
commit 1844c1fb38
4 changed files with 53 additions and 6 deletions

View File

@@ -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"))
);