Skip to content

Commit

Permalink
chore(deps): update dependency to auto-config-loader v2
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Dec 11, 2024
1 parent ec2ba26 commit e46a9fb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
"@types/minimist": "~1.2.2",
"@uiw/formatter": "~2.0.0",
"@wcj/markdown-to-html": "^3.0.0",
"auto-config-loader": "^1.7.4",
"auto-config-loader": "^2.0.0",
"chokidar": "^4.0.0",
"ejs": "^3.1.6",
"fs-extra": "~11.2.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/utils/conf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ export class Conf {
this.data.openSource = pkg.repository || this.data.openSource;
this.data.homepage = pkg.homepage || this.data.homepage;
}
const data = autoConf<Config>('idoc', {
const data = await autoConf<Config>('idoc', {
searchPlaces: ['idoc.yml', '.idoc.yml'],
ignoreLog: true,
});
Expand Down Expand Up @@ -232,7 +232,7 @@ export class Conf {
return this.data;
}
async getChaptersConf() {
const data = autoConf<Config['chapters']>('idoc.chapters', {
const data = await autoConf<Config['chapters']>('idoc.chapters', {
cwd: this.data.root,
searchPlaces: ['idoc.chapters.yml', '.idoc.chapters.yml'],
ignoreLog: true,
Expand Down

0 comments on commit e46a9fb

Please sign in to comment.