From cdf49984095fd9e19afa9a89ae872e0140d5a80d Mon Sep 17 00:00:00 2001 From: Luciano Alves Date: Sun, 15 Jan 2023 04:16:39 -0300 Subject: [PATCH] feat(add): add folder constants --- packages/apollo/lib/{ => constants}/apollo.constants.ts | 0 packages/apollo/lib/constants/index.ts | 1 + packages/apollo/lib/decorators/plugin.decorator.ts | 2 +- packages/apollo/lib/services/plugins-explorer.service.ts | 2 +- 4 files changed, 3 insertions(+), 2 deletions(-) rename packages/apollo/lib/{ => constants}/apollo.constants.ts (100%) create mode 100644 packages/apollo/lib/constants/index.ts diff --git a/packages/apollo/lib/apollo.constants.ts b/packages/apollo/lib/constants/apollo.constants.ts similarity index 100% rename from packages/apollo/lib/apollo.constants.ts rename to packages/apollo/lib/constants/apollo.constants.ts diff --git a/packages/apollo/lib/constants/index.ts b/packages/apollo/lib/constants/index.ts new file mode 100644 index 000000000..39d160e13 --- /dev/null +++ b/packages/apollo/lib/constants/index.ts @@ -0,0 +1 @@ +export * from './apollo.constants'; diff --git a/packages/apollo/lib/decorators/plugin.decorator.ts b/packages/apollo/lib/decorators/plugin.decorator.ts index ecb6b3bb8..37babb360 100644 --- a/packages/apollo/lib/decorators/plugin.decorator.ts +++ b/packages/apollo/lib/decorators/plugin.decorator.ts @@ -1,5 +1,5 @@ import { SetMetadata } from '@nestjs/common'; -import { PLUGIN_METADATA } from '../apollo.constants'; +import { PLUGIN_METADATA } from '../constants'; /** * Decorator that marks a class as an Apollo plugin. diff --git a/packages/apollo/lib/services/plugins-explorer.service.ts b/packages/apollo/lib/services/plugins-explorer.service.ts index 4ed3d9fac..d1c31b10e 100644 --- a/packages/apollo/lib/services/plugins-explorer.service.ts +++ b/packages/apollo/lib/services/plugins-explorer.service.ts @@ -1,7 +1,7 @@ import { InstanceWrapper } from '@nestjs/core/injector/instance-wrapper'; import { ModulesContainer } from '@nestjs/core/injector/modules-container'; import { BaseExplorerService, GqlModuleOptions } from '@nestjs/graphql'; -import { PLUGIN_METADATA } from '../apollo.constants'; +import { PLUGIN_METADATA } from '../constants'; export class PluginsExplorerService extends BaseExplorerService { constructor(private readonly modulesContainer: ModulesContainer) {