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:
Andras Bacsai
2025-09-23 08:54:20 +02:00
parent b1abdcee83
commit dc32bed1ae

View File

@@ -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',
], ],