mirror of
https://github.com/tiennm99/sokoban.git
synced 2026-09-03 04:18:38 +00:00
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:
@@ -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
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Generated
+6336
File diff suppressed because it is too large
Load Diff
+4
-1
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
Generated
-4114
File diff suppressed because it is too large
Load Diff
@@ -1,6 +0,0 @@
|
||||
allowBuilds:
|
||||
esbuild: true
|
||||
|
||||
overrides:
|
||||
serialize-javascript: ">=7.0.5"
|
||||
fast-uri: ">=3.1.2"
|
||||
Reference in New Issue
Block a user