mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-18 23:09:49 +02:00
fix: live editor exists error
This commit is contained in:
@@ -8,11 +8,14 @@ pushd packages/mermaid
|
|||||||
npm link
|
npm link
|
||||||
popd
|
popd
|
||||||
|
|
||||||
# Clone the Mermaid Live Editor repository
|
# Clone or update the Mermaid Live Editor repository
|
||||||
git clone https://github.com/mermaid-js/mermaid-live-editor.git
|
if [ ! -d "mermaid-live-editor" ]; then
|
||||||
|
git clone --single-branch https://github.com/mermaid-js/mermaid-live-editor.git
|
||||||
# Change to the repository directory
|
|
||||||
cd mermaid-live-editor
|
cd mermaid-live-editor
|
||||||
|
else
|
||||||
|
cd mermaid-live-editor
|
||||||
|
git pull
|
||||||
|
fi
|
||||||
|
|
||||||
# Link local mermaid to live editor
|
# Link local mermaid to live editor
|
||||||
npm link mermaid
|
npm link mermaid
|
||||||
|
Reference in New Issue
Block a user