From a968c77299e56649f04960bfe431d218defbf54b Mon Sep 17 00:00:00 2001 From: Pirate Praveen Date: Wed, 11 May 2022 12:19:55 +0530 Subject: [PATCH] Switch to packaged version of node-mermaid --- debian/control | 2 +- debian/patches/nodejs/0040-use-packaged-modules.patch | 3 ++- .../0050-use-matching-monaco-editor-webpack-plugin.patch | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/debian/control b/debian/control index 8631691ce8..f258b0dac2 100644 --- a/debian/control +++ b/debian/control @@ -472,7 +472,7 @@ Depends: ${shlibs:Depends}, ${misc:Depends}, node-katex (>= 0.13~), node-lodash (>= 4.17.21+dfsg+~cs8.31.189.20210220~), node-marked (>= 0.3~), - node-mermaid (>= 8.9.2~), + node-mermaid (>= 8.13.10~), node-minimatch, node-miragejs, node-mousetrap, diff --git a/debian/patches/nodejs/0040-use-packaged-modules.patch b/debian/patches/nodejs/0040-use-packaged-modules.patch index 37c485b82c..e9f852392f 100644 --- a/debian/patches/nodejs/0040-use-packaged-modules.patch +++ b/debian/patches/nodejs/0040-use-packaged-modules.patch @@ -158,8 +158,9 @@ Use debian packaged node modules when available "lowlight": "^2.5.0", "marked": "^0.3.12", "mathjax": "3", - "mermaid": "^8.13.10", +- "mermaid": "^8.13.10", - "minimatch": "^3.0.4", ++ "mermaid": "link:/usr/share/nodejs/mermaid", + "minimatch": "link:/usr/share/nodejs/minimatch", "monaco-editor": "^0.25.2", "monaco-editor-webpack-plugin": "^4.0.0", diff --git a/debian/patches/nodejs/0050-use-matching-monaco-editor-webpack-plugin.patch b/debian/patches/nodejs/0050-use-matching-monaco-editor-webpack-plugin.patch index e597ec280b..3a26a4c631 100644 --- a/debian/patches/nodejs/0050-use-matching-monaco-editor-webpack-plugin.patch +++ b/debian/patches/nodejs/0050-use-matching-monaco-editor-webpack-plugin.patch @@ -3,7 +3,7 @@ --- a/package.json +++ b/package.json @@ -147,7 +147,7 @@ - "mermaid": "^8.13.10", + "mermaid": "link:/usr/share/nodejs/mermaid", "minimatch": "link:/usr/share/nodejs/minimatch", "monaco-editor": "^0.25.2", - "monaco-editor-webpack-plugin": "^4.0.0",