*Remove the need to add a file extension since all files should be JSON
This commit is contained in:
parent
e11e94c61c
commit
618ab73d14
|
@ -99,7 +99,7 @@ export default class Config {
|
|||
assert(!Array.isArray(data));
|
||||
|
||||
const configDir = this.str("configdir");
|
||||
const fullPath = Path.join(configDir, file);
|
||||
const fullPath = Path.join(configDir, `${file}.json`);
|
||||
|
||||
if (!fs.existsSync(configDir)) {
|
||||
fs.mkdirSync(configDir, { recursive: true });
|
||||
|
|
Loading…
Reference in New Issue