@better-auth/cli 1.3.0-beta.7 → 1.3.0-beta.9

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.
Files changed (2) hide show
  1. package/dist/index.mjs +4 -4
  2. package/package.json +2 -2
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { Command } from 'commander';
3
- import { z } from 'zod';
3
+ import * as z from 'zod/v4';
4
4
  import fs$1, { existsSync } from 'fs';
5
5
  import path from 'path';
6
6
  import yoctoSpinner from 'yocto-spinner';
@@ -427,11 +427,11 @@ const generateDrizzleSchema = async ({
427
427
  if (field.references?.field === "id") {
428
428
  if (options.advanced?.database?.useNumberId) {
429
429
  if (databaseType === "pg") {
430
- return `serial('${name}').primaryKey()`;
430
+ return `integer('${name}')`;
431
431
  } else if (databaseType === "mysql") {
432
- return `int('${name}').autoIncrement().primaryKey()`;
432
+ return `int('${name}')`;
433
433
  } else {
434
- return `integer({ mode: 'number' }).primaryKey({ autoIncrement: true })`;
434
+ return `integer('${name}')`;
435
435
  }
436
436
  }
437
437
  return `text('${name}')`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@better-auth/cli",
3
- "version": "1.3.0-beta.7",
3
+ "version": "1.3.0-beta.9",
4
4
  "description": "The CLI for Better Auth",
5
5
  "module": "dist/index.mjs",
6
6
  "repository": {
@@ -55,7 +55,7 @@
55
55
  "tinyexec": "^0.3.1",
56
56
  "yocto-spinner": "^0.1.1",
57
57
  "zod": "^3.23.8",
58
- "better-auth": "1.3.0-beta.7"
58
+ "better-auth": "1.3.0-beta.9"
59
59
  },
60
60
  "files": [
61
61
  "dist"