mirror of
https://github.com/tiennm99/rplace.git
synced 2026-10-11 03:13:48 +00:00
chore: migrate from npm to pnpm
This commit is contained in:
1 parent
bc26fb21d7
commit
e3bcebad98
4 files changed
+2055
-3339
No files matched your search
@@ -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
|
||||||
npm install
|
pnpm 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)
|
||||||
npm run dev
|
pnpm dev
|
||||||
|
|
||||||
# Or split frontend + worker
|
# Or split frontend + worker
|
||||||
npm run dev:client # Vite dev server on :5173 (proxies /api to :8787)
|
pnpm dev:client # Vite dev server on :5173 (proxies /api to :8787)
|
||||||
npm run dev # Wrangler dev server on :8787
|
pnpm dev # Wrangler dev server on :8787
|
||||||
```
|
```
|
||||||
|
|
||||||
### Deploy
|
### Deploy
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
npm run deploy # Builds frontend + deploys worker to Cloudflare
|
pnpm deploy # Builds frontend + deploys worker to Cloudflare
|
||||||
```
|
```
|
||||||
|
|
||||||
## Project Structure
|
## Project Structure
|
||||||
|
|||||||
Generated
-3334
File diff suppressed because it is too large.
Load diff
@@ -2,6 +2,7 @@
|
|||||||
"name": "rplace",
|
"name": "rplace",
|
||||||
"private": true,
|
"private": true,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
"packageManager": "pnpm@11.1.1",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "wrangler dev",
|
"dev": "wrangler dev",
|
||||||
"dev:client": "vite dev",
|
"dev:client": "vite dev",
|
||||||
@@ -21,5 +22,8 @@
|
|||||||
"vite": "^6.3.2",
|
"vite": "^6.3.2",
|
||||||
"vitest": "^4.1.4",
|
"vitest": "^4.1.4",
|
||||||
"wrangler": "^4.14.1"
|
"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