@@ -40,14 +40,6 @@ const SECRET_CONFIG_KEYS = new Set([
4040 "voyageApiKey" ,
4141] ) ;
4242
43- interface ParsedOptions {
44- string : string [ ] ;
45- number : string [ ] ;
46- boolean : string [ ] ;
47- array : string [ ] ;
48- alias : Record < string , string > ;
49- }
50-
5143interface EnvironmentVariable {
5244 name : string ;
5345 description : string ;
@@ -91,7 +83,7 @@ function extractZodDescriptions(): Record<string, ConfigMetadata> {
9183}
9284
9385function generateEnvironmentVariables (
94- options : ParsedOptions ,
86+ options : typeof OPTIONS ,
9587 zodMetadata : Record < string , ConfigMetadata >
9688) : EnvironmentVariable [ ] {
9789 const envVars : EnvironmentVariable [ ] = [ ] ;
@@ -232,15 +224,8 @@ function updateServerJsonEnvVars(envVars: EnvironmentVariable[]): void {
232224
233225function main ( ) : void {
234226 const zodMetadata = extractZodDescriptions ( ) ;
235- const options = {
236- string : Array . from ( OPTIONS . string ) ,
237- number : Array . from ( OPTIONS . number ) ,
238- boolean : Array . from ( OPTIONS . boolean ) ,
239- array : Array . from ( OPTIONS . array ) ,
240- alias : { ...OPTIONS . alias } ,
241- } ;
242227
243- const envVars = generateEnvironmentVariables ( options , zodMetadata ) ;
228+ const envVars = generateEnvironmentVariables ( OPTIONS , zodMetadata ) ;
244229 updateServerJsonEnvVars ( envVars ) ;
245230}
246231
0 commit comments