// TODO: Typing env import { container } from 'tsyringe'; import { OfficialTemplateGitHubClient } from '../../clients'; /** * Class with @Service doesn't need to explicitly Container.set here if it doesn't * need pass arguments to constructor * * 2023/12/02 - Update: Do not trust Decorator! It might not execute properly * Explictly register is better */ export async function RegisterServices() { const GitHubAccessToken = process.env.GithubPAT!; container.register(OfficialTemplateGitHubClient, { useValue: new OfficialTemplateGitHubClient({ accessToken: GitHubAccessToken, }), }); }