create-svc 0.1.87 → 0.1.88
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/src/scaffold.test.ts
CHANGED
|
@@ -284,6 +284,7 @@ test("scaffolds all runtime/framework variants with shared cloudrun config", asy
|
|
|
284
284
|
expect(makefile).toContain("bun run dev");
|
|
285
285
|
const devScript = await Bun.file(join(generatedRoot, "scripts", "dev.ts")).text();
|
|
286
286
|
expect(devScript).toContain("ensureLocalPostgres");
|
|
287
|
+
expect(devScript).toContain("Temporal worker skipped because TEMPORAL_ENABLED is false.");
|
|
287
288
|
const localDocker = await Bun.file(join(generatedRoot, "scripts", "local-docker.ts")).text();
|
|
288
289
|
expect(localDocker).toContain('["docker", "info"]');
|
|
289
290
|
expect(localDocker).toContain('["open", "-a", "Docker"]');
|
|
@@ -95,7 +95,9 @@ creates a trigger, the API service starts `waitlistFollowUpWorkflow` /
|
|
|
95
95
|
`WaitlistFollowUpWorkflow` asynchronously on the service task queue. The API
|
|
96
96
|
request only waits for the trigger record; workflow completion happens through
|
|
97
97
|
Temporal and is polled by the worker service.
|
|
98
|
-
Local `{{COMMAND_DEV}}` starts the API process and
|
|
98
|
+
Local `{{COMMAND_DEV}}` starts the API process and, when Temporal is enabled,
|
|
99
|
+
the worker process together after Docker Compose starts the local Temporal
|
|
100
|
+
server.
|
|
99
101
|
|
|
100
102
|
Production and preview deploys render `TEMPORAL_ENABLED=true` into the Cloud Run
|
|
101
103
|
manifest unless you override it. For Temporal Cloud, replace the local defaults
|
|
@@ -27,7 +27,12 @@ const api = Bun.spawn(apiCommand, {
|
|
|
27
27
|
env,
|
|
28
28
|
});
|
|
29
29
|
|
|
30
|
-
const
|
|
30
|
+
const shouldStartWorker = Boolean(workerCommand && temporalEnabled(env));
|
|
31
|
+
if (workerCommand && !shouldStartWorker) {
|
|
32
|
+
console.warn("Temporal worker skipped because TEMPORAL_ENABLED is false.");
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
const worker = workerCommand && shouldStartWorker
|
|
31
36
|
? Bun.spawn(workerCommand, {
|
|
32
37
|
stdin: "ignore",
|
|
33
38
|
stdout: "inherit",
|