better-auth 0.2.5-beta.2 → 0.2.5-beta.3

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.
@@ -267,7 +267,7 @@ var drizzleAdapter = (db, options) => {
267
267
  let code = `import { ${databaseType}Table, text, ${int}, ${timestampAndBoolean} } from "drizzle-orm/${databaseType}-core";
268
268
  `;
269
269
  const fileExist = existsSync(filePath);
270
- let fileContent = await fs.readFile(filePath, "utf-8");
270
+ let fileContent = fileExist ? await fs.readFile(filePath, "utf-8") : "";
271
271
  for (const table in tables) {
272
272
  let getType2 = function(name, type) {
273
273
  if (type === "string") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "better-auth",
3
- "version": "0.2.5-beta.2",
3
+ "version": "0.2.5-beta.3",
4
4
  "description": "The most comprehensive authentication library for TypeScript.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",