@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.
- package/artifacts/preview/teambit_envs_envs-preview.js +1 -0
- package/dist/{preview-1703647408454.js → preview-1703733956734.js} +2 -2
- package/package.json +31 -27
- package/env-definition.ts +0 -50
- package/env-interface.ts +0 -5
- package/env-service-list.ts +0 -31
- package/env.fragment.ts +0 -35
- package/env.plugin.ts +0 -60
- package/environment.ts +0 -236
- package/environments.aspect.ts +0 -5
- package/environments.graphql.ts +0 -27
- package/environments.main.runtime.ts +0 -1058
- package/index.ts +0 -29
package/environments.graphql.ts
DELETED
@@ -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
|
-
}
|