diff --git a/scripts/editor.bash b/scripts/editor.bash index 386b0e17de..c475c16236 100755 --- a/scripts/editor.bash +++ b/scripts/editor.bash @@ -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 @@ -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