chore: migrate frontend package manager from npm to pnpm

This commit is contained in:
sagitchu
2026-04-22 11:02:43 +08:00
parent efaf920e51
commit e7c967df00
9 changed files with 9024 additions and 21 deletions
+2 -1
View File
@@ -24,7 +24,8 @@ dist-ssr
*.sw?
pnpm-lock.yaml
yarn.lock
package-lock.json
yarn.lock
package-lock.json
bun.lockb
+4 -4
View File
@@ -33,8 +33,8 @@ React dashboard for FLVX. rolldown-vite + TypeScript + Tailwind v4 + shadcn/radi
## Commands
```bash
npm install --legacy-peer-deps
npm run dev # http://0.0.0.0:3000
npm run build # tsc && vite build
npm run lint # eslint --fix
pnpm install
pnpm run dev # http://0.0.0.0:3000
pnpm run build # tsc && vite build
pnpm run lint # eslint --fix
```
+3 -3
View File
@@ -3,11 +3,11 @@ FROM node:20.19.0 AS builder
WORKDIR /app
COPY package*.json ./
RUN npm install --legacy-peer-deps
COPY package.json pnpm-lock.yaml* ./
RUN corepack enable pnpm && pnpm install --frozen-lockfile
COPY . .
RUN npm run build
RUN pnpm run build
# 生产阶段
FROM nginx:stable-alpine AS production-stage
+4 -4
View File
@@ -23,16 +23,16 @@ git clone https://github.com/frontio-ai/vite-template.git
### Install dependencies
You can use one of them `npm`, `yarn`, `pnpm`, `bun`, Example using `npm`:
You can use one of them `npm`, `yarn`, `pnpm`, `bun`, Example using `pnpm`:
```bash
npm install
pnpm install
```
### Run the development server
### Start development server
```bash
npm run dev
pnpm run dev
```
### Setup pnpm (optional)
+8999
View File
File diff suppressed because it is too large Load Diff