Skip to content

Commit

Permalink
fix(browser): produce valid config file if preview provider is used (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
sheremet-va authored Aug 8, 2024
1 parent eae3bf4 commit 7f0ae29
Show file tree
Hide file tree
Showing 6 changed files with 143 additions and 339 deletions.
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
"dependencies": {
"@vueuse/core": "^10.11.0",
"vue": "^3.4.35"
"vue": "^3.4.37"
},
"devDependencies": {
"@iconify-json/carbon": "^1.1.37",
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
"unplugin-vue-components": "^0.27.3",
"vite": "^5.0.0",
"vite-plugin-pages": "^0.32.3",
"vue": "^3.4.35",
"vue": "^3.4.37",
"vue-router": "^4.4.2",
"vue-virtual-scroller": "2.0.0-beta.8"
}
Expand Down
4 changes: 2 additions & 2 deletions packages/vitest/src/create/browser/creator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ async function generateWorkspaceFile(options: {
` },`,
`])`,
'',
].filter(c => c != null).join('\n')
].filter(c => typeof c === 'string').join('\n')
await writeFile(options.configPath, workspaceContent)
}

Expand Down Expand Up @@ -308,7 +308,7 @@ async function generateFrameworkConfigFile(options: {
` },`,
`})`,
'',
].join('\n')
].filter(t => typeof t === 'string').join('\n')
// this file is only generated if there is already NO root config which is an edge case
await writeFile(options.configPath, configContent)
}
Expand Down
Loading

0 comments on commit 7f0ae29

Please sign in to comment.