create-svc 0.1.51 → 0.1.52

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.51",
3
+ "version": "0.1.52",
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",
@@ -285,7 +285,7 @@ async function deleteHyperdrive() {
285
285
  if (!id) {
286
286
  return;
287
287
  }
288
- run("wrangler", ["hyperdrive", "delete", id, "--force"], { allowFailure: true });
288
+ run("wrangler", ["hyperdrive", "delete", id], { allowFailure: true });
289
289
  }
290
290
 
291
291
  async function resolveDatabaseUrl(options: { preferRemote?: boolean } = {}) {
@@ -382,9 +382,9 @@ async function resolveNeonTarget(apiKey: string) {
382
382
  }
383
383
 
384
384
  async function deleteNeonDatabase() {
385
- const apiKey = Bun.env.NEON_API_KEY?.trim();
385
+ const apiKey = resolveNeonApiKey();
386
386
  if (!apiKey) {
387
- log.step("Skipping Neon database deletion because NEON_API_KEY is not set");
387
+ log.step("Skipping Neon database deletion because NEON_API_KEY or a readable Vault Neon provider path is not available");
388
388
  return;
389
389
  }
390
390