chore: migrate from npm to pnpm

This commit is contained in:
tiennm99 committed 2026-05-13 10:19:34 +07:00
1 parent 258af0cf57
commit 6ce9fcfdf1
6 files changed
+4048 -5528

No files matched your search

+10 -5
View File
@@ -22,17 +22,22 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 11
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
cache: 'pnpm'
- name: Install dependencies
run: npm ci
run: pnpm install --frozen-lockfile
- name: Build
run: npm run build
run: pnpm build
- name: Setup Pages
uses: actions/configure-pages@v4
+3 -3
View File
@@ -17,9 +17,9 @@ Play: [https://tiennm99.github.io/sokoban/](https://tiennm99.github.io/sokoban/)
## Development
```bash
npm install
npm run dev # dev server on http://localhost:8080
npm run build # production build
pnpm install
pnpm dev # dev server on http://localhost:8080
pnpm build # production build
```
## Project layout
-5517
View File
File diff suppressed because it is too large. Load diff
+6 -3
View File
@@ -3,6 +3,7 @@
"description": "A simple Sokoban game built with Svelte 5 and Vite",
"version": "1.0.0",
"type": "module",
"packageManager": "pnpm@11.1.1",
"repository": {
"type": "git",
"url": "git+https://github.com/tiennm99/sokoban.git"
@@ -25,8 +26,10 @@
"vite": "^6.4.2",
"vite-plugin-pwa": "^1.2.0"
},
"overrides": {
"serialize-javascript": ">=7.0.5",
"fast-uri": ">=3.1.2"
"pnpm": {
"overrides": {
"serialize-javascript": ">=7.0.5",
"fast-uri": ">=3.1.2"
}
}
}
+4027
View File
File diff suppressed because it is too large. Load diff
+2
View File
@@ -0,0 +1,2 @@
allowBuilds:
esbuild: true