@teambit/workspace 1.0.1060 → 1.0.1062

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.
@@ -16,8 +16,8 @@ export class EnvsUnsetCmd implements Command {
16
16
  options = [];
17
17
  group = 'component-config';
18
18
  extendedDescription = `keep in mind that this doesn't remove envs that are set via variants.
19
- in only removes envs that appear in the .bitmap file, which were previously configured via "bit env set".
20
- the purpose of this command is to reset previously assigned envs to either allow variants configure the env or use the base node env.
19
+ it only removes envs that appear in the .bitmap file, which were previously configured via "bit env set".
20
+ the purpose of this command is to reset previously assigned envs to either allow variants to configure the env or use the base node env.
21
21
  ${PATTERN_HELP('env unset')}`;
22
22
 
23
23
  constructor(private workspace: Workspace) {}
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/workspace",
3
- "version": "1.0.1060",
3
+ "version": "1.0.1062",
4
4
  "homepage": "https://bit.cloud/teambit/workspace/workspace",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.workspace",
8
8
  "name": "workspace",
9
- "version": "1.0.1060"
9
+ "version": "1.0.1062"
10
10
  },
11
11
  "dependencies": {
12
12
  "lodash": "4.17.21",
@@ -30,43 +30,43 @@
30
30
  "reset-css": "5.0.1",
31
31
  "@teambit/component-id": "1.2.4",
32
32
  "@teambit/harmony": "0.4.12",
33
- "@teambit/legacy.extension-data": "0.0.138",
34
- "@teambit/legacy.scope": "0.0.136",
33
+ "@teambit/legacy.extension-data": "0.0.139",
34
+ "@teambit/legacy.scope": "0.0.137",
35
35
  "@teambit/component-version": "1.0.4",
36
- "@teambit/legacy.consumer-component": "0.0.137",
37
- "@teambit/legacy.consumer": "0.0.136",
36
+ "@teambit/legacy.consumer-component": "0.0.138",
37
+ "@teambit/legacy.consumer": "0.0.137",
38
38
  "@teambit/bit-error": "0.0.404",
39
39
  "@teambit/lane-id": "0.0.312",
40
- "@teambit/legacy.bit-map": "0.0.193",
40
+ "@teambit/legacy.bit-map": "0.0.194",
41
41
  "@teambit/toolbox.fs.last-modified": "0.0.17",
42
42
  "@teambit/toolbox.path.path": "0.0.19",
43
43
  "@teambit/graph.cleargraph": "0.0.11",
44
- "@teambit/logger": "0.0.1444",
45
- "@teambit/cli": "0.0.1351",
46
- "@teambit/config-store": "0.0.232",
44
+ "@teambit/logger": "0.0.1445",
45
+ "@teambit/cli": "0.0.1352",
46
+ "@teambit/config-store": "0.0.233",
47
47
  "@teambit/legacy.constants": "0.0.34",
48
48
  "@teambit/component.ui.component-status-resolver": "0.0.510",
49
49
  "@teambit/harmony.modules.load-trace": "0.0.6",
50
50
  "@teambit/harmony.modules.resolved-component": "0.0.518",
51
51
  "@teambit/legacy.utils": "0.0.42",
52
- "@teambit/scope.remotes": "0.0.136",
53
- "@teambit/config": "0.0.1526",
52
+ "@teambit/scope.remotes": "0.0.137",
53
+ "@teambit/config": "0.0.1527",
54
54
  "@teambit/harmony.modules.requireable-component": "0.0.518",
55
55
  "@teambit/toolbox.modules.module-resolver": "0.0.22",
56
- "@teambit/workspace.modules.node-modules-linker": "0.0.367",
57
- "@teambit/global-config": "0.0.1355",
58
- "@teambit/legacy.consumer-config": "0.0.136",
59
- "@teambit/variants": "0.0.1619",
56
+ "@teambit/workspace.modules.node-modules-linker": "0.0.368",
57
+ "@teambit/global-config": "0.0.1356",
58
+ "@teambit/legacy.consumer-config": "0.0.137",
59
+ "@teambit/variants": "0.0.1620",
60
60
  "@teambit/component-issues": "0.0.177",
61
- "@teambit/component.sources": "0.0.188",
61
+ "@teambit/component.sources": "0.0.189",
62
62
  "@teambit/dependencies.modules.packages-excluder": "1.0.8",
63
63
  "@teambit/git.modules.git-executable": "0.0.35",
64
64
  "@teambit/harmony.modules.in-memory-cache": "0.0.38",
65
65
  "@teambit/legacy-bit-id": "1.1.3",
66
- "@teambit/legacy.component-list": "0.0.190",
67
- "@teambit/legacy.scope-api": "0.0.191",
66
+ "@teambit/legacy.component-list": "0.0.191",
67
+ "@teambit/legacy.scope-api": "0.0.192",
68
68
  "@teambit/toolbox.path.is-path-inside": "0.0.511",
69
- "@teambit/workspace.modules.match-pattern": "0.0.525",
69
+ "@teambit/workspace.modules.match-pattern": "0.0.526",
70
70
  "@teambit/component.ui.component-drawer": "0.0.493",
71
71
  "@teambit/design.ui.tree": "0.0.16",
72
72
  "@teambit/lanes.hooks.use-lane-components": "0.0.306",
@@ -108,23 +108,23 @@
108
108
  "@teambit/cloud.hooks.use-cloud-scopes": "0.0.25",
109
109
  "@teambit/explorer.ui.gallery.component-grid": "0.0.496",
110
110
  "@teambit/workspace.ui.empty-workspace": "0.0.509",
111
- "@teambit/component": "1.0.1060",
112
- "@teambit/dependency-resolver": "1.0.1060",
113
- "@teambit/envs": "1.0.1060",
114
- "@teambit/objects": "0.0.567",
115
- "@teambit/scope": "1.0.1060",
116
- "@teambit/graph": "1.0.1060",
117
- "@teambit/isolator": "1.0.1060",
118
- "@teambit/component-tree": "1.0.1060",
119
- "@teambit/watcher": "1.0.1060",
120
- "@teambit/aspect-loader": "1.0.1060",
121
- "@teambit/graphql": "1.0.1060",
122
- "@teambit/bundler": "1.0.1060",
123
- "@teambit/ui": "1.0.1060",
124
- "@teambit/command-bar": "1.0.1060",
125
- "@teambit/sidebar": "1.0.1060",
126
- "@teambit/pubsub": "1.0.1060",
127
- "@teambit/deprecation": "1.0.1060"
111
+ "@teambit/component": "1.0.1062",
112
+ "@teambit/dependency-resolver": "1.0.1062",
113
+ "@teambit/envs": "1.0.1062",
114
+ "@teambit/objects": "0.0.569",
115
+ "@teambit/scope": "1.0.1062",
116
+ "@teambit/graph": "1.0.1062",
117
+ "@teambit/isolator": "1.0.1062",
118
+ "@teambit/component-tree": "1.0.1062",
119
+ "@teambit/watcher": "1.0.1062",
120
+ "@teambit/aspect-loader": "1.0.1062",
121
+ "@teambit/graphql": "1.0.1062",
122
+ "@teambit/bundler": "1.0.1062",
123
+ "@teambit/ui": "1.0.1062",
124
+ "@teambit/command-bar": "1.0.1062",
125
+ "@teambit/sidebar": "1.0.1062",
126
+ "@teambit/pubsub": "1.0.1062",
127
+ "@teambit/deprecation": "1.0.1062"
128
128
  },
129
129
  "devDependencies": {
130
130
  "@types/lodash": "4.14.165",
@@ -18,7 +18,7 @@ export class ScopeSetCmd implements Command {
18
18
  options = [];
19
19
  group = 'component-config';
20
20
  extendedDescription = `default scopes for components are set in the bitmap file. the default scope for a workspace is set in the workspace.jsonc.
21
- a component is set with a scope (as oppose to default scope) only once it is versioned.'
21
+ a component is set with a scope (as opposed to default scope) only once it is versioned.
22
22
 
23
23
  ${PATTERN_HELP('scope set scope-name')}`;
24
24
 
@@ -503,7 +503,18 @@ export class WorkspaceComponentLoader {
503
503
  this.componentLoadedSelfAsAspects.set(idStr, true);
504
504
  }
505
505
  const envsData = component.state.aspects.get(EnvsAspect.id);
506
- if (opts.loadEnvs && (envsData?.data?.services || envsData?.data?.self || envsData?.data?.type === 'env')) {
506
+ // a component with an env plugin file (*.bit-env.*) is an env by definition. the env-data
507
+ // type can't be relied on when the env's own env was not loaded yet (e.g. a just-created
508
+ // env whose env-of-env is not installed) - the env-data falls back to the default env.
509
+ // it's the last operand on purpose - the files are scanned only when the env-data gave no
510
+ // answer.
511
+ if (
512
+ opts.loadEnvs &&
513
+ (envsData?.data?.services ||
514
+ envsData?.data?.self ||
515
+ envsData?.data?.type === 'env' ||
516
+ this.envs.hasEnvPluginFile(component))
517
+ ) {
507
518
  aspectIds.push(idStr);
508
519
  this.componentLoadedSelfAsAspects.set(idStr, true);
509
520
  }