From 1ef9744e043bf0891fedb06d2491cee246ff6e75 Mon Sep 17 00:00:00 2001 From: pengzhanbo Date: Thu, 11 Jul 2024 05:13:57 +0800 Subject: [PATCH] =?UTF-8?q?perf(theme):=20=E6=94=B9=E8=BF=9B=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- theme/src/node/loadConfig/findConfigPath.ts | 2 +- theme/src/shared/index.ts | 1 + theme/src/shared/options/index.ts | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/theme/src/node/loadConfig/findConfigPath.ts b/theme/src/node/loadConfig/findConfigPath.ts index 460fc947..5a636313 100644 --- a/theme/src/node/loadConfig/findConfigPath.ts +++ b/theme/src/node/loadConfig/findConfigPath.ts @@ -21,7 +21,7 @@ export async function findConfigPath(app: App, configPath?: string): Promise { - paths.push(resolve(cwd, `./${configPath}.${ext}`)) + paths.push(resolve(cwd, `./${CONFIG_FILE_NAME}.${ext}`)) paths.push(resolve(cwd, `${source}/${CONFIG_FILE_NAME}.${ext}`)) paths.push(resolve(cwd, `./.vuepress/${CONFIG_FILE_NAME}.${ext}`)) }) diff --git a/theme/src/shared/index.ts b/theme/src/shared/index.ts index 6a5e025d..056fb3cd 100644 --- a/theme/src/shared/index.ts +++ b/theme/src/shared/index.ts @@ -7,3 +7,4 @@ export * from './sidebar.js' export * from './navbar.js' export * from './notes.js' export * from './auto-frontmatter.js' +export * from './theme-data.js' diff --git a/theme/src/shared/options/index.ts b/theme/src/shared/options/index.ts index 8181f71c..fcc83290 100644 --- a/theme/src/shared/options/index.ts +++ b/theme/src/shared/options/index.ts @@ -40,7 +40,7 @@ export interface PlumeThemeOptions extends PlumeThemeLocaleOptions { export type PlumeThemeLocaleOptions = PlumeThemeData export type PlumeThemeData = PlumeThemeLocaleData & { - locales?: LocaleConfig> + locales?: LocaleConfig> } export * from './locale.js'