@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.
@@ -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 installMethod = cachedInstallMethod?.installMethod
269
- ?? detectInstallMethodFromSignals({
270
- packageRoot,
271
- currentBinPath,
272
- globalPrefix,
273
- yarnGlobalBin,
274
- yarnGlobalDir,
275
- });
276
- if (!cachedInstallMethod || cachedInstallMethod.currentBinPath !== currentBinPath) {
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,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nocobase/cli",
3
- "version": "2.1.11-test.2",
3
+ "version": "2.1.11-test.3",
4
4
  "description": "NocoBase Command Line Tool",
5
5
  "type": "module",
6
6
  "main": "dist/generated/command-registry.js",