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
git clone <repo-url>
cd rplace
pnpm install
npm install
```
No external storage to configure. The canvas and rate-limit state live inside
@@ -63,17 +63,17 @@ the Durable Object.
```bash
# Run worker locally (serves API + static frontend)
pnpm dev
npm run dev
# Or split frontend + worker
pnpm dev:client # Vite dev server on :5173 (proxies /api to :8787)
pnpm dev # Wrangler dev server on :8787
npm run dev:client # Vite dev server on :5173 (proxies /api to :8787)
npm run dev # Wrangler dev server on :8787
```
### Deploy
```bash
pnpm deploy # Builds frontend + deploys worker to Cloudflare
npm run deploy # Builds frontend + deploys worker to Cloudflare
```
## Project Structure