Skip to content

Commit

Permalink
fix: bundle UI with @vitest/browser
Browse files Browse the repository at this point in the history
  • Loading branch information
sheremet-va committed Mar 20, 2023
1 parent be34451 commit 14091c5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/browser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"stubs"
],
"scripts": {
"build": "rimraf dist && pnpm build:node && pnpm build:client",
"build": "rimraf dist && pnpm build:node && pnpm build:client && pnpm copy",
"build:client": "vite build src/client",
"build:node": "rollup -c",
"dev:client": "vite build src/client --watch",
Expand Down
3 changes: 3 additions & 0 deletions packages/browser/scripts/copy-ui-to-browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ const browser = resolve(root, 'browser/dist/client/__vitest__/')

const files = fg.sync('**/*', { cwd: ui })

if (fs.existsSync(browser))
fs.rmSync(browser, { recursive: true })

fs.mkdirSync(browser)
fs.mkdirSync(resolve(browser, 'assets'))

Expand Down

0 comments on commit 14091c5

Please sign in to comment.