@teambit/env 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,28 +0,0 @@
1
- import AspectAspect, { AspectMain } from '@teambit/aspect';
2
- import { MainRuntime } from '@teambit/cli';
3
- import EnvsAspect, { Environment, EnvsMain, EnvTransformer } from '@teambit/envs';
4
- import { EnvAspect } from './env.aspect';
5
- import { EnvEnv } from './env.env';
6
-
7
- export class EnvMain {
8
- constructor(readonly envEnv: EnvEnv, private envs: EnvsMain) {}
9
-
10
- /**
11
- * compose your own aspect environment.
12
- */
13
- compose(transformers: EnvTransformer[] = [], targetEnv: Environment = {}) {
14
- return this.envs.compose(this.envs.merge(targetEnv, this.envEnv), transformers);
15
- }
16
-
17
- static slots = [];
18
- static dependencies = [AspectAspect, EnvsAspect];
19
- static runtime = MainRuntime;
20
- static async provider([aspectAspect, envs]: [AspectMain, EnvsMain]) {
21
- const envEnv = aspectAspect.compose([], new EnvEnv(aspectAspect.aspectEnv));
22
-
23
- envs.registerEnv(envEnv);
24
- return new EnvMain(envEnv as EnvEnv, envs);
25
- }
26
- }
27
-
28
- EnvAspect.addRuntime(EnvMain);
package/index.ts DELETED
@@ -1,6 +0,0 @@
1
- import { EnvAspect } from './env.aspect';
2
-
3
- export type { EnvEnv } from './env.env';
4
- export type { EnvMain } from './env.main.runtime';
5
- export default EnvAspect;
6
- export { EnvAspect };