Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: pnpm flag (#15313)

Danny Xu28d046e6e855
diff --git a/backend/migrator/migrator.go b/backend/migrator/migrator.go
index aa211da441..140c1f16cb 100644
--- a/backend/migrator/migrator.go
+++ b/backend/migrator/migrator.go
@@ -82,6 +82,7 @@ func MigrateSchema(ctx context.Context, storeDB *store.DB, storeInstance *store.
return nil, err
}
if _, err := metadataDriver.GetDB().ExecContext(ctx, `
+ DELETE FROM instance_change_history WHERE status = 'FAILED';
UPDATE instance_change_history
SET
version = ARRAY_TO_STRING(
diff --git a/scripts/Dockerfile b/scripts/Dockerfile
index f23f99b5bd..21d643b5c2 100644
--- a/scripts/Dockerfile
+++ b/scripts/Dockerfile
@@ -15,8 +15,8 @@ WORKDIR /frontend-build
COPY . .
-RUN pnpm --dir frontend install --frozen-lockfile
-RUN pnpm --dir frontend release-docker
+RUN pnpm --dir ./frontend i
+RUN pnpm --dir ./frontend release-docker
FROM golang:1.24.0 as backend
ADD go.mod go.sum /
diff --git a/scripts/Dockerfile.aws b/scripts/Dockerfile.aws
index 62af8d40d5..92838037b5 100644
--- a/scripts/Dockerfile.aws
+++ b/scripts/Dockerfile.aws
@@ -15,8 +15,8 @@ WORKDIR /frontend-build
COPY . .
-RUN pnpm --dir frontend install --frozen-lockfile
-RUN pnpm --dir frontend release-aws
+RUN pnpm --dir ./frontend i
+RUN pnpm --dir ./frontend release-aws
FROM golang:1.24.0 as backend
ADD go.mod go.sum /
diff --git a/scripts/build_bytebase.sh b/scripts/build_bytebase.sh
index 98e629c67e..63ceacd3a3 100755
--- a/scripts/build_bytebase.sh
+++ b/scripts/build_bytebase.sh
@@ -41,12 +41,7 @@ echo "Step 1 - building Bytebase frontend..."
rm -rf ./backend/server/dist
export BB_GIT_COMMIT_ID_FE=$(git rev-parse HEAD)
-if command -v pnpm > /dev/null
-then
- pnpm --dir ./frontend i && pnpm --dir ./frontend release
-else
- npm --prefix ./frontend run release
-fi
+pnpm --dir ./frontend i && pnpm --dir ./frontend release
echo "Completed building Bytebase frontend."