chore: migrate from npm to pnpm

This commit is contained in:
tiennm99 committed 2026-05-13 10:20:14 +07:00
1 parent 41d500fa19
commit a9d01990a1
6 files changed
+1126 -1724

No files matched your search

+9 -5
View File
@@ -22,17 +22,21 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- 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
+9 -9
View File
@@ -4,7 +4,7 @@ Turn-based stealth puzzle game built with Svelte 5. Play as a ninja rabbit navig
grid-based levels inside the Vegetable Kingdom, avoiding detection by vegetable guards
to rescue the missing carrot princess.
Play: `npm run dev` → `http://localhost:5173`
Play: `pnpm dev` → `http://localhost:5173`
---
@@ -28,7 +28,7 @@ Play: `npm run dev` → `http://localhost:5173`
## Requirements
[Node.js](https://nodejs.org) 18+ and npm.
[Node.js](https://nodejs.org) 18+ and [pnpm](https://pnpm.io).
---
@@ -37,8 +37,8 @@ Play: `npm run dev` → `http://localhost:5173`
```sh
git clone https://github.com/tiennm99/nntv
cd nntv
npm install
npm run dev # dev server at http://localhost:5173
pnpm install
pnpm dev # dev server at http://localhost:5173
```
---
@@ -47,11 +47,11 @@ npm run dev # dev server at http://localhost:5173
| Command | Description |
|---|---|
| `npm run dev` | Start development server |
| `npm run build` | Production build → `dist/` |
| `npm run preview` | Preview production build locally |
| `npm test` | Run all unit + solvability tests |
| `npm run test:solvability` | Run only the BFS solvability suite |
| `pnpm dev` | Start development server |
| `pnpm build` | Production build → `dist/` |
| `pnpm preview` | Preview production build locally |
| `pnpm test` | Run all unit + solvability tests |
| `pnpm test:solvability` | Run only the BFS solvability suite |
---
-1710
View File
File diff suppressed because it is too large. Load diff
+1
View File
@@ -3,6 +3,7 @@
"description": "Night Ninja: Twilight Voyage",
"private": true,
"version": "0.1.0",
"packageManager": "pnpm@11.1.1",
"type": "module",
"license": "Apache-2.0",
"scripts": {
+1105
View File
File diff suppressed because it is too large. Load diff
+2
View File
@@ -0,0 +1,2 @@
allowBuilds:
esbuild: true