chore: migrate from npm to pnpm

This commit is contained in:
2026-05-13 10:20:51 +07:00
parent ecd663ccc2
commit 77877b8dca
7 changed files with 1964 additions and 3821 deletions
+7 -4
View File
@@ -15,14 +15,17 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 11
- uses: actions/setup-node@v4
with:
node-version: '24'
# TODO: add `cache: 'npm'` once package-lock.json is committed.
cache: 'pnpm'
- name: Install dependencies
# TODO: switch to `npm ci` once package-lock.json is committed.
run: npm install --no-audit --no-fund
run: pnpm install --frozen-lockfile
- name: Build
run: npm run build
run: pnpm build
+7 -4
View File
@@ -21,17 +21,20 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 11
- uses: actions/setup-node@v4
with:
node-version: '24'
# TODO: add `cache: 'npm'` once package-lock.json is committed.
cache: 'pnpm'
- name: Install dependencies
# TODO: switch to `npm ci` once package-lock.json is committed.
run: npm install --no-audit --no-fund
run: pnpm install --frozen-lockfile
- name: Build
run: npm run build
run: pnpm build
env:
SITE_URL: https://tiennm99.github.io
SITE_BASE: /mathmax
+7 -7
View File
@@ -14,15 +14,15 @@ Toán tương tác cho học sinh THCS Việt Nam (lớp 6-9). Số học, Đạ
## Develop
Yêu cầu: Node 24+, npm 11+.
Yêu cầu: Node 24+, pnpm 11+.
```sh
npm install
npm run dev # http://localhost:5173/mathmax/
npm run test # Vitest (geom-engine unit tests)
npm run check # svelte-check + JSDoc strict
npm run build # Static output → build/
npm run preview # Serve build/
pnpm install
pnpm dev # http://localhost:5173/mathmax/
pnpm test # Vitest (geom-engine unit tests)
pnpm check # svelte-check + JSDoc strict
pnpm build # Static output → build/
pnpm preview # Serve build/
```
## Deploy
-3806
View File
File diff suppressed because it is too large Load Diff
+1
View File
@@ -3,6 +3,7 @@
"version": "0.0.1.0",
"private": true,
"type": "module",
"packageManager": "pnpm@11.1.1",
"description": "MathMax — Toán tương tác cho học sinh THCS lớp 6-9. Static site.",
"scripts": {
"dev": "vite dev",
+1940
View File
File diff suppressed because it is too large Load Diff
+2
View File
@@ -0,0 +1,2 @@
allowBuilds:
esbuild: true