@teambit/envs 1.0.108 → 1.0.110

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,27 +0,0 @@
1
- import { Component } from '@teambit/component';
2
- import { Schema } from '@teambit/graphql';
3
- import gql from 'graphql-tag';
4
-
5
- import { EnvsMain } from './environments.main.runtime';
6
-
7
- export function environmentsSchema(environments: EnvsMain): Schema {
8
- return {
9
- typeDefs: gql`
10
- extend type Component {
11
- env: ExtensionDescriptor
12
- }
13
-
14
- type ExtensionDescriptor {
15
- id: String
16
- icon: String
17
- }
18
- `,
19
- resolvers: {
20
- Component: {
21
- env: (component: Component) => {
22
- return environments.getDescriptor(component);
23
- },
24
- },
25
- },
26
- };
27
- }