node-karin 0.8.5 → 0.8.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/utils/config.js +1 -1
- package/package.json +1 -1
package/lib/utils/config.js
CHANGED
|
@@ -244,7 +244,7 @@ export const config = new (class Cfg {
|
|
|
244
244
|
*/
|
|
245
245
|
getYaml (type, name, isWatch = false) {
|
|
246
246
|
/** 文件路径 */
|
|
247
|
-
const file = type === 'defSet' ? `${this.pkgCfgDir}/${name}.yaml` : `${this.cfgDir}/${name}.yaml`
|
|
247
|
+
const file = type === 'defSet' ? `${this.pkgCfgDir}/${name}.yaml` : `${this.cfgDir}/config/${name}.yaml`
|
|
248
248
|
/** 读取文件 */
|
|
249
249
|
const data = Yaml.parse(fs.readFileSync(file, 'utf8'))
|
|
250
250
|
/** 监听文件 */
|