build: move from pnpm to npm

Replace pnpm-lock.yaml with package-lock.json. pnpm-workspace.yaml's
allowBuilds becomes package.json#allowScripts, which npm 11 gates the same way,
listing only the packages actually present in the tree.
This commit is contained in:
tiennm99 committed 2026-08-17 13:07:36 +07:00
1 parent fdab00786e
commit 150917a69a
5 files changed
+3150 -1879

No files matched your search

+5 -5
View File
@@ -53,7 +53,7 @@ chunks on first read. See [`docs/canvas-resize-procedure.md`](docs/canvas-resize
```bash ```bash
git clone <repo-url> git clone <repo-url>
cd rplace cd rplace
pnpm install npm install
``` ```
No external storage to configure. The canvas and rate-limit state live inside No external storage to configure. The canvas and rate-limit state live inside
@@ -63,17 +63,17 @@ the Durable Object.
```bash ```bash
# Run worker locally (serves API + static frontend) # Run worker locally (serves API + static frontend)
pnpm dev npm run dev
# Or split frontend + worker # Or split frontend + worker
pnpm dev:client # Vite dev server on :5173 (proxies /api to :8787) npm run dev:client # Vite dev server on :5173 (proxies /api to :8787)
pnpm dev # Wrangler dev server on :8787 npm run dev # Wrangler dev server on :8787
``` ```
### Deploy ### Deploy
```bash ```bash
pnpm deploy # Builds frontend + deploys worker to Cloudflare npm run deploy # Builds frontend + deploys worker to Cloudflare
``` ```
## Project Structure ## Project Structure
+3141
View File
File diff suppressed because it is too large. Load diff
+4 -1
View File
@@ -2,7 +2,6 @@
"name": "rplace", "name": "rplace",
"private": true, "private": true,
"type": "module", "type": "module",
"packageManager": "[email protected]",
"scripts": { "scripts": {
"dev": "wrangler dev", "dev": "wrangler dev",
"dev:client": "vite dev", "dev:client": "vite dev",
@@ -23,5 +22,9 @@
"vitest": "^4.1.10", "vitest": "^4.1.10",
"wrangler": "^4.112.0", "wrangler": "^4.112.0",
"ws": "^8.21.0" "ws": "^8.21.0"
},
"allowScripts": {
"esbuild": true,
"workerd": true
} }
} }
-1869
View File
File diff suppressed because it is too large. Load diff
-4
View File
@@ -1,4 +0,0 @@
allowBuilds:
esbuild: true
sharp: true
workerd: true