@teambit/empty-env 0.0.0-e449b6049461ec05fee14d0493e99a9312340075 → 0.0.0-e4ea42e873f83c6adcfa2ca84d60bbf123d6c2ec

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/.npmignore ADDED
@@ -0,0 +1,18 @@
1
+ dist/tsconfig.tsbuildinfo
2
+ dist/tsconfig.json
3
+ /tsconfig.json
4
+
5
+ package-tar/
6
+ .bit-capsule-ready
7
+ /*.ts
8
+ artifacts/*
9
+ !artifacts/env-template
10
+ !artifacts/ui-bundle
11
+ !artifacts/preview-bundle
12
+ package-tar/
13
+ .bit-capsule-ready
14
+ /*.ts
15
+ artifacts/*
16
+ !artifacts/env-template
17
+ !artifacts/ui-bundle
18
+ !artifacts/preview-bundle
@@ -1,14 +1,14 @@
1
1
  ---
2
- description: The default env for components that were not configured with any env
2
+ description: An env that provides no development tooling, designed as the default for components with no configured env
3
3
  labels: ['core aspect', 'env', 'environment', 'default']
4
4
  ---
5
5
 
6
6
  ## Overview
7
7
 
8
- The empty env is the default env for components that were not configured with any env. It
9
- intentionally provides nothing - no compiler, no tester, no preview and no dependency policy - so
10
- components are used as-source and Bit works fully out of the box, without fetching anything from a
11
- remote.
8
+ The empty env intentionally provides nothing - no compiler, no tester, no preview and no
9
+ dependency policy - so components are used as-source and Bit works fully out of the box, without
10
+ fetching anything from a remote. It is designed to serve as the default env for components that
11
+ were not configured with any env.
12
12
 
13
13
  It has no behavior on purpose: any behavior baked into a core env changes components' output when
14
14
  Bit itself changes, without any env-version bump.
@@ -21,7 +21,3 @@ component. For example:
21
21
  ```bash
22
22
  bit env set my-component teambit.harmony/node
23
23
  ```
24
-
25
- Envs that used to be core aspects (such as `teambit.harmony/node` and `teambit.react/react`) are
26
- regular envs now. When old components use them without a version, Bit installs them with a pinned
27
- version. Run `bit install` after configuring such an env.
@@ -1,9 +1,9 @@
1
1
  import type { Environment, EnvsMain } from '@teambit/envs';
2
2
  export declare const EmptyEnvType = "empty";
3
3
  /**
4
- * the default env for components that were not configured with any env. it intentionally provides
5
- * nothing - no compiler, no tester, no preview, no dependencies policy - so components are used
6
- * as-source and bit works fully offline out of the box.
4
+ * an env that intentionally provides nothing - no compiler, no tester, no preview, no
5
+ * dependencies policy - so components are used as-source and bit works fully offline out of the
6
+ * box. designed to serve as the default env for components that were not configured with any env.
7
7
  *
8
8
  * it has no behavior on purpose: any behavior baked into a core env changes components' output
9
9
  * when bit itself changes, without any env-version bump. to get a development experience (compile,
@@ -31,9 +31,9 @@ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e =
31
31
  const EmptyEnvType = exports.EmptyEnvType = 'empty';
32
32
 
33
33
  /**
34
- * the default env for components that were not configured with any env. it intentionally provides
35
- * nothing - no compiler, no tester, no preview, no dependencies policy - so components are used
36
- * as-source and bit works fully offline out of the box.
34
+ * an env that intentionally provides nothing - no compiler, no tester, no preview, no
35
+ * dependencies policy - so components are used as-source and bit works fully offline out of the
36
+ * box. designed to serve as the default env for components that were not configured with any env.
37
37
  *
38
38
  * it has no behavior on purpose: any behavior baked into a core env changes components' output
39
39
  * when bit itself changes, without any env-version bump. to get a development experience (compile,
@@ -43,7 +43,7 @@ class EmptyEnv {
43
43
  constructor() {
44
44
  _defineProperty(this, "name", 'empty');
45
45
  _defineProperty(this, "icon", 'https://static.bit.dev/extensions-icons/default.svg');
46
- _defineProperty(this, "description", 'default env, provides no development tooling. configure an env to get one');
46
+ _defineProperty(this, "description", 'provides no development tooling. configure an env to get one');
47
47
  }
48
48
  async __getDescriptor() {
49
49
  return {
@@ -1 +1 @@
1
- {"version":3,"names":["_cli","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/cli';\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 * the default env for components that were not configured with any env. it intentionally provides\n * nothing - no compiler, no tester, no preview, no dependencies policy - so components are used\n * as-source and bit works fully offline out of the box.\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 = 'default env, 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,KAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,IAAA,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,CAA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AAC,CAAC;IAC/BO,IAAI,CAACC,WAAW,CAACH,QAAQ,CAAC;IAC1B,OAAO,IAAID,YAAY,CAACC,QAAQ,CAAC;EACnC;AACF;AAACN,OAAA,CAAAK,YAAA,GAAAA,YAAA;AAAAzB,eAAA,CAXYyB,YAAY,aAGNK,kBAAW;AAAA9B,eAAA,CAHjByB,YAAY,kBAID,CAACM,kBAAU,CAAC;AASpCC,0BAAc,CAACC,UAAU,CAACR,YAAY,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_cli","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/cli';\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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YAAY,GAAAC,OAAA,CAAAD,YAAA,GAAG,OAAO;;AAEnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAME,QAAQ,CAAwB;EAAAC,YAAA;IAAAtB,eAAA,eACpC,OAAO;IAAAA,eAAA,eAEP,qDAAqD;IAAAA,eAAA,sBAE9C,8DAA8D;EAAA;EAE5E,MAAMuB,eAAeA,CAAA,EAAG;IACtB,OAAO;MACLC,IAAI,EAAEL;IACR,CAAC;EACH;AACF;AAACC,OAAA,CAAAC,QAAA,GAAAA,QAAA;AAEM,MAAMI,YAAY,CAAC;EACxBH,WAAWA,CAAUI,QAAkB,EAAE;IAAA,KAApBA,QAAkB,GAAlBA,QAAkB;EAAG;EAK1C,aAAaC,QAAQA,CAAC,CAACC,IAAI,CAAa,EAAE;IACxC,MAAMF,QAAQ,GAAG,IAAIL,QAAQ,CAAC,CAAC;IAC/BO,IAAI,CAACC,WAAW,CAACH,QAAQ,CAAC;IAC1B,OAAO,IAAID,YAAY,CAACC,QAAQ,CAAC;EACnC;AACF;AAACN,OAAA,CAAAK,YAAA,GAAAA,YAAA;AAAAzB,eAAA,CAXYyB,YAAY,aAGNK,kBAAW;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@e449b6049461ec05fee14d0493e99a9312340075/dist/empty-env.docs.mdx';
2
+ import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.harmony_empty-env@e4ea42e873f83c6adcfa2ca84d60bbf123d6c2ec/dist/empty-env.docs.mdx';
3
3
 
4
4
  export const compositions = [];
5
5
  export const overview = [overview_0];
@@ -1,14 +1,14 @@
1
1
  ---
2
- description: The default env for components that were not configured with any env
2
+ description: An env that provides no development tooling, designed as the default for components with no configured env
3
3
  labels: ['core aspect', 'env', 'environment', 'default']
4
4
  ---
5
5
 
6
6
  ## Overview
7
7
 
8
- The empty env is the default env for components that were not configured with any env. It
9
- intentionally provides nothing - no compiler, no tester, no preview and no dependency policy - so
10
- components are used as-source and Bit works fully out of the box, without fetching anything from a
11
- remote.
8
+ The empty env intentionally provides nothing - no compiler, no tester, no preview and no
9
+ dependency policy - so components are used as-source and Bit works fully out of the box, without
10
+ fetching anything from a remote. It is designed to serve as the default env for components that
11
+ were not configured with any env.
12
12
 
13
13
  It has no behavior on purpose: any behavior baked into a core env changes components' output when
14
14
  Bit itself changes, without any env-version bump.
@@ -21,7 +21,3 @@ component. For example:
21
21
  ```bash
22
22
  bit env set my-component teambit.harmony/node
23
23
  ```
24
-
25
- Envs that used to be core aspects (such as `teambit.harmony/node` and `teambit.react/react`) are
26
- regular envs now. When old components use them without a version, Bit installs them with a pinned
27
- version. Run `bit install` after configuring such an env.
package/package.json CHANGED
@@ -1,19 +1,20 @@
1
1
  {
2
2
  "name": "@teambit/empty-env",
3
- "version": "0.0.0-e449b6049461ec05fee14d0493e99a9312340075",
3
+ "version": "0.0.0-e4ea42e873f83c6adcfa2ca84d60bbf123d6c2ec",
4
+ "homepage": "https://bit.cloud/teambit/harmony/empty-env",
4
5
  "main": "dist/index.js",
5
6
  "componentId": {
7
+ "scope": "teambit.harmony",
6
8
  "name": "empty-env",
7
- "version": "e449b6049461ec05fee14d0493e99a9312340075",
8
- "scope": "teambit.harmony"
9
+ "version": "e4ea42e873f83c6adcfa2ca84d60bbf123d6c2ec"
9
10
  },
10
11
  "dependencies": {
11
- "@teambit/harmony": "0.4.11",
12
- "@teambit/cli": "0.0.1345",
13
- "@teambit/envs": "0.0.0-ed901fa982ee988846f3d50e0f4005f2a16f83f9"
12
+ "@teambit/harmony": "0.4.12",
13
+ "@teambit/cli": "0.0.1367",
14
+ "@teambit/envs": "0.0.0-85f2420a17013620115181c5fa06e5391f64a073"
14
15
  },
15
16
  "devDependencies": {
16
- "@teambit/harmony.envs.core-aspect-env": "0.1.7"
17
+ "@teambit/harmony.envs.core-aspect-env": "2.0.6"
17
18
  },
18
19
  "peerDependencies": {},
19
20
  "license": "Apache-2.0",
@@ -21,7 +22,7 @@
21
22
  "peerDependenciesMeta": {},
22
23
  "exports": {
23
24
  ".": {
24
- "types": "./index.ts",
25
+ "types": "./dist/index.d.ts",
25
26
  "node": {
26
27
  "require": "./dist/index.js",
27
28
  "import": "./dist/esm.mjs"
@@ -29,8 +30,7 @@
29
30
  "default": "./dist/index.js"
30
31
  },
31
32
  "./dist/*": "./dist/*",
32
- "./artifacts/*": "./artifacts/*",
33
- "./*": "./*.ts"
33
+ "./artifacts/*": "./artifacts/*"
34
34
  },
35
35
  "private": false,
36
36
  "engines": {
package/types/style.d.ts CHANGED
@@ -40,3 +40,7 @@ declare module '*.mdx' {
40
40
  const component: any;
41
41
  export default component;
42
42
  }
43
+
44
+ // `reset-css` ships only `reset.css` (no `.d.ts`). TS6 refuses bare
45
+ // side-effect imports without declarations, so we declare the module here.
46
+ declare module 'reset-css';