From cd8401089d19532d1fa2dc5ebdea79200ec34630 Mon Sep 17 00:00:00 2001 From: Panagiotis Papadopoulos Date: Sun, 16 Mar 2025 02:33:27 +0100 Subject: [PATCH] build(copy-trilium): update list of useless deps paths * image-q/demo -> doesn't exist anymore (and even if it did - previous cleanup step, would've removed this anyways) * @excalidraw/excalidraw/dist/* -> updated to point to the dev folder * boxicons -> only fonts and css folders are used, so remove the other ones * jimp -> updated paths and removed non-existent path fixing here for historical reasons, next step is to move these over to copy-dist.ts --- bin/copy-trilium.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/copy-trilium.sh b/bin/copy-trilium.sh index 6aea1175c..f6030a6ec 100755 --- a/bin/copy-trilium.sh +++ b/bin/copy-trilium.sh @@ -12,11 +12,11 @@ fi if [[ -d "$BUILD_DIR"/node_modules ]]; then # cleanup of useless files in dependencies - for d in 'image-q/demo' \ - '@excalidraw/excalidraw/dist/excalidraw-assets-dev' '@excalidraw/excalidraw/dist/excalidraw.development.js' '@excalidraw/excalidraw/dist/excalidraw-with-preact.development.js' \ + for d in \ + '@excalidraw/excalidraw/dist/dev' \ 'mermaid/dist/mermaid.js' \ - 'boxicons/svg' 'boxicons/node_modules/react'/* \ - '@jimp/plugin-print/fonts' 'jimp/browser' 'jimp/fonts'; do + 'boxicons/svg' 'boxicons/node_modules' 'boxicons/src' 'boxicons/iconjar' \ + '@jimp/plugin-print/fonts' 'jimp/dist/browser'; do [[ -e "$BUILD_DIR"/node_modules/"$d" ]] && rm -r "$BUILD_DIR"/node_modules/"$d" done fi