Refactor env file generation and validation
This commit replaces the previous use of execSync to generate .env.local files with the use of writeFileSync. It also updates the corresponding path and default value in the validation process. This change provides a more efficient and safer way to create these files and correctly update the related prompts.
This commit is contained in:
@@ -199,8 +199,8 @@ export function createEnvironmentVariablesValidatorGenerator(
|
||||
type: 'input',
|
||||
name: 'path',
|
||||
message:
|
||||
'Where is the path to the environment variables file? Leave empty to use the generated turbo/generators/templates/env/out/.env.local',
|
||||
default: 'turbo/generators/templates/env/out/.env.local',
|
||||
'Where is the path to the environment variables file? Leave empty to use the generated turbo/generators/templates/env/.env.local',
|
||||
default: 'turbo/generators/templates/env/.env.local',
|
||||
},
|
||||
],
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user