mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-14 06:43:25 +08:00
4707fb27fa
Add COREPACK_ENABLE_STRICT
33 lines
712 B
Bash
Executable File
33 lines
712 B
Bash
Executable File
#!/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
|
|
pnpm build:types
|
|
pnpm build:mermaid
|
|
|
|
# Clone the Mermaid Live Editor repository
|
|
rm -rf mermaid-live-editor
|
|
git clone --single-branch https://github.com/mermaid-js/mermaid-live-editor.git
|
|
|
|
cd mermaid-live-editor
|
|
|
|
# We have to use npm instead of yarn because it causes trouble in netlify
|
|
# Install dependencies
|
|
yarn install
|
|
|
|
# Link local mermaid to live editor
|
|
yarn link mermaid
|
|
|
|
# Force Build the site
|
|
yarn run build -- --force
|
|
|