From c2af24269956132237988d94e4d94719b2cd442c Mon Sep 17 00:00:00 2001 From: Jeroen Claassens Date: Tue, 5 Dec 2023 22:27:13 +0100 Subject: [PATCH] revert: "refactor(register): cleanup unnecessary side effect imports of index" This reverts commit dede596ae22ceec2700dd860287a1260f092b502. --- packages/api/src/register.ts | 2 ++ packages/hmr/src/register.ts | 2 ++ packages/i18next/src/register.ts | 2 ++ packages/logger/src/register.ts | 2 ++ packages/pattern-commands/src/register.ts | 2 ++ packages/scheduled-tasks/src/register.ts | 2 ++ packages/subcommands/src/register.ts | 2 ++ packages/utilities-store/src/register.ts | 2 ++ 8 files changed, 16 insertions(+) diff --git a/packages/api/src/register.ts b/packages/api/src/register.ts index 41bebbe7..81a3d66c 100644 --- a/packages/api/src/register.ts +++ b/packages/api/src/register.ts @@ -1,3 +1,5 @@ +import './index'; + import { Plugin, postInitialization, preLogin, SapphireClient } from '@sapphire/framework'; import type { ClientOptions } from 'discord.js'; import { loadListeners, loadMediaParsers, loadMiddlewares, loadRoutes, Server } from './index'; diff --git a/packages/hmr/src/register.ts b/packages/hmr/src/register.ts index 47619aa8..d8146fae 100644 --- a/packages/hmr/src/register.ts +++ b/packages/hmr/src/register.ts @@ -1,3 +1,5 @@ +import './index'; + import { Plugin, postLogin, SapphireClient } from '@sapphire/framework'; import { start } from './index'; diff --git a/packages/i18next/src/register.ts b/packages/i18next/src/register.ts index ac251e4f..abddb89f 100644 --- a/packages/i18next/src/register.ts +++ b/packages/i18next/src/register.ts @@ -1,3 +1,5 @@ +import './index'; + import { Plugin, SapphireClient, container, postLogin, preGenericsInitialization, preLogin } from '@sapphire/framework'; import { watch } from 'chokidar'; import type { ClientOptions } from 'discord.js'; diff --git a/packages/logger/src/register.ts b/packages/logger/src/register.ts index ccca5393..3889a0df 100644 --- a/packages/logger/src/register.ts +++ b/packages/logger/src/register.ts @@ -1,3 +1,5 @@ +import './index'; + import { Plugin, preGenericsInitialization, SapphireClient } from '@sapphire/framework'; import type { ClientOptions } from 'discord.js'; import { Logger } from './index'; diff --git a/packages/pattern-commands/src/register.ts b/packages/pattern-commands/src/register.ts index 22471c76..27969d24 100644 --- a/packages/pattern-commands/src/register.ts +++ b/packages/pattern-commands/src/register.ts @@ -1,3 +1,5 @@ +import './index'; + import { Plugin, postInitialization, SapphireClient } from '@sapphire/framework'; import type { ClientOptions } from 'discord.js'; import { loadListeners, PatternCommandStore } from './index'; diff --git a/packages/scheduled-tasks/src/register.ts b/packages/scheduled-tasks/src/register.ts index ac4f4505..d0e7a27b 100644 --- a/packages/scheduled-tasks/src/register.ts +++ b/packages/scheduled-tasks/src/register.ts @@ -1,3 +1,5 @@ +import './index'; + import { container, Plugin, postInitialization, postLogin, preGenericsInitialization, SapphireClient } from '@sapphire/framework'; import type { ClientOptions } from 'discord.js'; import { loadListeners, ScheduledTaskHandler, ScheduledTaskStore } from './index'; diff --git a/packages/subcommands/src/register.ts b/packages/subcommands/src/register.ts index e5150127..fa89b744 100644 --- a/packages/subcommands/src/register.ts +++ b/packages/subcommands/src/register.ts @@ -1,3 +1,5 @@ +import './index'; + import { Plugin, postInitialization, SapphireClient } from '@sapphire/framework'; import type { ClientOptions } from 'discord.js'; import { loadListeners, loadPreconditions } from './index'; diff --git a/packages/utilities-store/src/register.ts b/packages/utilities-store/src/register.ts index 3e12d498..6700ea77 100644 --- a/packages/utilities-store/src/register.ts +++ b/packages/utilities-store/src/register.ts @@ -1,3 +1,5 @@ +import './index'; + import { Plugin, postLogin, preInitialization, SapphireClient } from '@sapphire/framework'; import { Utilities } from './index';