Skip to content

Commit

Permalink
Stop writing an empty config file
Browse files Browse the repository at this point in the history
  • Loading branch information
macmv committed Sep 20, 2024
1 parent 9e4afd6 commit e5f0871
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 0 additions & 2 deletions src/commands/project/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,6 @@ export class ProjectInitCommand extends Command {
);
}

ProjectConfig.initialConfig(schemaDir).save(projectPath);

const shellConfig = ShellConfig.readWithOverrides({
projectPath: projectPath,
});
Expand Down
4 changes: 1 addition & 3 deletions src/lib/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,7 @@ export class ShellConfig {
const rootConfig =
opts?.rootConfig ?? ini.parse(readFileOpt(getRootConfigPath()));
const projectConfigPath = opts?.projectPath ?? getProjectConfigPath();
const projectConfig =
opts?.projectConfig ??
(projectConfigPath ? ini.parse(readFile(projectConfigPath)) : undefined);
const projectConfig = opts?.projectConfig ?? {};

return new ShellConfig({
rootConfig,
Expand Down

0 comments on commit e5f0871

Please sign in to comment.