Skip to content

Commit

Permalink
chore: Update editor script
Browse files Browse the repository at this point in the history
Co-authored-by: Alois Klink <alois@aloisklink.com>
  • Loading branch information
sidharthv96 and aloisklink committed Aug 25, 2023
1 parent 54de763 commit 32d1783
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions scripts/editor.sh → scripts/editor.bash
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
#!/usr/bin/env bash

set -euxo pipefail
# We have to use npm instead of yarn because it causes trouble in netlify

# Link local mermaid to npm
pushd packages/mermaid || exit
pushd packages/mermaid
npm link
popd || exit
popd

# Clone the Mermaid Live Editor repository
git clone https://github.com/mermaid-js/mermaid-live-editor.git

# Change to the repository directory
cd mermaid-live-editor || exit
cd mermaid-live-editor

# Link local mermaid to live editor
npm link mermaid
Expand Down

0 comments on commit 32d1783

Please sign in to comment.