From 48ee38cf9b817c1bd4ca7e5cc644d10de5482280 Mon Sep 17 00:00:00 2001 From: Arvin Xu Date: Thu, 23 Oct 2025 00:40:57 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20build:=20fix=20build=20(#9847)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix build * use pnpm install to keep lint stricter --- .github/workflows/test.yml | 14 ++++++-------- .gitignore | 1 + src/layout/GlobalProvider/Query.tsx | 3 +-- 3 files changed, 8 insertions(+), 10 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 97027e83a1..4745fd4317 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -145,26 +145,24 @@ jobs: node-version: 22 package-manager-cache: false - - name: Install bun - uses: oven-sh/setup-bun@v2 - with: - bun-version: 1.2.23 + - name: Install pnpm + uses: pnpm/action-setup@v4 - name: Install deps - run: bun i + run: pnpm i - name: Lint - run: bun run lint + run: npm run lint - name: Test Client DB - run: bun run --filter @lobechat/database test:client-db + run: pnpm --filter @lobechat/database test:client-db env: KEY_VAULTS_SECRET: LA7n9k3JdEcbSgml2sxfw+4TV1AzaaFU5+R176aQz4s= S3_PUBLIC_DOMAIN: https://example.com APP_URL: https://home.com - name: Test Coverage - run: bun run --filter @lobechat/database test:coverage + run: pnpm --filter @lobechat/database test:coverage env: DATABASE_TEST_URL: postgresql://postgres:postgres@localhost:5432/postgres DATABASE_DRIVER: node diff --git a/.gitignore b/.gitignore index a95429fa7f..4171a9fde5 100644 --- a/.gitignore +++ b/.gitignore @@ -117,3 +117,4 @@ CLAUDE.local.md prd GEMINI.md +e2e/reports diff --git a/src/layout/GlobalProvider/Query.tsx b/src/layout/GlobalProvider/Query.tsx index 22a39db19e..7444d21505 100644 --- a/src/layout/GlobalProvider/Query.tsx +++ b/src/layout/GlobalProvider/Query.tsx @@ -1,7 +1,6 @@ 'use client'; -import { QueryClient } from '@tanstack/query-core'; -import { QueryClientProvider } from '@tanstack/react-query'; +import { QueryClient, QueryClientProvider } from '@tanstack/react-query'; import React, { PropsWithChildren, useState } from 'react'; import { lambdaQuery, lambdaQueryClient } from '@/libs/trpc/client';