fix(update): harden install verification flow

This commit is contained in:
Tam Nhu Tran committed 2026-04-10 22:44:46 -04:00
1 parent 59e04cb56f
commit a4496ff1d9
3 files changed
+149 -139

No files matched your search

+6
View File
@@ -123,6 +123,12 @@ function inferInstallFromPath(
normalizedPath.includes('/global/') &&
normalizedPath.includes('/node_modules/@kaitranntt/ccs')
) {
const pnpmFlatMatch = normalizedPath.match(/\/global\/([^/]+)\/node_modules\/@kaitranntt\/ccs/);
if (!pnpmFlatMatch || pnpmFlatMatch[1] === 'lib') {
return null;
}
return {
manager: 'pnpm',
prefix: getPrefixBeforeMarker(targetPath, `${path.sep}global${path.sep}`),