Skip to content

Commit 460d112

Browse files
committed
fix(cli): re-export vitest/config types (ViteUserConfig, etc.)
Task #56 narrowed `export * from 'vitest/config'` to an explicit list, but missed the vitest-specific type aliases (ViteUserConfig, ViteUserConfigExport, TestProjectConfiguration, TestUserConfig, etc.). Downstream like vue-mini imports `ViteUserConfig` from 'vite-plus' and broke with TS2724. Add the full set of vitest-only type exports. Runtime exports (mergeConfig, defineConfig, loadConfigFromFile) still come from vite-plus-core only to avoid star-export conflicts.
1 parent dd76ace commit 460d112

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

packages/cli/src/index.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,20 @@ export {
1111
defineProject,
1212
} from 'vitest/config';
1313

14+
export type {
15+
TestProjectConfiguration,
16+
TestProjectInlineConfiguration,
17+
TestTagDefinition,
18+
TestUserConfig,
19+
UserProjectConfigExport,
20+
UserProjectConfigFn,
21+
UserWorkspaceConfig,
22+
ViteUserConfig,
23+
ViteUserConfigExport,
24+
ViteUserConfigFn,
25+
ViteUserConfigFnObject,
26+
ViteUserConfigFnPromise,
27+
WatcherTriggerPattern,
28+
} from 'vitest/config';
29+
1430
export { defineConfig, lazyPlugins };

0 commit comments

Comments
 (0)