@mono-labs/cli 0.0.63 → 0.0.65

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/lib/app.js CHANGED
@@ -30,9 +30,9 @@ program
30
30
  .name(programName)
31
31
  .description(pkg.description || '')
32
32
  .version(version);
33
- const EXPO_PUBLIC_API_URL =
34
- (process.env.EXPO_PUBLIC_API_URL &&
35
- process.env.EXPO_PUBLIC_API_URL.length > 0) ||
33
+ const NEXT_PUBLIC_API_URL =
34
+ (process.env.NEXT_PUBLIC_API_URL &&
35
+ process.env.NEXT_PUBLIC_API_URL.length > 0) ||
36
36
  STAGING_URL;
37
37
 
38
38
  export const generateEnvValues = (
@@ -42,7 +42,7 @@ export const generateEnvValues = (
42
42
  ) => {
43
43
  return {
44
44
  ...process.env,
45
- EXPO_PUBLIC_API_URL,
45
+ NEXT_PUBLIC_API_URL,
46
46
  NEXT_FORCE_PROD: forceProd,
47
47
  EXPO_PRIVATE_API_URL: ngrokUrl,
48
48
  EXPO_UNSTABLE_ATLAS: useAtlas,
@@ -47,11 +47,11 @@ program
47
47
 
48
48
  let envObj = generateEnvValues(NEXT_FORCE_PROD, '', false);
49
49
  if (!isDev) {
50
- envObj.EXPO_PUBLIC_API_URL = `${STAGING_URL}`;
50
+ envObj.NEXT_PUBLIC_API_URL = `${STAGING_URL}`;
51
51
  envObj.NEXT_FORCE_PROD = 'true';
52
52
  } else {
53
- const publicUrl = process.env.EXPO_PUBLIC_API_URL || `${STAGING_URL}`;
54
- envObj.EXPO_PUBLIC_API_URL = publicUrl;
53
+ const publicUrl = process.env.NEXT_PUBLIC_API_URL || `${STAGING_URL}`;
54
+ envObj.NEXT_PUBLIC_API_URL = publicUrl;
55
55
  }
56
56
  console.log('envObj', envObj);
57
57
  envObj.EAS_BUILD_PROFILE = profile; // your custom variable
@@ -6,6 +6,7 @@ import { getRootJson, getHasteConfig } from '../loadFromRoot.js';
6
6
  const WorkSpaceDirectory = '${dir}';
7
7
 
8
8
  export function executeCommandsIfWorkspaceAction(action, commands = []) {
9
+ console.log('commands', commands);
9
10
  const { config } = getHasteConfig();
10
11
  const workspacemap = config.workspace?.packageMaps || {};
11
12
  console.log('we here');
@@ -49,3 +50,18 @@ export function executeCommandsIfWorkspaceAction(action, commands = []) {
49
50
  });
50
51
  }
51
52
  }
53
+
54
+ yarn [
55
+ 'workspace',
56
+ 'infra',
57
+ 'cdk',
58
+ 'deploy',
59
+ '--outputs-file',
60
+ './outputs.json',
61
+ '-c',
62
+ 'owner=dev',
63
+ '-c',
64
+ 'region=us-east-2',
65
+ '--app',
66
+ 'yarn dlx ts-node --prefer-ts-exts bin/backend.ts'
67
+ ] { stdio: 'inherit', shell: true }
@@ -203,12 +203,12 @@ export async function dev(_forceProd, useAtlas, argServices, stage) {
203
203
 
204
204
  let envObj = generateEnvValues(forceProd, ngrokUrl, useAtlas);
205
205
  if (stage) {
206
- envObj.EXPO_PUBLIC_API_URL = `${STAGING_URL}`;
206
+ envObj.NEXT_PUBLIC_API_URL = `${STAGING_URL}`;
207
207
  envObj.ApiUrl = `${STAGING_URL}`;
208
208
  envObj.NEXT_FORCE_PROD = 'true';
209
209
  } else {
210
- const publicUrl = process.env.EXPO_PUBLIC_API_URL || `${STAGING_URL}`;
211
- envObj.EXPO_PUBLIC_API_URL = publicUrl;
210
+ const publicUrl = process.env.NEXT_PUBLIC_API_URL || `${STAGING_URL}`;
211
+ envObj.NEXT_PUBLIC_API_URL = publicUrl;
212
212
  envObj.ApiUrl = `${STAGING_URL}`;
213
213
  }
214
214
 
@@ -17,7 +17,7 @@ program
17
17
 
18
18
  let envObj = generateEnvValues(true, '', false);
19
19
 
20
- envObj.EXPO_PUBLIC_API_URL = `${STAGING_URL}`;
20
+ envObj.NEXT_PUBLIC_API_URL = `${STAGING_URL}`;
21
21
  envObj.NEXT_FORCE_PROD = 'true';
22
22
  envObj.EAS_BUILD_PROFILE = 'production';
23
23
 
@@ -5,7 +5,7 @@ import { program } from '../../app.js';
5
5
  import { STAGING_URL } from '../../config.js';
6
6
  import { getEASBranches } from './eas.js';
7
7
 
8
- const EXPO_PUBLIC_API_URL = STAGING_URL;
8
+ const NEXT_PUBLIC_API_URL = STAGING_URL;
9
9
  const NEXT_FORCE_PROD = true;
10
10
  const EXPO_BUILD_PROFILE = 'production';
11
11
 
@@ -25,7 +25,7 @@ program
25
25
  env: {
26
26
  ...process.env,
27
27
  NEXT_FORCE_PROD,
28
- EXPO_PUBLIC_API_URL,
28
+ NEXT_PUBLIC_API_URL,
29
29
  EXPO_BUILD_PROFILE,
30
30
  },
31
31
  });
@@ -74,7 +74,7 @@ program
74
74
  env: {
75
75
  ...process.env,
76
76
  NEXT_FORCE_PROD,
77
- EXPO_PUBLIC_API_URL,
77
+ NEXT_PUBLIC_API_URL,
78
78
  EXPO_BUILD_PROFILE,
79
79
  },
80
80
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mono-labs/cli",
3
- "version": "0.0.63",
3
+ "version": "0.0.65",
4
4
  "description": "A CLI tool for building and deploying projects",
5
5
  "type": "module",
6
6
  "main": "index.js",