Skip to content

Build your personal knowledge base with Trilium Notes

fix(standalone): broken due to vite-plugin-static-copy update

Elian Doranae3a96b8d20c
diff --git a/apps/client-standalone/package.json b/apps/client-standalone/package.json
index 6dd7529e28..c30fa8da65 100644
--- a/apps/client-standalone/package.json
+++ b/apps/client-standalone/package.json
@@ -84,6 +84,6 @@
"cross-env": "7.0.3",
"happy-dom": "20.8.9",
"script-loader": "0.7.2",
- "vite-plugin-static-copy": "4.0.0"
+ "vite-plugin-static-copy": "4.0.1"
}
}
\ No newline at end of file
diff --git a/apps/client-standalone/vite.config.mts b/apps/client-standalone/vite.config.mts
index 64f9324402..9670012ad5 100644
--- a/apps/client-standalone/vite.config.mts
+++ b/apps/client-standalone/vite.config.mts
@@ -43,8 +43,9 @@ let plugins: any = [
sqliteWasmPlugin, // Always include SQLite WASM files
viteStaticCopy({
targets: clientAssets.map((asset) => ({
- src: `../../client/src/${asset}/*`,
- dest: asset
+ src: `../../client/src/${asset}/**/*`,
+ dest: asset,
+ rename: { stripBase: 3 }
})),
// Enable watching in development
...(isDev && {
@@ -56,8 +57,9 @@ let plugins: any = [
viteStaticCopy({
targets: [
{
- src: "../../server/src/assets/*",
- dest: "server-assets"
+ src: "../../server/src/assets/**/*",
+ dest: "server-assets",
+ rename: { stripBase: 3 }
}
]
}),
@@ -72,10 +74,9 @@ if (!isDev) {
plugins = [
...plugins,
viteStaticCopy({
- structured: true,
targets: [
{
- src: "../../../node_modules/@excalidraw/excalidraw/dist/prod/fonts/*",
+ src: "../../../node_modules/@excalidraw/excalidraw/dist/prod/fonts/**/*",
dest: "",
}
]
diff --git a/apps/client/package.json b/apps/client/package.json
index 7d3354296b..dfac77848f 100644
--- a/apps/client/package.json
+++ b/apps/client/package.json
@@ -87,6 +87,6 @@
"happy-dom": "20.8.9",
"lightningcss": "1.32.0",
"script-loader": "0.7.2",
- "vite-plugin-static-copy": "4.0.0"
+ "vite-plugin-static-copy": "4.0.1"
}
}
\ No newline at end of file
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 480f85797a..643feff98f 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -419,8 +419,8 @@ importers:
specifier: 0.7.2
version: 0.7.2
vite-plugin-static-copy:
- specifier: 4.0.0
+ specifier: 4.0.1
apps/client-standalone:
dependencies:
@@ -636,8 +636,8 @@ importers:
specifier: 0.7.2
version: 0.7.2
vite-plugin-static-copy:
- specifier: 4.0.0
+ specifier: 4.0.1
apps/db-compare:
dependencies:
@@ -9447,8 +9447,8 @@ packages:
resolution: {integrity: sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ==}
- resolution: {integrity: sha512-gGgrVCoDKlIZ8fIqXBBb0pPKqDgki0Z/FSKNiQzSGj2uEYHr1tq5wmBegGwJx6QB5S5cM0khSBpi/JFHMCvsmQ==}
+ resolution: {integrity: sha512-5bJ+nf/UCpAjHM8i06fl7eLyVC9iuNAjm9qzkiu2ZGhM0VscSvS6WDPfAwkdkBuoXGM9FJSbKl6wylMwP9Ktig==}
engines: {node: ^12.22.0 || ^14.16.0 || ^16.0.0 || >=17.0.0}
@@ -11035,6 +11035,10 @@ packages:
resolution: {integrity: sha512-JmQSYYpPUqX5Jyn1mXaRwOda1uQ8HP5KAT/oDSLCzt1BYRhQU0/hDtsB1ufZfEEzMZ9aAVmsBw8+FWsIXlClWw==}
engines: {node: '>= 8'}
+ resolution: {integrity: sha512-TbqTz9cUwWyHS2Dy89P3ocAGUGxKjjLuR9z8w4WUTGAVgEj17/4nhgo2Du56i0Fm3Pm30g4iA8Lcqctc76jCzA==}
+ engines: {node: '>= 8'}
+
resolution: {integrity: sha512-xuIq7cIOt09RPRJ19gdi4b+RiNvDFYe5JH+ggNvBqGqpQXcru3PcRmOZuHBKWK1Txf9+cQ+HMVN4d6z46LZP7A==}
engines: {node: '>=8'}
@@ -13938,8 +13942,8 @@ packages:
vite:
optional: true
- resolution: {integrity: sha512-TTf6cVTV4M2pH2Wfr3zhevdRsIQezfm2ltDkSfkjqvvdryJHYQyNoPISvuytX3r9jFZV0yVeMYyGTsAvAH2XLw==}
+ resolution: {integrity: sha512-r3kQUrrimduikhyRm58ayemoxsgB8lZdn/JULLL4wpXHAZlYejtyZx7E/id7dwRtIOSYWu/tWvFjdEOTzso2MA==}
engines: {node: ^22.0.0 || >=24.0.0}
peerDependencies:
vite: ^6.0.0 || ^7.0.0 || ^8.0.0
@@ -21470,7 +21474,7 @@ snapshots:
sirv: 3.0.2
tinyglobby: 0.2.15
tinyrainbow: 3.1.0
'@vitest/[email protected]':
dependencies:
@@ -22300,7 +22304,7 @@ snapshots:
lru-cache: 7.18.3
minipass: 3.3.6
minipass-collect: 1.0.2
- minipass-flush: 1.0.5
+ minipass-flush: 1.0.7
minipass-pipeline: 1.2.4
mkdirp: 1.0.4
p-map: 4.0.0
@@ -24917,7 +24921,7 @@ snapshots:
optional: true
@@ -26232,7 +26236,7 @@ snapshots:
minipass: 3.3.6
minipass-collect: 1.0.2
minipass-fetch: 2.1.2
- minipass-flush: 1.0.5
+ minipass-flush: 1.0.7
minipass-pipeline: 1.2.4
negotiator: 0.6.4
promise-retry: 2.0.1
@@ -26810,6 +26814,10 @@ snapshots:
dependencies:
minipass: 3.3.6
+ dependencies:
+ minipass: 3.3.6
+
dependencies:
minipass: 3.3.6
@@ -26898,7 +26906,7 @@ snapshots:
'@open-draft/until': 2.1.0
'@types/cookie': 0.6.0
'@types/statuses': 2.0.6
- graphql: 16.13.1
+ graphql: 16.13.2
headers-polyfill: 4.0.3
is-node-process: 1.2.0
outvariant: 1.4.3
@@ -30110,7 +30118,7 @@ snapshots:
- rollup
- supports-color
dependencies:
chokidar: 3.6.0
p-map: 7.0.4