@better-auth/cli 1.2.6 → 1.2.8-beta.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.
Files changed (2) hide show
  1. package/dist/index.mjs +6 -6
  2. package/package.json +2 -2
package/dist/index.mjs CHANGED
@@ -9,7 +9,7 @@ import prompts from 'prompts';
9
9
  import { logger, BetterAuthError, capitalizeFirstLetter } from 'better-auth';
10
10
  import { getAdapter, getMigrations, getAuthTables } from 'better-auth/db';
11
11
  import { loadConfig } from 'c12';
12
- import babelPresetTypescript from '@babel/preset-typescript';
12
+ import babelPresetTypeScript from '@babel/preset-typescript';
13
13
  import babelPresetReact from '@babel/preset-react';
14
14
  import fs from 'fs-extra';
15
15
  import fs$2 from 'fs/promises';
@@ -186,7 +186,7 @@ const jitiOptions = (cwd) => {
186
186
  babel: {
187
187
  presets: [
188
188
  [
189
- babelPresetTypescript,
189
+ babelPresetTypeScript,
190
190
  {
191
191
  isTSX: true,
192
192
  allExtensions: true
@@ -429,7 +429,7 @@ const generateDrizzleSchema = async ({
429
429
  return `integer({ mode: 'number' }).primaryKey({ autoIncrement: true })`;
430
430
  }
431
431
  }
432
- return databaseType === "pg" ? `uuid('${name}')` : `text('${name}')`;
432
+ return `text('${name}')`;
433
433
  }
434
434
  const type = field.type;
435
435
  const typeMap = {
@@ -476,7 +476,7 @@ const generateDrizzleSchema = async ({
476
476
  if (databaseType === "mysql") {
477
477
  id = `varchar('id', { length: 36 }).primaryKey()`;
478
478
  } else if (databaseType === "pg") {
479
- id = `uuid('id').primaryKey()`;
479
+ id = `text('id').primaryKey()`;
480
480
  } else {
481
481
  id = `text('id').primaryKey()`;
482
482
  }
@@ -513,7 +513,7 @@ function generateImport({
513
513
  );
514
514
  imports.push(`${databaseType}Table`);
515
515
  imports.push(
516
- databaseType === "mysql" ? "varchar, text" : databaseType === "pg" ? "uuid, text" : "text"
516
+ databaseType === "mysql" ? "varchar, text" : databaseType === "pg" ? "text" : "text"
517
517
  );
518
518
  imports.push(hasBigint ? databaseType !== "sqlite" ? "bigint" : "" : "");
519
519
  imports.push(databaseType !== "sqlite" ? "timestamp, boolean" : "");
@@ -1911,7 +1911,7 @@ async function initAction(opts) {
1911
1911
  }
1912
1912
  }
1913
1913
  } else {
1914
- s.stop(`Better Auth dependencies are ${chalk.greenBright(`up-to-date`)}!`);
1914
+ s.stop(`Better Auth dependencies are ${chalk.greenBright(`up to date`)}!`);
1915
1915
  }
1916
1916
  const packageJson = getPackageInfo(cwd);
1917
1917
  let appName;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@better-auth/cli",
3
- "version": "1.2.6",
3
+ "version": "1.2.8-beta.1",
4
4
  "description": "The CLI for Better Auth",
5
5
  "module": "dist/index.mjs",
6
6
  "repository": {
@@ -46,7 +46,7 @@
46
46
  "tinyexec": "^0.3.1",
47
47
  "yocto-spinner": "^0.1.1",
48
48
  "zod": "^3.23.8",
49
- "better-auth": "1.2.6"
49
+ "better-auth": "1.2.8-beta.1"
50
50
  },
51
51
  "files": [
52
52
  "dist"