From 4707fb27fa408d9580d1b02dbc9afbf19b635254 Mon Sep 17 00:00:00 2001 From: Sidharth Vinod Date: Mon, 26 Feb 2024 22:40:43 +0530 Subject: [PATCH] Use Yarn Add COREPACK_ENABLE_STRICT --- scripts/editor.bash | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/scripts/editor.bash b/scripts/editor.bash index 8c1d4e2c6e..7f2f01562c 100755 --- a/scripts/editor.bash +++ b/scripts/editor.bash @@ -1,11 +1,13 @@ #!/usr/bin/env bash set -euxo pipefail +export COREPACK_ENABLE_STRICT='0' 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 popd pnpm run -r clean @@ -20,11 +22,11 @@ cd mermaid-live-editor # We have to use npm instead of yarn because it causes trouble in netlify # Install dependencies -npm install +yarn install # Link local mermaid to live editor -npm link ../packages/mermaid +yarn link mermaid # Force Build the site -npm run build -- --force +yarn run build -- --force