Skip to content
This repository was archived by the owner on Apr 6, 2023. It is now read-only.

Commit e0002cc

Browse files
committed
fix: default to rootDir if workspaceDir can't be resolved
1 parent dabe04c commit e0002cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/schema/src/config/_common.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export default defineUntypedSchema({
6262
* @version 3
6363
*/
6464
workspaceDir: {
65-
$resolve: async (val, get) => val ? resolve(await get('rootDir'), val) : await findWorkspaceDir(await get('rootDir'))
65+
$resolve: async (val, get) => val ? resolve(await get('rootDir'), val) : await findWorkspaceDir(await get('rootDir')).catch(() => get('rootDir'))
6666
},
6767

6868
/**

0 commit comments

Comments
 (0)