mirror of
https://github.com/executeautomation/mcp-database-server.git
synced 2025-12-09 21:12:57 +08:00
Initial Commit
This commit is contained in:
21
build.sh
Executable file
21
build.sh
Executable file
@@ -0,0 +1,21 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Clean dist directory
|
||||
rm -rf dist
|
||||
mkdir -p dist
|
||||
|
||||
# Install dependencies if node_modules doesn't exist
|
||||
if [ ! -d "node_modules" ]; then
|
||||
echo "Installing dependencies..."
|
||||
npm install
|
||||
fi
|
||||
|
||||
# Build TypeScript code
|
||||
echo "Building TypeScript..."
|
||||
./node_modules/.bin/tsc
|
||||
|
||||
# Make JavaScript files executable
|
||||
echo "Making JavaScript files executable..."
|
||||
chmod +x dist/*.js
|
||||
|
||||
echo "Build completed successfully!"
|
||||
Reference in New Issue
Block a user