info_docs_depin/install.sh

25 lines
527 B
Bash
Raw Normal View History

2025-01-06 21:43:09 +00:00
#!/bin/bash
set -ex
script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cd "${script_dir}"
echo "Docs directory: $script_dir"
# Check if bun is installed
# if ! command -v bun &> /dev/null; then
# echo "Bun is not installed. Installing..."
# curl -fsSL https://bun.sh/install | bash
# else
# echo "Bun is already installed."
# fi
#bun install
export PATH=${BASE}/node_modules/.bin:$PATH
npm install @docusaurus/core@3.6.3 @docusaurus/preset-classic@3.6.3 @docusaurus/theme-mermaid@3.6.3
pnpm install