fix(environment-variables): update affected services in environment variable analysis
- Expanded the list of affected services in the EnvironmentVariableAnalyzer trait to include 'bun' and 'pnpm' alongside 'npm' and 'yarn'. - Improved clarity on the impact of problematic environment variables during the build process.
This commit is contained in:
@@ -13,19 +13,19 @@ trait EnvironmentVariableAnalyzer
|
|||||||
return [
|
return [
|
||||||
'NODE_ENV' => [
|
'NODE_ENV' => [
|
||||||
'problematic_values' => ['production', 'prod'],
|
'problematic_values' => ['production', 'prod'],
|
||||||
'affects' => 'Node.js/npm/yarn',
|
'affects' => 'Node.js/npm/yarn/bun/pnpm',
|
||||||
'issue' => 'Skips devDependencies installation which are often required for building (webpack, typescript, etc.)',
|
'issue' => 'Skips devDependencies installation which are often required for building (webpack, typescript, etc.)',
|
||||||
'recommendation' => 'Uncheck "Available at Buildtime" or use "development" during build',
|
'recommendation' => 'Uncheck "Available at Buildtime" or use "development" during build',
|
||||||
],
|
],
|
||||||
'NPM_CONFIG_PRODUCTION' => [
|
'NPM_CONFIG_PRODUCTION' => [
|
||||||
'problematic_values' => ['true', '1', 'yes'],
|
'problematic_values' => ['true', '1', 'yes'],
|
||||||
'affects' => 'npm',
|
'affects' => 'npm/pnpm',
|
||||||
'issue' => 'Forces npm to skip devDependencies',
|
'issue' => 'Forces npm to skip devDependencies',
|
||||||
'recommendation' => 'Remove from build-time variables or set to false',
|
'recommendation' => 'Remove from build-time variables or set to false',
|
||||||
],
|
],
|
||||||
'YARN_PRODUCTION' => [
|
'YARN_PRODUCTION' => [
|
||||||
'problematic_values' => ['true', '1', 'yes'],
|
'problematic_values' => ['true', '1', 'yes'],
|
||||||
'affects' => 'Yarn',
|
'affects' => 'Yarn/pnpm',
|
||||||
'issue' => 'Forces yarn to skip devDependencies',
|
'issue' => 'Forces yarn to skip devDependencies',
|
||||||
'recommendation' => 'Remove from build-time variables or set to false',
|
'recommendation' => 'Remove from build-time variables or set to false',
|
||||||
],
|
],
|
||||||
|
Reference in New Issue
Block a user