@app-config/settings
Advanced tools
Comparing version 2.7.1 to 2.7.2
@@ -35,6 +35,6 @@ "use strict"; | ||
if (process.env.APP_CONFIG_SETTINGS_FOLDER) { | ||
return path_1.resolve(process.env.APP_CONFIG_SETTINGS_FOLDER); | ||
return (0, path_1.resolve)(process.env.APP_CONFIG_SETTINGS_FOLDER); | ||
} | ||
const oldConfigDir = path_1.join(os_1.homedir(), '.app-config'); | ||
const { config: configDir } = env_paths_1.default('app-config', { suffix: '' }); | ||
const oldConfigDir = (0, path_1.join)((0, os_1.homedir)(), '.app-config'); | ||
const { config: configDir } = (0, env_paths_1.default)('app-config', { suffix: '' }); | ||
if (fs.pathExistsSync(oldConfigDir)) { | ||
@@ -48,3 +48,3 @@ logging_1.logger.warn(`Moving ${oldConfigDir} to ${configDir}`); | ||
async function loadSettings() { | ||
const path = path_1.join(settingsDirectory(), 'settings.yml'); | ||
const path = (0, path_1.join)(settingsDirectory(), 'settings.yml'); | ||
const source = new node_1.FileSource(path); | ||
@@ -67,4 +67,4 @@ logging_1.logger.verbose(`Loading settings from ${path}`); | ||
settings = Promise.resolve(newSettings); | ||
const path = path_1.join(settingsDirectory(), 'settings.yml'); | ||
const stringified = core_1.stringify(newSettings, core_1.FileType.YAML); | ||
const path = (0, path_1.join)(settingsDirectory(), 'settings.yml'); | ||
const stringified = (0, core_1.stringify)(newSettings, core_1.FileType.YAML); | ||
logging_1.logger.verbose(`Saving settings to ${path}`); | ||
@@ -71,0 +71,0 @@ await fs.outputFile(path, stringified); |
{ | ||
"name": "@app-config/settings", | ||
"description": "User settings for @app-config", | ||
"version": "2.7.1", | ||
"version": "2.7.2", | ||
"license": "MPL-2.0", | ||
@@ -33,6 +33,6 @@ "author": { | ||
"dependencies": { | ||
"@app-config/core": "^2.7.1", | ||
"@app-config/logging": "^2.7.1", | ||
"@app-config/node": "^2.7.1", | ||
"@app-config/utils": "^2.7.1", | ||
"@app-config/core": "^2.7.2", | ||
"@app-config/logging": "^2.7.2", | ||
"@app-config/node": "^2.7.2", | ||
"@app-config/utils": "^2.7.2", | ||
"env-paths": "2", | ||
@@ -42,3 +42,3 @@ "fs-extra": "7" | ||
"devDependencies": { | ||
"@app-config/test-utils": "^2.7.1" | ||
"@app-config/test-utils": "^2.7.2" | ||
}, | ||
@@ -45,0 +45,0 @@ "prettier": "@lcdev/prettier", |
Sorry, the diff of this file is not supported yet
10800
Updated@app-config/core@^2.7.2
Updated@app-config/logging@^2.7.2
Updated@app-config/node@^2.7.2
Updated@app-config/utils@^2.7.2