Commit Graph
42 Commits
Author SHA1 Message Date
Paul NodetandGitHub 43ab2860b4 fix(cli): invalid prisma init config (#1964) 2025-03-24 08:03:20 +03:00
occoruneandGitHub ab52426c01 cli(fix): correct typo in auth-config for DrizzleAdapter (#1950) 2025-03-23 08:42:33 +03:00
8e47f11298 fix(init-cmd): Dependencies do not install if ENVs are skipped (#1603)
* fix(cli): init cmd types

* fix(init): deps do not install if env is skipped

- also made the CLI show which packages it will install

* fix(typecheck): specify tsconfig for declarations

---------

Co-authored-by: Bereket Engida <bekacru@gmail.com>
2025-03-01 11:03:56 +03:00
c66fdc9129 feat: init Better Auth CLI command (#1427)
* update: init command now can do plugins & DB generation

* fix: revert nextjs auth.ts file

* add: pacakge @clack/prompts for better CLI experience

* update: moved from prompts to clack/prompts

* add: functionality to hide logs coming from `getConfig`

* remove: hide logs functionality

* chore: remove unneeded import

* add: install dependencies feature

* add: functionality to update/install better-auth

* fix: install/upgrade better-auth deps

* add: spinner during version checking

* fix: nextCookies plugin import path

* fix: oidc plugin contents

* update: emoji-ify

* fix: mysql code

* refactor: logging/prompt style

* update: mysql use 1 ENV

* fix: msql, revert back to old code

* fix: mysql connectionUri, again

* fix: missing sqlite env

* fix: added back the plugins multiselect

* update: outro text

* add: ENV generation for `BETTER_AUTH_URL` & `BETTER_AUTH_SECRET`

* update: intro & outro text, plus some ENV default values

* remove: name from cli options

* fix: made index.ts's getPackageInfo not crash the program entirely if ENOENT

* update: prompt to get auth config dir if not auto found

* fix: create auth config file

* add: log to state the new file that's being created

* update: outro text

* fix: unneeded diff display

* add: auth-client creator

* fix: auth-client plugins are now grouped

* fix: auth-client import path bugs

* fix: invalid client plugins

* fix: oneTap client plugin contents

* update: allow getConfig to throw errors instead of logging

* fix: auth config error logging

* WIP: auth client code gen

* chore: linter

* update: now supports auth client generation

* WIP: grouped imports

* remove: functionality to update existing auth code

* add: functionality to update tsconfig

* fix: tsconfig not saving new updated values

* fix: handle missing .env files in init process

* update: made `no env file found` error message use `outro` for better logging experience

* fix: removed `ms` at the end as the `formatMilliseconds` fn already handles that

* update: move ENV code after plugins initialization

* chore: update pnpm lockfile and remove deprecated package note

* chore: lint

---------

Co-authored-by: Bereket Engida <bekacru@gmail.com>
2025-03-01 00:33:14 +03:00
Arda SoyturkandGitHub b9ccfff628 feat(cli): add support for auth.server.ts (#1456) 2025-02-20 21:54:22 +03:00
Greg JacksonandGitHub f011c741e6 fix(cli): add on delete cascade constraint to drizzle references (#1419) 2025-02-12 08:39:00 +03:00
81936d756a fix(cli): wrong kysely schema filename (#1366)
Co-authored-by: Alfan Jauhari <alfan@zero-one-group.com>
2025-02-06 15:09:51 +03:00
1ceed9c336 chore(cli): pkg info and utils on CLI tools (#1364)
---------

Co-authored-by: Bereket Engida <bekacru@gmail.com>
2025-02-06 11:05:08 +03:00
Bereket EngidaandGitHub db4b4fce40 feat: support .js config (#1256) 2025-01-21 14:19:34 +03:00
Bereket Engida d2ce9da9b2 chore: lint 2025-01-16 13:07:34 +03:00
Ammar ElbeheryandGitHub bde1407b15 cli(fix): add bigint type to generators (#1217) 2025-01-16 12:29:46 +03:00
Bereket Engida 9f2e45b8c7 chore: cleanup 2025-01-06 14:30:39 +03:00
Bereket EngidaandGitHub bfc8f15aad fix(drizzle): default to snake-case (#1012) 2024-12-24 13:04:14 +03:00
KesvaLandGitHub 74fff8a946 fix: get-config paths for missing slash for /lib/server (#919) 2024-12-17 08:55:45 +03:00
Bereket Engida 7076f7cf56 chore: lint 2024-12-16 13:18:57 +03:00
Bereket Engida 7ff86949e3 fix(cli): improve cli message for server-only package blocking execution 2024-12-16 13:08:23 +03:00
Bereket EngidaandGitHub 0aaa573a32 fix(drizzle): it should use text for id fields other than mysql (#719) 2024-12-02 12:26:43 +03:00
Bereket EngidaandGitHub ee705a5f26 fix: prisma schema generator should add @db.text for mysql and generate many fields (#718) 2024-12-02 12:01:54 +03:00
Bereket Engida 221edcad6c chore:lint 2024-11-29 20:28:18 +03:00
ChlorineandGitHub 74eb485597 fix: conditionally set Drizzle text type to varchar for MySQL migrations (#672) 2024-11-29 20:22:52 +03:00
Bereket Engida 982bdd497a chore:lint 2024-11-26 15:12:42 +03:00
enchartandGitHub d3929d0fd9 feat(cli): account for usePlural option in drizzle schema generation (#664) 2024-11-26 15:12:22 +03:00
LovelessCodesandGitHub ae4d5bae35 chore: rename secert.ts to secret.ts (#661) 2024-11-26 10:41:21 +03:00
Bereket EngidaandGitHub ca5e90883c feat(cli): add secret generator command for the cli (#659) 2024-11-25 23:44:30 +03:00
Jonathan RomanoandGitHub b236e26b03 fix: Drizzle schema generation custom model name (#634) 2024-11-25 11:10:05 +03:00
AbdallahandGitHub abe3dddf23 fix(cli): fix -y flag in generate.ts (#631) 2024-11-25 09:11:29 +03:00
Bereket Engida b58c17b621 feat(cli): cli should look for auth config on 2024-11-23 23:43:22 +03:00
Bereket Engida 4b92d71d64 chore: update snapshot 2024-11-23 03:29:54 +03:00
Bereket EngidaandGitHub d3506e1f44 fix: CLI fails on trailing commas when reading tsconfig (#607) 2024-11-20 22:42:45 +03:00
Bereket EngidaandGitHub afecf4ce41 feat: custom table names and fields for plugins (#570) 2024-11-18 11:25:39 +03:00
ThorbenandGitHub a3867bdbba feat: allow users to pass custom logger 2024-11-18 09:58:09 +03:00
Jonathan WilkeandGitHub c2d42bb61d chore: output resolved path in CLI when config couldn't be read (#518) 2024-11-13 22:24:20 +03:00
Jonathan WilkeandGitHub c322fb2fc8 chore: output error log (#519) 2024-11-13 22:24:02 +03:00
Bereket Engida 515a5e17fc chore: remove log 2024-11-13 21:41:55 +03:00
Bereket EngidaandGitHub 0775612256 feat: native adapter interfaces (#513) 2024-11-13 19:28:11 +03:00
Bereket Engida 49d5a6a842 fix: expo origin check failing 2024-11-03 00:18:07 +03:00
Bereket Engida f3352560e0 chore:lint 2024-10-26 16:55:52 +03:00
Nico LynzaadandGitHub c4f405beb2 fix(cli): enhance alias path resolution (#344) 2024-10-26 16:55:23 +03:00
Bereket Engida 3cf929f469 chore: add cli name 2024-10-23 19:27:46 +03:00
Bereket EngidaandGitHub a573f941b1 fix: add mongodb id map and support array type gen for prisma (#243) 2024-10-19 14:33:49 +03:00
Bereket Engida df3d8540d0 demo: fix dep 2024-10-19 08:32:43 +03:00
Bereket EngidaandGitHub 2953fe882d refactor: move cli to it's own pacakge (#176)
* refactor

* cleanup and more refactor

* test: cli

* chore: release v0.4.9-beta.12

* feat: kysley generate and orm migrations

* chore: release v0.4.9-beta.13

* test: generate

* test: change test snapshot file

* docs

* chore: lint

* fix: test

* chore: release v0.4.9-beta.14

* chore: release v0.4.9
2024-10-15 16:35:14 +03:00