ante-erp-cli 1.11.33 → 1.11.34
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/package.json +1 -1
- package/src/utils/config.js +9 -2
package/package.json
CHANGED
package/src/utils/config.js
CHANGED
|
@@ -24,13 +24,20 @@ export function detectInstallation(cwd = process.cwd()) {
|
|
|
24
24
|
existsSync(join(cwd, '.env'))) {
|
|
25
25
|
return cwd;
|
|
26
26
|
}
|
|
27
|
-
|
|
27
|
+
|
|
28
|
+
// Check default subdirectory (./ante-erp)
|
|
29
|
+
const defaultSubdir = join(cwd, 'ante-erp');
|
|
30
|
+
if (existsSync(join(defaultSubdir, 'docker-compose.yml')) &&
|
|
31
|
+
existsSync(join(defaultSubdir, '.env'))) {
|
|
32
|
+
return defaultSubdir;
|
|
33
|
+
}
|
|
34
|
+
|
|
28
35
|
// Check saved installation path
|
|
29
36
|
const savedPath = config.get('installPath');
|
|
30
37
|
if (savedPath && existsSync(join(savedPath, 'docker-compose.yml'))) {
|
|
31
38
|
return savedPath;
|
|
32
39
|
}
|
|
33
|
-
|
|
40
|
+
|
|
34
41
|
return null;
|
|
35
42
|
}
|
|
36
43
|
|