Compare commits

...

2 Commits

2 changed files with 2 additions and 2 deletions

2
dist/index.js vendored
View File

@ -82,7 +82,7 @@ class Config {
(0, bsert_1.default)(typeof data === "object");
(0, bsert_1.default)(!Array.isArray(data));
const configDir = this.str("configdir");
const fullPath = path_1.default.join(configDir, file);
const fullPath = path_1.default.join(configDir, `${file}.json`);
if (!fs_1.default.existsSync(configDir)) {
fs_1.default.mkdirSync(configDir, { recursive: true });
}

View File

@ -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 });