fix: clone if editor doesnt exist in script

This commit is contained in:
Yash Singh 2024-07-16 18:24:04 -07:00
parent 38a7a47d11
commit ab1a2ec411

View File

@ -19,6 +19,9 @@ pnpm build:esbuild
pnpm build:types
# Clone the Mermaid Live Editor repository
if [ ! -d "mermaid-live-editor" ]; then
git clone --single-branch https://github.com/mermaid-js/mermaid-live-editor.git
fi
cd mermaid-live-editor
git clean -xdf
rm -rf docs/