Skip to content

Commit

Permalink
refactor: move defineClientConfig back to client package
Browse files Browse the repository at this point in the history
  • Loading branch information
meteorlxy committed Feb 20, 2024
1 parent 69b6a1e commit 651dac5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
8 changes: 8 additions & 0 deletions packages/client/src/utils/defineClientConfig.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import type { ClientConfig } from '../types/index.js'

/**
* A helper function to help you define vuepress client config file
*/
export const defineClientConfig = (
clientConfig: ClientConfig = {},
): ClientConfig => clientConfig
1 change: 1 addition & 0 deletions packages/client/src/utils/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export * from './defineClientConfig.js'
export * from './withBase.js'
9 changes: 0 additions & 9 deletions packages/vuepress/src/client.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1 @@
import type { ClientConfig } from '@vuepress/client'

/**
* A helper function to help you define vuepress client config file
*/
export const defineClientConfig = (
clientConfig: ClientConfig = {},
): ClientConfig => clientConfig

export * from '@vuepress/client'

0 comments on commit 651dac5

Please sign in to comment.