mirror of
https://github.com/tiennm99/rplace.git
synced 2026-09-05 14:23:49 +00:00
chore: migrate from npm to pnpm
This commit is contained in:
@@ -53,7 +53,7 @@ chunks on first read. See [`docs/canvas-resize-procedure.md`](docs/canvas-resize
|
||||
```bash
|
||||
git clone <repo-url>
|
||||
cd rplace
|
||||
npm install
|
||||
pnpm 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)
|
||||
npm run dev
|
||||
pnpm dev
|
||||
|
||||
# Or split frontend + worker
|
||||
npm run dev:client # Vite dev server on :5173 (proxies /api to :8787)
|
||||
npm run dev # Wrangler dev server on :8787
|
||||
pnpm dev:client # Vite dev server on :5173 (proxies /api to :8787)
|
||||
pnpm dev # Wrangler dev server on :8787
|
||||
```
|
||||
|
||||
### Deploy
|
||||
|
||||
```bash
|
||||
npm run deploy # Builds frontend + deploys worker to Cloudflare
|
||||
pnpm deploy # Builds frontend + deploys worker to Cloudflare
|
||||
```
|
||||
|
||||
## Project Structure
|
||||
|
||||
Generated
-3334
File diff suppressed because it is too large
Load Diff
@@ -2,6 +2,7 @@
|
||||
"name": "rplace",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"packageManager": "pnpm@11.1.1",
|
||||
"scripts": {
|
||||
"dev": "wrangler dev",
|
||||
"dev:client": "vite dev",
|
||||
@@ -21,5 +22,8 @@
|
||||
"vite": "^6.3.2",
|
||||
"vitest": "^4.1.4",
|
||||
"wrangler": "^4.14.1"
|
||||
},
|
||||
"pnpm": {
|
||||
"onlyBuiltDependencies": ["esbuild", "sharp", "workerd"]
|
||||
}
|
||||
}
|
||||
|
||||
Generated
+2046
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user