@heyamiko/amiko-cli 0.5.6 → 0.5.7
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/index.js +4 -8
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -75089,14 +75089,10 @@ function tryLoadConfig(filePath) {
|
|
|
75089
75089
|
const raw = readFileSync2(filePath, "utf-8");
|
|
75090
75090
|
const parsed = JSON.parse(raw);
|
|
75091
75091
|
const config = {};
|
|
75092
|
-
|
|
75093
|
-
|
|
75094
|
-
|
|
75095
|
-
|
|
75096
|
-
if (parsed.amikoUserId)
|
|
75097
|
-
config.userId = parsed.amikoUserId;
|
|
75098
|
-
if (parsed.amikoPlatformUrl)
|
|
75099
|
-
config.platformUrl = parsed.amikoPlatformUrl;
|
|
75092
|
+
config.twinToken = parsed.amikoTwinToken || parsed.AMIKO_TWIN_TOKEN || parsed.AMIKO_USER_TOKEN;
|
|
75093
|
+
config.twinId = parsed.amikoTwinId || parsed.AMIKO_TWIN_ID;
|
|
75094
|
+
config.userId = parsed.amikoUserId || parsed.AMIKO_USER_ID;
|
|
75095
|
+
config.platformUrl = parsed.amikoPlatformUrl || parsed.AMIKO_PLATFORM_URL;
|
|
75100
75096
|
if (parsed.billingBase)
|
|
75101
75097
|
config.billingBase = parsed.billingBase;
|
|
75102
75098
|
if (parsed.platformKey)
|