@nocobase/cli 2.1.11-test.2 → 2.1.11-test.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/self-manager.js +13 -9
- package/package.json +1 -1
package/dist/lib/self-manager.js
CHANGED
|
@@ -265,15 +265,19 @@ export async function inspectSelfInstall(options = {}) {
|
|
|
265
265
|
const globalPrefix = cachedInstallMethod?.globalPrefix ?? await readGlobalPrefix(commandOutputFn);
|
|
266
266
|
const yarnGlobalDir = cachedInstallMethod?.yarnGlobalDir ?? await readYarnGlobalDir(commandOutputFn);
|
|
267
267
|
const yarnGlobalBin = cachedInstallMethod?.yarnGlobalBin ?? await readYarnGlobalBin(commandOutputFn);
|
|
268
|
-
const
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
268
|
+
const detectedInstallMethod = detectInstallMethodFromSignals({
|
|
269
|
+
packageRoot,
|
|
270
|
+
currentBinPath,
|
|
271
|
+
globalPrefix,
|
|
272
|
+
yarnGlobalBin,
|
|
273
|
+
yarnGlobalDir,
|
|
274
|
+
});
|
|
275
|
+
const installMethod = cachedInstallMethod?.installMethod === detectedInstallMethod
|
|
276
|
+
? cachedInstallMethod.installMethod
|
|
277
|
+
: detectedInstallMethod;
|
|
278
|
+
if (!cachedInstallMethod
|
|
279
|
+
|| cachedInstallMethod.currentBinPath !== currentBinPath
|
|
280
|
+
|| cachedInstallMethod.installMethod !== installMethod) {
|
|
277
281
|
await writeCachedInstallMethod(packageRoot, {
|
|
278
282
|
installMethod,
|
|
279
283
|
currentBinPath,
|