@teambit/empty-env 0.0.102 → 0.0.103
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.
|
@@ -4,9 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.EmptyEnvType = exports.EmptyEnvMain = exports.EmptyEnv = void 0;
|
|
7
|
-
function
|
|
8
|
-
const data = require("@teambit/
|
|
9
|
-
|
|
7
|
+
function _harmonyModules() {
|
|
8
|
+
const data = require("@teambit/harmony.modules.runtimes");
|
|
9
|
+
_harmonyModules = function () {
|
|
10
10
|
return data;
|
|
11
11
|
};
|
|
12
12
|
return data;
|
|
@@ -63,7 +63,7 @@ class EmptyEnvMain {
|
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
exports.EmptyEnvMain = EmptyEnvMain;
|
|
66
|
-
_defineProperty(EmptyEnvMain, "runtime",
|
|
66
|
+
_defineProperty(EmptyEnvMain, "runtime", _harmonyModules().MainRuntime);
|
|
67
67
|
_defineProperty(EmptyEnvMain, "dependencies", [_envs().EnvsAspect]);
|
|
68
68
|
_emptyEnv().EmptyEnvAspect.addRuntime(EmptyEnvMain);
|
|
69
69
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["_harmonyModules","data","require","_envs","_emptyEnv","_defineProperty","e","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","EmptyEnvType","exports","EmptyEnv","constructor","__getDescriptor","type","EmptyEnvMain","emptyEnv","provider","envs","registerEnv","MainRuntime","EnvsAspect","EmptyEnvAspect","addRuntime"],"sources":["empty-env.main.runtime.ts"],"sourcesContent":["import { MainRuntime } from '@teambit/harmony.modules.runtimes';\nimport type { Environment, EnvsMain } from '@teambit/envs';\nimport { EnvsAspect } from '@teambit/envs';\nimport { EmptyEnvAspect } from './empty-env.aspect';\n\nexport const EmptyEnvType = 'empty';\n\n/**\n * an env that intentionally provides nothing - no compiler, no tester, no preview, no\n * dependencies policy - so components are used as-source and bit works fully offline out of the\n * box. designed to serve as the default env for components that were not configured with any env.\n *\n * it has no behavior on purpose: any behavior baked into a core env changes components' output\n * when bit itself changes, without any env-version bump. to get a development experience (compile,\n * test, lint, docs), configure a real env, e.g. `bit env set my-component teambit.harmony/node`.\n */\nexport class EmptyEnv implements Environment {\n name = 'empty';\n\n icon = 'https://static.bit.dev/extensions-icons/default.svg';\n\n description = 'provides no development tooling. configure an env to get one';\n\n async __getDescriptor() {\n return {\n type: EmptyEnvType,\n };\n }\n}\n\nexport class EmptyEnvMain {\n constructor(readonly emptyEnv: EmptyEnv) {}\n\n static runtime = MainRuntime;\n static dependencies = [EnvsAspect];\n\n static async provider([envs]: [EnvsMain]) {\n const emptyEnv = new EmptyEnv();\n envs.registerEnv(emptyEnv);\n return new EmptyEnvMain(emptyEnv);\n }\n}\n\nEmptyEnvAspect.addRuntime(EmptyEnvMain);\n"],"mappings":";;;;;;AAAA,SAAAA,gBAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,eAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,SAAAE,MAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,KAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAG,UAAA;EAAA,MAAAH,IAAA,GAAAC,OAAA;EAAAE,SAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAAoD,SAAAI,gBAAAC,CAAA,EAAAC,CAAA,EAAAC,CAAA,YAAAD,CAAA,GAAAE,cAAA,CAAAF,CAAA,MAAAD,CAAA,GAAAI,MAAA,CAAAC,cAAA,CAAAL,CAAA,EAAAC,CAAA,IAAAK,KAAA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AA;AAAAzB,eAAA,CAXYyB,YAAY,aAGNK,6BAAW;AAAA9B,eAAA,CAHjByB,YAAY,kBAID,CAACM,kBAAU,CAAC;AASpCC,0BAAc,CAACC,UAAU,CAACR,YAAY,CAAC","ignoreList":[]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
;
|
|
2
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.harmony_empty-env@0.0.
|
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.harmony_empty-env@0.0.103/dist/empty-env.docs.mdx';
|
|
3
3
|
|
|
4
4
|
export const compositions = [];
|
|
5
5
|
export const overview = [overview_0];
|
package/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/empty-env",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.103",
|
|
4
4
|
"homepage": "https://bit.cloud/teambit/harmony/empty-env",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "teambit.harmony",
|
|
8
8
|
"name": "empty-env",
|
|
9
|
-
"version": "0.0.
|
|
9
|
+
"version": "0.0.103"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@teambit/harmony": "0.4.12",
|
|
13
|
-
"@teambit/
|
|
14
|
-
"@teambit/
|
|
13
|
+
"@teambit/envs": "1.0.1188",
|
|
14
|
+
"@teambit/harmony.modules.runtimes": "0.0.1"
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
17
|
"@teambit/harmony.envs.core-aspect-env": "2.1.1"
|