void 1.6.0 → 1.6.1

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/dist/cli/cli.mjs CHANGED
@@ -1640,9 +1640,9 @@ const subcommandGroups = {
1640
1640
  secret: () => runSubcommandGroup("secret", secretSubcommands, parseSecretArgs, (root, parsed) => import("../secret-CPq-B_vp.mjs").then(({ runSecretCommand }) => runSecretCommand(root, parsed))),
1641
1641
  domain: () => runSubcommandGroup("domain", domainSubcommands, parseDomainArgs, (root, parsed) => import("../domain-BlH90Ods.mjs").then(({ runDomainCommand }) => runDomainCommand(root, parsed))),
1642
1642
  email: () => runSubcommandGroup("email", emailSubcommands, parseEmailArgs, (root, parsed) => import("../email-Bkq8ZL1p.mjs").then(({ runEmailCommand }) => runEmailCommand(root, parsed))),
1643
- db: () => runSubcommandGroup("db", dbSubcommands, parseDbArgs, (root, parsed) => import("../db-cq5RW4Vy.mjs").then(({ runDbCommand }) => runDbCommand(root, parsed))),
1643
+ db: () => runSubcommandGroup("db", dbSubcommands, parseDbArgs, (root, parsed) => import("../db-DjtGAcOz.mjs").then(({ runDbCommand }) => runDbCommand(root, parsed))),
1644
1644
  env: () => runSubcommandGroup("env", envSubcommands, parseEnvArgs, (root, parsed) => import("../env-AvuCSeCH.mjs").then(({ runEnvCommand }) => runEnvCommand(root, parsed))),
1645
- gen: () => runSubcommandGroup("gen", genSubcommands, parseGenArgs, (root, parsed) => import("../gen-CIHXh9I8.mjs").then(({ runGenCommand }) => runGenCommand(root, parsed))),
1645
+ gen: () => runSubcommandGroup("gen", genSubcommands, parseGenArgs, (root, parsed) => import("../gen-cCxrFp9L.mjs").then(({ runGenCommand }) => runGenCommand(root, parsed))),
1646
1646
  github: () => runSubcommandGroup("github", githubSubcommands, parseGithubArgs, (root, parsed) => import("../github-cmd-CA-lBdkn.mjs").then(({ runGithubCommand }) => runGithubCommand(root, parsed))),
1647
1647
  build: () => runSubcommandGroup("build", buildSubcommands, parseBuildArgs, (root, parsed) => import("../build-cmd-DmjbuT6d.mjs").then(({ runBuildCommand }) => runBuildCommand(root, parsed)))
1648
1648
  };
@@ -1699,7 +1699,7 @@ else if (command === "prepare") {
1699
1699
  log.error(formatCloudflareUserMessage(err instanceof Error ? err.message : String(err)));
1700
1700
  process.exit(1);
1701
1701
  }
1702
- import("../prepare-BMGeKL16.mjs").then(({ runPrepareCommand }) => {
1702
+ import("../prepare-BuNbuFlA.mjs").then(({ runPrepareCommand }) => {
1703
1703
  runPrepareCommand(root).catch((err) => {
1704
1704
  log.error(formatCloudflareUserMessage(err.message ?? String(err)));
1705
1705
  process.exit(1);
@@ -1872,7 +1872,7 @@ else if (command) {
1872
1872
  return;
1873
1873
  }
1874
1874
  case "prepare": {
1875
- const { runPrepareCommand } = await import("../prepare-BMGeKL16.mjs");
1875
+ const { runPrepareCommand } = await import("../prepare-BuNbuFlA.mjs");
1876
1876
  await runPrepareCommand(root);
1877
1877
  return;
1878
1878
  }
@@ -14,7 +14,7 @@ import { A as confirm, H as outro, L as log, X as text, tt as isCancel } from ".
14
14
  import { n as PlatformApiError, r as PlatformClient } from "./client-CoxPEhJq.mjs";
15
15
  import { f as import_picocolors, i as dim, l as formatUrl, m as printSuccess, o as formatCount, u as getErrorMessage } from "./output-BCdLioKP.mjs";
16
16
  import { n as drizzleKitBin } from "./yarn-pnp-DgWbE7z5.mjs";
17
- import { n as formatTimestamp } from "./gen-BD-dfjxY.mjs";
17
+ import { n as formatTimestamp } from "./gen-B9bCV5qu.mjs";
18
18
  import { createRequire } from "node:module";
19
19
  import { existsSync, mkdirSync, readFileSync, readdirSync, renameSync, rmSync, writeFileSync } from "node:fs";
20
20
  import { pathToFileURL } from "node:url";
@@ -327,7 +327,7 @@ async function runPush(root, dialect) {
327
327
  printSuccess("Database schema pushed.");
328
328
  }
329
329
  async function runGenerate(root, dialect) {
330
- const { prepareProject } = await import("./prepare-BdxJJCMv.mjs");
330
+ const { prepareProject } = await import("./prepare-Cz18kLkF.mjs");
331
331
  const { PLACEHOLDER_DB_URL, writeDrizzleConfig } = await import("./config-BgysUhnm.mjs");
332
332
  await prepareProject(root);
333
333
  const authSchemaPath = join(root, ".void", "better-auth-schema.ts");
@@ -329,7 +329,7 @@ async function runModel(root, name, columns) {
329
329
  const existing = readFileSync(barrelPath, "utf-8");
330
330
  if (!existing.includes(exportLine)) writeFileSync(barrelPath, existing.trimEnd() + "\n" + exportLine + "\n");
331
331
  } else writeFileSync(barrelPath, exportLine + "\n");
332
- const { prepareProject } = await import("./prepare-BdxJJCMv.mjs");
332
+ const { prepareProject } = await import("./prepare-Cz18kLkF.mjs");
333
333
  await prepareProject(root);
334
334
  log.step(`Created ${relative(root, modelPath)}`);
335
335
  log.step(`Updated ${relative(root, barrelPath)}`);
@@ -0,0 +1 @@
1
+ export { r as runGenCommand } from "./gen-B9bCV5qu.mjs";
@@ -1,6 +1,6 @@
1
1
  import { L as log } from "./dist-D23AAMxT.mjs";
2
2
  import { m as printSuccess, p as note } from "./output-BCdLioKP.mjs";
3
- import { t as prepareProject } from "./prepare-BJW-f1f1.mjs";
3
+ import { t as prepareProject } from "./prepare-BerOZiD4.mjs";
4
4
  // src/cli/prepare.ts
5
5
  async function runPrepareCommand(root) {
6
6
  console.log();
@@ -0,0 +1 @@
1
+ export { t as prepareProject } from "./prepare-BerOZiD4.mjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "void",
3
- "version": "1.6.0",
3
+ "version": "1.6.1",
4
4
  "description": "Full-stack framework and deployment CLI for Cloudflare Workers, powered by Vite.",
5
5
  "homepage": "https://void.cloud",
6
6
  "bugs": {
@@ -352,11 +352,11 @@
352
352
  "@cloudflare/workers-types": "^5.20261102.1",
353
353
  "@cloudflare/workers-utils": "^0.50.2",
354
354
  "@napi-rs/keyring": "^2.1.2",
355
- "@void/deploy-cloudflare": "1.6.0",
356
- "@void/deploy-core": "1.6.0",
357
- "@void/edge": "1.6.0",
358
- "@void/isr": "1.6.0",
359
- "@void/platform": "1.6.0",
355
+ "@void/deploy-cloudflare": "1.6.1",
356
+ "@void/deploy-core": "1.6.1",
357
+ "@void/edge": "1.6.1",
358
+ "@void/isr": "1.6.1",
359
+ "@void/platform": "1.6.1",
360
360
  "better-auth": "^1.7.14",
361
361
  "better-sqlite3": "^13.0.3",
362
362
  "blake3-jit": "^1.1.0",
@@ -407,7 +407,7 @@
407
407
  "zod": "^4.6.7"
408
408
  },
409
409
  "peerDependencies": {
410
- "@void/md": "1.6.0",
410
+ "@void/md": "1.6.1",
411
411
  "arktype": ">=2.0.0",
412
412
  "valibot": ">=1.0.0-beta.7",
413
413
  "vite": "^8.0.0",
@@ -1 +0,0 @@
1
- export { r as runGenCommand } from "./gen-BD-dfjxY.mjs";
@@ -1 +0,0 @@
1
- export { t as prepareProject } from "./prepare-BJW-f1f1.mjs";
@@ -48,6 +48,7 @@ async function prepareProject(root) {
48
48
  if (hasDbRuntime) {
49
49
  if (generateDbDts(outDir, schema, dialect)) written.push(join(".void", "db.d.ts"));
50
50
  } else removeGeneratedFile(outDir, "db.d.ts", removed);
51
+ if (ensureProjectTsconfig(root, hasRouteTypes, hasDbRuntime, schema != null, { paths })) written.push(join(".void", "tsconfig.json"));
51
52
  if (authEnabled) {
52
53
  const authRuntime = {
53
54
  dialect,
@@ -71,7 +72,6 @@ async function prepareProject(root) {
71
72
  removeGeneratedFile(outDir, "better-auth-schema.ts", removed);
72
73
  removeGeneratedFile(outDir, "better-auth-db.ts", removed);
73
74
  }
74
- if (ensureProjectTsconfig(root, hasRouteTypes, hasDbRuntime, schema != null, { paths })) written.push(join(".void", "tsconfig.json"));
75
75
  return {
76
76
  written,
77
77
  removed