Skip to content

Commit

Permalink
Use relative path from workspace to vite.config in extends path
Browse files Browse the repository at this point in the history
  • Loading branch information
ghengeveld committed Aug 27, 2024
1 parent 02ba82a commit 534fb2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/addons/vitest/src/postinstall.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export default async function postInstall(options: PostinstallOptions) {
export default defineWorkspace([
'${relative(dirname(browserWorkspaceFile), rootConfig)}',
{
extends: '${viteConfig || ''}',
extends: '${viteConfig ? relative(dirname(browserWorkspaceFile), viteConfig) : ''}',
plugins: [
storybookTest(),${vitestInfo.frameworkPluginCall ? '\n' + vitestInfo.frameworkPluginCall : ''}
],
Expand Down

0 comments on commit 534fb2b

Please sign in to comment.