@friggframework/devtools 2.0.0--canary.414.451bd3d.0 → 2.0.0--canary.414.e55499d.0

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.
@@ -39,39 +39,61 @@ async function deployCommand(options) {
39
39
  !options.skipEnvValidation
40
40
  ) {
41
41
  console.warn(
42
- '⚠️ Warning: Missing environment variables detected'
42
+ `⚠️ Warning: Missing ${validation.missing.length} environment variables: ${validation.missing.join(', ')}`
43
+ );
44
+ console.warn(
45
+ ' These variables are optional and deployment will continue'
43
46
  );
44
47
  console.warn(
45
48
  ' Run with --skip-env-validation to bypass this check'
46
49
  );
47
50
  }
48
51
 
49
- // Only pass the environment variables defined in app definition
50
- integrationEnvironmentVariables = Object.fromEntries(
51
- envVars
52
- .map((key) => [key, process.env[key]])
53
- .filter(([_, value]) => value !== undefined)
54
- );
52
+ // Pass essential system variables + app-defined environment variables
53
+ integrationEnvironmentVariables = {
54
+ // Essential system variables needed to run serverless
55
+ PATH: process.env.PATH,
56
+ HOME: process.env.HOME,
57
+ USER: process.env.USER,
58
+
59
+ // App-defined environment variables
60
+ ...Object.fromEntries(
61
+ envVars
62
+ .map((key) => [key, process.env[key]])
63
+ .filter(([_, value]) => value !== undefined)
64
+ )
65
+ };
55
66
  } catch (validatorError) {
56
67
  // Validator not available in current version, just warn
57
68
  const missing = envVars.filter((v) => !process.env[v]);
58
69
  if (missing.length > 0) {
59
70
  console.warn(
60
- `⚠️ Warning: Missing environment variables: ${missing.join(
71
+ `⚠️ Warning: Missing ${missing.length} environment variables: ${missing.join(
61
72
  ', '
62
73
  )}`
63
74
  );
64
75
  console.warn(
65
- ' These should be set in your CI/CD environment or .env file'
76
+ ' These variables are optional and deployment will continue'
77
+ );
78
+ console.warn(
79
+ ' Set them in your CI/CD environment or .env file if needed'
66
80
  );
67
81
  }
68
82
 
69
- // Only pass the environment variables defined in app definition
70
- integrationEnvironmentVariables = Object.fromEntries(
71
- envVars
72
- .map((key) => [key, process.env[key]])
73
- .filter(([_, value]) => value !== undefined)
74
- );
83
+ // Pass essential system variables + app-defined environment variables
84
+ integrationEnvironmentVariables = {
85
+ // Essential system variables needed to run serverless
86
+ PATH: process.env.PATH,
87
+ HOME: process.env.HOME,
88
+ USER: process.env.USER,
89
+
90
+ // App-defined environment variables
91
+ ...Object.fromEntries(
92
+ envVars
93
+ .map((key) => [key, process.env[key]])
94
+ .filter(([_, value]) => value !== undefined)
95
+ )
96
+ };
75
97
  }
76
98
  }
77
99
  } catch (error) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@friggframework/devtools",
3
3
  "prettier": "@friggframework/prettier-config",
4
- "version": "2.0.0--canary.414.451bd3d.0",
4
+ "version": "2.0.0--canary.414.e55499d.0",
5
5
  "dependencies": {
6
6
  "@aws-sdk/client-ec2": "^3.835.0",
7
7
  "@aws-sdk/client-kms": "^3.835.0",
@@ -9,8 +9,8 @@
9
9
  "@babel/eslint-parser": "^7.18.9",
10
10
  "@babel/parser": "^7.25.3",
11
11
  "@babel/traverse": "^7.25.3",
12
- "@friggframework/schemas": "2.0.0--canary.414.451bd3d.0",
13
- "@friggframework/test": "2.0.0--canary.414.451bd3d.0",
12
+ "@friggframework/schemas": "2.0.0--canary.414.e55499d.0",
13
+ "@friggframework/test": "2.0.0--canary.414.e55499d.0",
14
14
  "@hapi/boom": "^10.0.1",
15
15
  "@inquirer/prompts": "^5.3.8",
16
16
  "axios": "^1.7.2",
@@ -32,8 +32,8 @@
32
32
  "serverless-http": "^2.7.0"
33
33
  },
34
34
  "devDependencies": {
35
- "@friggframework/eslint-config": "2.0.0--canary.414.451bd3d.0",
36
- "@friggframework/prettier-config": "2.0.0--canary.414.451bd3d.0",
35
+ "@friggframework/eslint-config": "2.0.0--canary.414.e55499d.0",
36
+ "@friggframework/prettier-config": "2.0.0--canary.414.e55499d.0",
37
37
  "prettier": "^2.7.1",
38
38
  "serverless": "3.39.0",
39
39
  "serverless-dotenv-plugin": "^6.0.0",
@@ -65,5 +65,5 @@
65
65
  "publishConfig": {
66
66
  "access": "public"
67
67
  },
68
- "gitHead": "451bd3d3806486912081d804266987b1861bdd5d"
68
+ "gitHead": "e55499d6104d712aff851c67611367f89784daff"
69
69
  }