diff --git a/packages/shared-lib-node/src/env.ts b/packages/shared-lib-node/src/env.ts index 75041321..99485338 100644 --- a/packages/shared-lib-node/src/env.ts +++ b/packages/shared-lib-node/src/env.ts @@ -70,11 +70,8 @@ export function loadEnvironmentVariables(argv: Options, cwd: string): Record !(key in envVars)); + throw new Error(`Missing environment variables in [${envPaths.join(', ')}]: [${missingKeys.join(', ')}]`); } return envVars; }