From db5a6458bad9f56b793cd2e7ede009f7195ebb43 Mon Sep 17 00:00:00 2001 From: Manuel Blum Date: Tue, 19 Nov 2024 08:21:08 +0100 Subject: [PATCH] docs: add codmod documentation --- src/v8/remove-current-user-from-auth-module.ts | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/v8/remove-current-user-from-auth-module.ts b/src/v8/remove-current-user-from-auth-module.ts index a25a50b..e7e3e6d 100644 --- a/src/v8/remove-current-user-from-auth-module.ts +++ b/src/v8/remove-current-user-from-auth-module.ts @@ -1,5 +1,17 @@ import { Project, SyntaxKind } from "ts-morph"; +/** + * from + * + * createAuthResolver({ + * currentUser: CurrentUser, + * }), + * + * + * to + * + * createAuthResolver({}), + */ export default async function removeCurrentUserFromAuthModule() { console.log("Remove Current User From Auth Module"); @@ -22,7 +34,7 @@ export default async function removeCurrentUserFromAuthModule() { currentUserProp.remove(); } } + sourceFile.save(); } - sourceFile.save(); }); }