create-svc 0.1.64 → 0.1.66
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
|
@@ -194,6 +194,8 @@ test("scaffolds all runtime/framework variants with shared cloudrun config", asy
|
|
|
194
194
|
expect(goMod).toContain("connectrpc.com/connect");
|
|
195
195
|
expect(mainGo).toContain("NewWaitlistService");
|
|
196
196
|
expect(mainGo).toContain("WaitlistServiceName");
|
|
197
|
+
const bufConfig = await Bun.file(join(generatedRoot, "buf.yaml")).text();
|
|
198
|
+
expect(bufConfig).toContain("name: buf.build/anmho/dns-api");
|
|
197
199
|
} else {
|
|
198
200
|
expect(goMod).not.toContain("connectrpc.com/connect");
|
|
199
201
|
expect(mainGo).toContain("NewWaitlistService");
|
|
@@ -231,11 +231,11 @@ async function runDoctor() {
|
|
|
231
231
|
return `${config.domain.hostname} -> ${target.serviceName}`;
|
|
232
232
|
});
|
|
233
233
|
await record(results, "deployment health", "fail", async () => {
|
|
234
|
-
const response = await fetchWithTimeout(`${serviceOrigin(target)}/
|
|
234
|
+
const response = await fetchWithTimeout(`${serviceOrigin(target)}/readyz`, 5_000);
|
|
235
235
|
if (!response.ok) {
|
|
236
|
-
throw new Error(`GET /
|
|
236
|
+
throw new Error(`GET /readyz returned ${response.status}`);
|
|
237
237
|
}
|
|
238
|
-
return "GET /
|
|
238
|
+
return "GET /readyz ok";
|
|
239
239
|
});
|
|
240
240
|
await record(results, "migration assets", "fail", async () => {
|
|
241
241
|
if (!(await Bun.file("./migrations/0000_init.sql").exists())) {
|
|
@@ -350,6 +350,7 @@ async function runSdk(args: string[]) {
|
|
|
350
350
|
if (subcommand === "publish") {
|
|
351
351
|
requireCommand("buf");
|
|
352
352
|
run("buf", ["push"]);
|
|
353
|
+
await writeSdkMode("remote");
|
|
353
354
|
return "Schema pushed to Buf Schema Registry";
|
|
354
355
|
}
|
|
355
356
|
|