Skip to content

Commit a26563b

Browse files
authored
feat!: never create configuration files
BREAKING CHANGE: Previously a default configuration file was created when given configuration file was not found. Removed configuration file creation completely. It was completely useless.
1 parent 5b33d89 commit a26563b

File tree

2 files changed

+0
-116
lines changed

2 files changed

+0
-116
lines changed

lib/config/config-templates.ts

Lines changed: 0 additions & 97 deletions
This file was deleted.

lib/config/config.ts

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import chalk from 'chalk';
44
import { workerData, isMainThread } from 'worker_threads';
55

66
import { getConfigWithDefaults } from './validator';
7-
import { CONFIGURATION_FILE_TEMPLATE } from './config-templates';
87
import { loadConfig } from './load';
98
import { WorkerData } from '@engine/types';
109

@@ -45,25 +44,7 @@ export function resolveConfigurationLocation(): string {
4544
const CONFIGURATION_FILE = resolveConfigurationLocation();
4645

4746
if (!fs.existsSync(CONFIGURATION_FILE)) {
48-
let defaultCreated = false;
49-
50-
if (CONFIGURATION_FILE === DEFAULT_CONFIGURATION_FILE_JS) {
51-
fs.writeFileSync(
52-
CONFIGURATION_FILE,
53-
CONFIGURATION_FILE_TEMPLATE,
54-
'utf8'
55-
);
56-
defaultCreated = true;
57-
}
58-
5947
console.log(chalk.red(`Missing configuration file ${CONFIGURATION_FILE}.`));
60-
if (defaultCreated) {
61-
console.log(
62-
chalk.green(
63-
`Default configuration file created: ${DEFAULT_CONFIGURATION_FILE_JS}`
64-
)
65-
);
66-
}
6748
process.exit();
6849
}
6950

0 commit comments

Comments
 (0)