Skip to content

Commit

Permalink
docs: add codmod documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelblum committed Nov 19, 2024
1 parent 79a0f4e commit db5a645
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/v8/remove-current-user-from-auth-module.ts
Original file line number Diff line number Diff line change
@@ -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");

Expand All @@ -22,7 +34,7 @@ export default async function removeCurrentUserFromAuthModule() {
currentUserProp.remove();
}
}
sourceFile.save();
}
sourceFile.save();
});
}

0 comments on commit db5a645

Please sign in to comment.