Skip to content

Commit

Permalink
feat: expose searchForWorkspaceRoot util (#4958)
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Sep 23, 2021
1 parent ed384cf commit d0f7bf1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/node/index.ts
@@ -1,5 +1,5 @@
export * from './config'
export { createServer } from './server'
export { createServer, searchForWorkspaceRoot } from './server'
export { build } from './build'
export { optimizeDeps } from './optimizer'
export { send } from './server/send'
Expand Down
2 changes: 2 additions & 0 deletions packages/vite/src/node/server/index.ts
Expand Up @@ -58,6 +58,8 @@ import { searchForWorkspaceRoot } from './searchRoot'
import { CLIENT_DIR } from '../constants'
import { performance } from 'perf_hooks'

export { searchForWorkspaceRoot } from './searchRoot'

export interface ServerOptions {
host?: string | boolean
port?: number
Expand Down

0 comments on commit d0f7bf1

Please sign in to comment.