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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-svc",
3
- "version": "0.1.64",
3
+ "version": "0.1.66",
4
4
  "description": "Local microservice bootstrap CLI for Cloud Run and Workers services with Neon-backed data.",
5
5
  "module": "index.ts",
6
6
  "type": "module",
@@ -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)}/healthz`, 5_000);
234
+ const response = await fetchWithTimeout(`${serviceOrigin(target)}/readyz`, 5_000);
235
235
  if (!response.ok) {
236
- throw new Error(`GET /healthz returned ${response.status}`);
236
+ throw new Error(`GET /readyz returned ${response.status}`);
237
237
  }
238
- return "GET /healthz ok";
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
 
@@ -1,6 +1,7 @@
1
1
  version: v2
2
2
  modules:
3
3
  - path: protos
4
+ name: buf.build/anmho/{{SERVICE_ID}}
4
5
  lint:
5
6
  use:
6
7
  - STANDARD