fix(tenant-router): build @cio/utils before wrangler bundle

Wrangler resolves @cio/utils/constants/* from dist/. Run utils build in
predeploy, predev, and pretypecheck so Cloudflare deploy does not fail with
a missing embeds module.
This commit is contained in:
Rotimi Best
2026-06-12 02:27:49 +01:00
parent ec6d97c482
commit cd3b252ea2
2 changed files with 5 additions and 0 deletions
+2
View File
@@ -29,6 +29,8 @@ It preserves the original host as `X-Forwarded-Host` so:
## Deploy
`deploy` runs `predeploy`, which builds `@cio/utils` first (Wrangler resolves `@cio/utils/constants/*` from `dist/`).
```bash
pnpm --filter @cio/tenant-router deploy
```
+3
View File
@@ -5,9 +5,12 @@
"type": "module",
"scripts": {
"dev": "wrangler dev",
"predev": "pnpm --filter @cio/utils build",
"deploy": "wrangler deploy",
"predeploy": "pnpm --filter @cio/utils build",
"tail": "wrangler tail",
"typecheck": "tsc --noEmit",
"pretypecheck": "pnpm --filter @cio/utils build",
"format": "prettier --write ."
},
"dependencies": {