From a3a6eb9bf53717848d6c8455a0f0172ca7d78047 Mon Sep 17 00:00:00 2001 From: Sidharth Vinod Date: Fri, 25 Aug 2023 09:37:22 +0530 Subject: [PATCH 1/2] chore: Force install npm to avoid cache. --- scripts/editor.bash | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/editor.bash b/scripts/editor.bash index ee7792672a..9544261754 100755 --- a/scripts/editor.bash +++ b/scripts/editor.bash @@ -21,7 +21,8 @@ fi npm link mermaid # Install dependencies -npm install +npm install --force + +# Force Build the site +npm run build -- --force -# Build the site -npm run build From 6563a6ea26566a0e73ef33a56c34f78488fa869c Mon Sep 17 00:00:00 2001 From: Sidharth Vinod Date: Fri, 25 Aug 2023 09:43:53 +0530 Subject: [PATCH 2/2] chore: Build after clone --- scripts/editor.bash | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/editor.bash b/scripts/editor.bash index 9544261754..31d79aca5f 100755 --- a/scripts/editor.bash +++ b/scripts/editor.bash @@ -2,6 +2,7 @@ set -euxo pipefail # We have to use npm instead of yarn because it causes trouble in netlify +pnpm build # Link local mermaid to npm pushd packages/mermaid