Skip to content

Commit

Permalink
revert: "refactor(register): cleanup unnecessary side effect imports …
Browse files Browse the repository at this point in the history
…of index"

This reverts commit dede596.
  • Loading branch information
favna committed Dec 5, 2023
1 parent c8ee3e4 commit c2af242
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/api/src/register.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
2 changes: 2 additions & 0 deletions packages/hmr/src/register.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import './index';

import { Plugin, postLogin, SapphireClient } from '@sapphire/framework';
import { start } from './index';

Expand Down
2 changes: 2 additions & 0 deletions packages/i18next/src/register.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
2 changes: 2 additions & 0 deletions packages/logger/src/register.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import './index';

import { Plugin, preGenericsInitialization, SapphireClient } from '@sapphire/framework';
import type { ClientOptions } from 'discord.js';
import { Logger } from './index';
Expand Down
2 changes: 2 additions & 0 deletions packages/pattern-commands/src/register.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import './index';

import { Plugin, postInitialization, SapphireClient } from '@sapphire/framework';
import type { ClientOptions } from 'discord.js';
import { loadListeners, PatternCommandStore } from './index';
Expand Down
2 changes: 2 additions & 0 deletions packages/scheduled-tasks/src/register.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
2 changes: 2 additions & 0 deletions packages/subcommands/src/register.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import './index';

import { Plugin, postInitialization, SapphireClient } from '@sapphire/framework';
import type { ClientOptions } from 'discord.js';
import { loadListeners, loadPreconditions } from './index';
Expand Down
2 changes: 2 additions & 0 deletions packages/utilities-store/src/register.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import './index';

import { Plugin, postLogin, preInitialization, SapphireClient } from '@sapphire/framework';
import { Utilities } from './index';

Expand Down

0 comments on commit c2af242

Please sign in to comment.