Compare commits
No commits in common. "302181c70701dcf79cd7cd68e4816ac394ff0795" and "e11e94c61c92ae7b0eeabd43bc65176de75084fb" have entirely different histories.
302181c707
...
e11e94c61c
|
@ -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}.json`);
|
||||
const fullPath = path_1.default.join(configDir, file);
|
||||
if (!fs_1.default.existsSync(configDir)) {
|
||||
fs_1.default.mkdirSync(configDir, { recursive: true });
|
||||
}
|
||||
|
|
|
@ -99,7 +99,7 @@ export default class Config {
|
|||
assert(!Array.isArray(data));
|
||||
|
||||
const configDir = this.str("configdir");
|
||||
const fullPath = Path.join(configDir, `${file}.json`);
|
||||
const fullPath = Path.join(configDir, file);
|
||||
|
||||
if (!fs.existsSync(configDir)) {
|
||||
fs.mkdirSync(configDir, { recursive: true });
|
||||
|
|
Loading…
Reference in New Issue