mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-08-23 02:06:45 +02:00
Use Yarn
Add COREPACK_ENABLE_STRICT
This commit is contained in:
@@ -1,11 +1,13 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
set -euxo pipefail
|
set -euxo pipefail
|
||||||
|
export COREPACK_ENABLE_STRICT='0'
|
||||||
|
|
||||||
pushd packages/mermaid
|
pushd packages/mermaid
|
||||||
# Append commit hash to version
|
# Append commit hash to version
|
||||||
jq ".version = .version + \"+${COMMIT_REF:0:7}\"" package.json > package.tmp.json
|
jq ".version = .version + \"+${COMMIT_REF:0:7}\"" package.json > package.tmp.json
|
||||||
mv package.tmp.json package.json
|
mv package.tmp.json package.json
|
||||||
|
yarn link
|
||||||
popd
|
popd
|
||||||
|
|
||||||
pnpm run -r clean
|
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
|
# We have to use npm instead of yarn because it causes trouble in netlify
|
||||||
# Install dependencies
|
# Install dependencies
|
||||||
npm install
|
yarn install
|
||||||
|
|
||||||
# Link local mermaid to live editor
|
# Link local mermaid to live editor
|
||||||
npm link ../packages/mermaid
|
yarn link mermaid
|
||||||
|
|
||||||
# Force Build the site
|
# Force Build the site
|
||||||
npm run build -- --force
|
yarn run build -- --force
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user