@corva/create-app 0.44.0-0 → 0.44.0-1
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.
|
@@ -29,8 +29,7 @@ export const apiKeyOption = new Option(
|
|
|
29
29
|
export const appVersion = new Option('--app-version [number]', 'App version (exp. 1, 2, 3)');
|
|
30
30
|
|
|
31
31
|
export const envOption = new Option('--env [string]', 'Environment to use')
|
|
32
|
-
.choices(['qa', 'staging', 'production'])
|
|
33
|
-
.default('qa');
|
|
32
|
+
.choices(['qa', 'staging', 'production']);
|
|
34
33
|
|
|
35
34
|
export const silentOption = new Option(
|
|
36
35
|
'--silent [boolean]',
|
|
@@ -20,7 +20,7 @@ export const SETUP_API_CLIENT_STEP = {
|
|
|
20
20
|
fn: async ({ dirName, options: { apiKey, env } }) => {
|
|
21
21
|
const parsedEnv = await getVarsFromDotEnv({ dirName });
|
|
22
22
|
|
|
23
|
-
const CORVA_API_ENV = env || process.env.CORVA_API_ENV ||
|
|
23
|
+
const CORVA_API_ENV = env || parsedEnv.CORVA_API_ENV || process.env.CORVA_API_ENV || 'production';
|
|
24
24
|
const AUTH_TOKEN = process.env.AUTH_TOKEN || parsedEnv.AUTH_TOKEN;
|
|
25
25
|
const API_KEY = apiKey || process.env.API_KEY || parsedEnv.API_KEY;
|
|
26
26
|
|
|
@@ -32,7 +32,7 @@ export const SETUP_API_CLIENT_STEP = {
|
|
|
32
32
|
const notification = new Notification(CORVA_API_ENV);
|
|
33
33
|
|
|
34
34
|
return {
|
|
35
|
-
CORVA_API_ENV
|
|
35
|
+
CORVA_API_ENV,
|
|
36
36
|
api,
|
|
37
37
|
notification,
|
|
38
38
|
};
|