Compare commits

..

No commits in common. "302181c70701dcf79cd7cd68e4816ac394ff0795" and "e11e94c61c92ae7b0eeabd43bc65176de75084fb" have entirely different histories.

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)(typeof data === "object");
(0, bsert_1.default)(!Array.isArray(data)); (0, bsert_1.default)(!Array.isArray(data));
const configDir = this.str("configdir"); const configDir = this.str("configdir");
const fullPath = path_1.default.join(configDir, `${file}.json`); const fullPath = path_1.default.join(configDir, file);
if (!fs_1.default.existsSync(configDir)) { if (!fs_1.default.existsSync(configDir)) {
fs_1.default.mkdirSync(configDir, { recursive: true }); fs_1.default.mkdirSync(configDir, { recursive: true });
} }

View File

@ -99,7 +99,7 @@ export default class Config {
assert(!Array.isArray(data)); assert(!Array.isArray(data));
const configDir = this.str("configdir"); const configDir = this.str("configdir");
const fullPath = Path.join(configDir, `${file}.json`); const fullPath = Path.join(configDir, file);
if (!fs.existsSync(configDir)) { if (!fs.existsSync(configDir)) {
fs.mkdirSync(configDir, { recursive: true }); fs.mkdirSync(configDir, { recursive: true });