← Back to index
View raw markdown

TODO: Port Deployment Packages to TypeScript

Status: The library packages (pb-storage, pb-node, pb-js) have been migrated to TypeScript and build to dist/. However, no deployed servers are running the new TypeScript builds yet. All production/staging deployments still run the original JS source directly. Do not update deployments until the new builds have been thoroughly validated.

Deployment packages that need review

Each of these has its own src/ directory with JS files. They may also import from the library packages via relative paths that need checking.

1. Cloudflare Workers — commit-reveal server

2. Google Cloud Run — commit-reveal server

3. Cloudflare R2 — reveal publish worker

4. Google Cloud Storage — reveal publish helper

No changes needed

Important: check relative imports

Each deployment package may import from the library packages via relative paths like ../../packages/pb-node/src/app.js. These would break since the source files are now .ts. Check each deployment's src/ files for such imports and update them to use dist/ paths or proper package exports.