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'