From feb9fa03c3159bb7d8ae4d18b41ec4633bf622de Mon Sep 17 00:00:00 2001 From: Panagiotis Papadopoulos Date: Wed, 19 Mar 2025 15:00:02 +0100 Subject: [PATCH] chore(deps): move mind-elixir related packages to devDependencies webpack takes care of bundling these, so we don't need the modules at runtime anymore --- bin/copy-dist.ts | 2 -- package-lock.json | 6 ++++-- package.json | 4 ++-- src/routes/assets.ts | 2 -- 4 files changed, 6 insertions(+), 8 deletions(-) diff --git a/bin/copy-dist.ts b/bin/copy-dist.ts index 94014c460..3b09fec27 100644 --- a/bin/copy-dist.ts +++ b/bin/copy-dist.ts @@ -68,7 +68,6 @@ try { "node_modules/katex/dist/contrib/mhchem.min.js", "node_modules/katex/dist/contrib/auto-render.min.js", "node_modules/@highlightjs/cdn-assets/highlight.min.js", - "node_modules/@mind-elixir/node-menu/dist/node-menu.umd.cjs" ]); const nodeModulesFolder = new Set([ @@ -94,7 +93,6 @@ try { "node_modules/codemirror/addon/", "node_modules/codemirror/mode/", "node_modules/codemirror/keymap/", - "node_modules/mind-elixir/dist/", "node_modules/@highlightjs/cdn-assets/languages", "node_modules/@highlightjs/cdn-assets/styles", "node_modules/leaflet/dist" diff --git a/package-lock.json b/package-lock.json index 126a73710..40161ca1a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14,7 +14,6 @@ "@excalidraw/excalidraw": "0.18.0", "@highlightjs/cdn-assets": "11.11.1", "@mermaid-js/layout-elk": "0.1.7", - "@mind-elixir/node-menu": "1.0.4", "@triliumnext/express-partial-content": "1.0.1", "archiver": "7.0.1", "async-mutex": "0.5.0", @@ -71,7 +70,6 @@ "marked": "15.0.7", "mermaid": "11.5.0", "mime-types": "2.1.35", - "mind-elixir": "4.4.2", "multer": "1.4.5-lts.1", "normalize-strings": "1.1.1", "normalize.css": "8.0.1", @@ -118,6 +116,7 @@ "@fullcalendar/list": "6.1.15", "@fullcalendar/multimonth": "6.1.15", "@fullcalendar/timegrid": "6.1.15", + "@mind-elixir/node-menu": "1.0.4", "@playwright/test": "1.51.1", "@popperjs/core": "2.11.8", "@types/archiver": "6.0.3", @@ -174,6 +173,7 @@ "jsdoc": "4.0.4", "knockout": "3.5.1", "lorem-ipsum": "2.0.8", + "mind-elixir": "4.4.2", "mini-css-extract-plugin": "2.9.2", "nodemon": "3.1.9", "postcss-loader": "8.1.1", @@ -3974,6 +3974,7 @@ "version": "1.0.4", "resolved": "https://registry.npmjs.org/@mind-elixir/node-menu/-/node-menu-1.0.4.tgz", "integrity": "sha512-xEwBakXEyVCfb8NFYmuvoXSZugxWZUa/s/bxLI8lxTKzTqhHOX4cJdp3B77ojUfnW4KvYJChlo7zkepijsmn0Q==", + "dev": true, "peerDependencies": { "mind-elixir": ">2.0.1" } @@ -15675,6 +15676,7 @@ "version": "4.4.2", "resolved": "https://registry.npmjs.org/mind-elixir/-/mind-elixir-4.4.2.tgz", "integrity": "sha512-yHsUdKYvhB/SnBY9Fb/2cPTsysKDT+nu5vQVYPFEWWniZaGszpM9gPlCB28IEcOEGpaSDGOWOTt89Qc/wFYZSw==", + "dev": true, "license": "MIT" }, "node_modules/mini-css-extract-plugin": { diff --git a/package.json b/package.json index 8db213f1c..32dc1207b 100644 --- a/package.json +++ b/package.json @@ -74,7 +74,6 @@ "@excalidraw/excalidraw": "0.18.0", "@highlightjs/cdn-assets": "11.11.1", "@mermaid-js/layout-elk": "0.1.7", - "@mind-elixir/node-menu": "1.0.4", "@triliumnext/express-partial-content": "1.0.1", "archiver": "7.0.1", "async-mutex": "0.5.0", @@ -131,7 +130,6 @@ "marked": "15.0.7", "mermaid": "11.5.0", "mime-types": "2.1.35", - "mind-elixir": "4.4.2", "multer": "1.4.5-lts.1", "normalize-strings": "1.1.1", "normalize.css": "8.0.1", @@ -175,6 +173,7 @@ "@fullcalendar/list": "6.1.15", "@fullcalendar/multimonth": "6.1.15", "@fullcalendar/timegrid": "6.1.15", + "@mind-elixir/node-menu": "1.0.4", "@playwright/test": "1.51.1", "@popperjs/core": "2.11.8", "@types/archiver": "6.0.3", @@ -231,6 +230,7 @@ "jsdoc": "4.0.4", "knockout": "3.5.1", "lorem-ipsum": "2.0.8", + "mind-elixir": "4.4.2", "mini-css-extract-plugin": "2.9.2", "nodemon": "3.1.9", "postcss-loader": "8.1.1", diff --git a/src/routes/assets.ts b/src/routes/assets.ts index 4683a81fb..d2bf47c42 100644 --- a/src/routes/assets.ts +++ b/src/routes/assets.ts @@ -96,8 +96,6 @@ async function register(app: express.Application) { app.use(`/${assetPath}/node_modules/codemirror/mode/`, persistentCacheStatic(path.join(srcRoot, "..", "node_modules/codemirror/mode/"))); app.use(`/${assetPath}/node_modules/codemirror/keymap/`, persistentCacheStatic(path.join(srcRoot, "..", "node_modules/codemirror/keymap/"))); - app.use(`/${assetPath}/node_modules/mind-elixir/dist/`, persistentCacheStatic(path.join(srcRoot, "..", "node_modules/mind-elixir/dist/"))); - app.use(`/${assetPath}/node_modules/@mind-elixir/node-menu/dist/`, persistentCacheStatic(path.join(srcRoot, "..", "node_modules/@mind-elixir/node-menu/dist/"))); app.use(`/${assetPath}/node_modules/@highlightjs/cdn-assets/`, persistentCacheStatic(path.join(srcRoot, "..", "node_modules/@highlightjs/cdn-assets/"))); app.use(`/${assetPath}/node_modules/leaflet/dist/`, persistentCacheStatic(path.join(srcRoot, "..", "node_modules/leaflet/dist/")));