build: move from pnpm to npm

Replace pnpm-lock.yaml with package-lock.json. The security overrides move to
package.json#overrides with their range operators intact, so advisory floors
stay floors. allowBuilds becomes package.json#allowScripts where the listed
package is actually in the tree.
This commit is contained in:
2026-08-17 13:15:10 +07:00
parent b2ce412339
commit 45fbd9b171
7 changed files with 6347 additions and 4130 deletions
+3 -5
View File
@@ -22,20 +22,18 @@ jobs:
- name: Checkout
uses: actions/checkout@v6
- name: Setup pnpm
uses: pnpm/action-setup@v6
- name: Setup Node
uses: actions/setup-node@v6
with:
node-version: '24'
cache: 'pnpm'
cache: 'npm'
- name: Install dependencies
run: pnpm install --frozen-lockfile
run: npm ci
- name: Build
run: pnpm build
run: npm run build
- name: Setup Pages
uses: actions/configure-pages@v6
+1 -1
View File
@@ -4,7 +4,7 @@ logs
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
npm-debug.log*
lerna-debug.log*
.
node_modules
+3 -3
View File
@@ -17,9 +17,9 @@ Play: [https://tiennm99.github.io/sokoban/](https://tiennm99.github.io/sokoban/)
## Development
```bash
pnpm install
pnpm dev # dev server on http://localhost:8080
pnpm build # production build
npm install
npm run dev # dev server on http://localhost:8080
npm run build # production build
```
## Project layout
+6336
View File
File diff suppressed because it is too large Load Diff
+4 -1
View File
@@ -3,7 +3,6 @@
"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,5 +24,9 @@
"svelte": "^5.56.2",
"vite": "^8.0.16",
"vite-plugin-pwa": "^1.2.0"
},
"overrides": {
"serialize-javascript": ">=7.0.5",
"fast-uri": ">=3.1.2"
}
}
-4114
View File
File diff suppressed because it is too large Load Diff
-6
View File
@@ -1,6 +0,0 @@
allowBuilds:
esbuild: true
overrides:
serialize-javascript: ">=7.0.5"
fast-uri: ">=3.1.2"