diff --git a/apps/client/package.json b/apps/client/package.json index 0494c8bce5..bdc8085eaf 100644 --- a/apps/client/package.json +++ b/apps/client/package.json @@ -90,6 +90,6 @@ "happy-dom": "20.8.9", "lightningcss": "1.32.0", "script-loader": "0.7.2", - "vite-plugin-static-copy": "3.4.0" + "vite-plugin-static-copy": "4.0.0" } } diff --git a/apps/client/vite.config.mts b/apps/client/vite.config.mts index 8c6debfc08..0893774919 100644 --- a/apps/client/vite.config.mts +++ b/apps/client/vite.config.mts @@ -19,15 +19,15 @@ if (isDev) { plugins = [ viteStaticCopy({ targets: assets.map((asset) => ({ - src: `src/${asset}/*`, - dest: asset + src: `src/${asset}/**/*`, + dest: asset, + rename: { stripBase: 2 } })) }), viteStaticCopy({ - structured: true, targets: [ { - src: "../../node_modules/@excalidraw/excalidraw/dist/prod/fonts/*", + src: "../../node_modules/@excalidraw/excalidraw/dist/prod/fonts/**/*", dest: "", } ] diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 0e531e0489..0930c06901 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -404,8 +404,8 @@ importers: specifier: 0.7.2 version: 0.7.2 vite-plugin-static-copy: - specifier: 3.4.0 - version: 3.4.0(vite@8.0.3(@types/node@24.12.0)(esbuild@0.27.4)(jiti@2.6.1)(less@4.1.3)(sass-embedded@1.91.0)(sass@1.91.0)(terser@5.44.0)(tsx@4.21.0)(yaml@2.8.2)) + specifier: 4.0.0 + version: 4.0.0(vite@8.0.3(@types/node@24.12.0)(esbuild@0.27.4)(jiti@2.6.1)(less@4.1.3)(sass-embedded@1.91.0)(sass@1.91.0)(terser@5.44.0)(tsx@4.21.0)(yaml@2.8.2)) apps/db-compare: dependencies: @@ -15409,11 +15409,11 @@ packages: vite: optional: true - vite-plugin-static-copy@3.4.0: - resolution: {integrity: sha512-ekryzCw0ouAOE8tw4RvVL/dfqguXzumsV3FBKoKso4MQ1MUUrUXtl5RI4KpJQUNGqFEsg9kxl4EvDl02YtA9VQ==} - engines: {node: ^18.0.0 || >=20.0.0} + vite-plugin-static-copy@4.0.0: + resolution: {integrity: sha512-TTf6cVTV4M2pH2Wfr3zhevdRsIQezfm2ltDkSfkjqvvdryJHYQyNoPISvuytX3r9jFZV0yVeMYyGTsAvAH2XLw==} + engines: {node: ^22.0.0 || >=24.0.0} peerDependencies: - vite: ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0 + vite: ^6.0.0 || ^7.0.0 || ^8.0.0 vite-plugin-svgo@2.0.0: resolution: {integrity: sha512-WaiOUlmt1fKw1w/WWJnx9gVk42D1BASKZmGCPpy6iTLE5iIemN2lim3MwI7Rffyt3aQnPrLfLSLnI8ZUJ9s49g==} @@ -34360,7 +34360,7 @@ snapshots: - rollup - supports-color - vite-plugin-static-copy@3.4.0(vite@8.0.3(@types/node@24.12.0)(esbuild@0.27.4)(jiti@2.6.1)(less@4.1.3)(sass-embedded@1.91.0)(sass@1.91.0)(terser@5.44.0)(tsx@4.21.0)(yaml@2.8.2)): + vite-plugin-static-copy@4.0.0(vite@8.0.3(@types/node@24.12.0)(esbuild@0.27.4)(jiti@2.6.1)(less@4.1.3)(sass-embedded@1.91.0)(sass@1.91.0)(terser@5.44.0)(tsx@4.21.0)(yaml@2.8.2)): dependencies: chokidar: 3.6.0 p-map: 7.0.4