Skip to content

Commit

Permalink
examples が pnpm build に成功した
Browse files Browse the repository at this point in the history
  • Loading branch information
voluntas committed Oct 7, 2024
1 parent fb5c2b4 commit 8f77e7a
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 33 deletions.
1 change: 1 addition & 0 deletions examples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "media-processors-examples",
"scripts": {
"dev": "vite",
"preview": "vite preview",
"build": "vite build",
"lint": "biome lint .",
"fmt": "biome format --write .",
Expand Down
18 changes: 18 additions & 0 deletions examples/vite.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,24 @@ import { defineConfig } from 'vite'
export default defineConfig({
resolve: {
preserveSymlinks: true,
alias: {
'@shiguredo/virtual-background': resolve(
__dirname,
'../packages/virtual-background/dist/virtual_background.mjs',
),
'@shiguredo/noise-suppression': resolve(
__dirname,
'../packages/noise-suppression/dist/noise_suppression.mjs',
),
'@shiguredo/light-adjustment': resolve(
__dirname,
'../packages/light-adjustment/dist/light_adjustment.mjs',
),
'@shiguredo/light-adjustment-gpu': resolve(
__dirname,
'../packages/light-adjustment-gpu/dist/light_adjustment_gpu.mjs',
),
},
},
optimizeDeps: {
exclude: [
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"author": "Shiguredo Inc.",
"license": "Apache-2.0",
"scripts": {
"dev": "vite",
"build": "pnpm -r --filter=./packages/* build",
"lint": "pnpm -r --filter=./packages/* lint",
"fmt": "pnpm -r --filter=./packages/* fmt",
Expand All @@ -25,7 +24,7 @@
"typescript": "5.5.4",
"vite": "5.4.8"
},
"packageManager": "pnpm@9.5.0",
"packageManager": "pnpm@9.12.0",
"engines": {
"node": ">=18"
}
Expand Down
31 changes: 0 additions & 31 deletions vite.config.mjs

This file was deleted.

0 comments on commit 8f77e7a

Please sign in to comment.