Skip to content

Commit

Permalink
npx yarn
Browse files Browse the repository at this point in the history
  • Loading branch information
sidharthv96 committed Feb 27, 2024
1 parent 9139e97 commit c53a8a6
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions scripts/editor.bash
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@

set -euxo pipefail

npm install -g yarn --force
pushd packages/mermaid
# Append commit hash to version
jq ".version = .version + \"+${COMMIT_REF:0:7}\"" package.json > package.tmp.json
mv package.tmp.json package.json
yarn link
npx yarn link
popd

pnpm run -r clean
Expand All @@ -22,11 +21,11 @@ cd mermaid-live-editor

# We have to use npm instead of yarn because it causes trouble in netlify
# Install dependencies
yarn install
npx yarn install

# Link local mermaid to live editor
yarn link mermaid
npx yarn link mermaid

# Force Build the site
yarn run build -- --force
npx yarn run build -- --force

0 comments on commit c53a8a6

Please sign in to comment.