@mono-labs/cli 0.0.134 → 0.0.136

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/index.js CHANGED
@@ -1,8 +1,12 @@
1
1
  // Main entry point for @mono-labs/cli package
2
2
  import { generateNewEnvList } from './lib/generateNewEnvList.js';
3
- import { filterUnwantedEnvVars } from './lib/filterUnwantedEnvVars.js';
3
+ import {
4
+ filterUnwantedEnvVars,
5
+ filterUnwantedEnvVarsEAS,
6
+ } from './lib/filterUnwantedEnvVars.js';
4
7
  // Default export for convenience
5
8
  export default {
6
9
  generateNewEnvList,
7
10
  filterUnwantedEnvVars,
11
+ filterUnwantedEnvVarsEAS,
8
12
  };
@@ -1,4 +1,53 @@
1
1
  export function filterUnwantedEnvVars(env) {
2
+ const unwantedPrefixes = [
3
+ 'EFC_',
4
+ 'FPS_',
5
+ 'GIT_',
6
+ 'NVM_',
7
+ 'VSCODE_',
8
+ 'LOGONSERVER',
9
+ 'NUMBER_OF_PROCESSORS',
10
+ 'OS',
11
+ 'COREPACK',
12
+ 'PROCESSOR',
13
+ 'USERDOMAIN',
14
+ 'USERDOMAIN_ROAMINGPROFILE',
15
+ 'USERNAME',
16
+ 'CUDA',
17
+ 'SESSIONNAME',
18
+ 'ZES',
19
+ '3DVPATH',
20
+ 'APP_NAME',
21
+ 'asl.log',
22
+ 'BERRY_BIN_FOLDER',
23
+ 'CHROME_CRASHPAD_PIPE_NAME',
24
+ 'COLORTERM',
25
+ 'COMPUTERNAME',
26
+ 'CUDNN',
27
+ 'EAS_BUILD_PROFILE',
28
+ 'EAS_PROJECT_ID',
29
+ 'EXPO_UNSTABLE_ATLAS',
30
+ 'INIT_CWD',
31
+ 'JAVA_HOME',
32
+ 'LANG',
33
+ 'OneDrive',
34
+ 'ORIGINAL_XDG_CURRENT_DESKTOP',
35
+ 'PROJECT_CWD',
36
+ 'PROMPT',
37
+ 'PWD',
38
+ 'TERM_PROGRAM',
39
+ 'TERM_PROGRAM_VERSION',
40
+ '__PSLockDownPolicy',
41
+ ];
42
+ return Object.keys(env).reduce((obj, key) => {
43
+ if (!unwantedPrefixes.some((prefix) => key.startsWith(prefix))) {
44
+ obj[key] = env[key];
45
+ }
46
+ return obj;
47
+ }, {});
48
+ }
49
+
50
+ export function filterUnwantedEnvVarsEAS(env) {
2
51
  const unwantedPrefixes = [
3
52
  'EFC_',
4
53
  'FPS_',
@@ -21,13 +70,7 @@ export function filterUnwantedEnvVars(env) {
21
70
  'NUMBER_OF_PROCESSORS',
22
71
  'OS',
23
72
  'COREPACK',
24
- 'PATHEXT',
25
73
  'PROCESSOR',
26
- 'Program',
27
- 'PSModule',
28
- 'PUBLIC',
29
- 'TEMP',
30
- 'TMP',
31
74
  'USERDOMAIN',
32
75
  'USERDOMAIN_ROAMINGPROFILE',
33
76
  'USERNAME',
@@ -57,6 +100,9 @@ export function filterUnwantedEnvVars(env) {
57
100
  'TERM_PROGRAM',
58
101
  'TERM_PROGRAM_VERSION',
59
102
  '__PSLockDownPolicy',
103
+ 'PATH',
104
+ 'SystemRoot',
105
+ 'SystemDrive',
60
106
  ];
61
107
  return Object.keys(env).reduce((obj, key) => {
62
108
  if (!unwantedPrefixes.some((prefix) => key.startsWith(prefix))) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mono-labs/cli",
3
- "version": "0.0.134",
3
+ "version": "0.0.136",
4
4
  "description": "A CLI tool for building and deploying projects",
5
5
  "type": "module",
6
6
  "main": "index.js",
package/types.d.ts CHANGED
@@ -45,6 +45,9 @@ declare module '@mono-labs/cli' {
45
45
  config: HasteConfig;
46
46
  }
47
47
 
48
+ export declare function filterUnwantedEnvVarsEAS(
49
+ env: string
50
+ ): NodeJS.ProcessEnv;
48
51
  export declare function filterUnwantedEnvVars(env: string): NodeJS.ProcessEnv;
49
52
 
50
53
  // Function type declarations