70bf21e064
Deploy (to testing) and Test Playground Preview Worker / Deploy Playground Preview Worker (testing) (push) Has been skipped
Deploy Workers Shared Staging / Deploy Workers Shared Staging (push) Failing after 0s
Prerelease / build (push) Has been skipped
Handle Changesets / Handle Changesets (push) Has been cancelled
Semgrep OSS scan / semgrep-oss (push) Has been cancelled
22 lines
589 B
TypeScript
22 lines
589 B
TypeScript
import childProcess from "node:child_process";
|
|
import path from "node:path";
|
|
|
|
// Global setup runs inside Node.js, not `workerd`
|
|
export default function () {
|
|
// Build `api-service`'s dependencies
|
|
|
|
let label = "Built multiple-workers auth-service";
|
|
console.time(label);
|
|
childProcess.execSync("wrangler build", {
|
|
cwd: path.join(__dirname, "auth-service"),
|
|
});
|
|
console.timeEnd(label);
|
|
|
|
label = "Built multiple-workers database-service";
|
|
console.time(label);
|
|
childProcess.execSync("wrangler build", {
|
|
cwd: path.join(__dirname, "database-service"),
|
|
});
|
|
console.timeEnd(label);
|
|
}
|