@teambit/config 0.0.1475 → 0.0.1477

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/dist/schema.json CHANGED
@@ -1,156 +1,156 @@
1
1
  {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "title": "Configuration file of the Bit workspace.",
4
- "description": "This is the main configuration file of your bit workspace. for full documentation, please see: https://bit.dev/docs/configuration",
5
- "type": "object",
6
- "properties": {
7
- "teambit.workspace/workspace": {
8
- "description": "Main configuration of the Bit workspace.",
9
- "type": "object",
10
- "properties": {
11
- "name": {
12
- "description": "the name of the component workspace. used for development purposes.",
13
- "type": "string"
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "title": "Configuration file of the Bit workspace.",
4
+ "description": "This is the main configuration file of your bit workspace. for full documentation, please see: https://bit.dev/docs/configuration",
5
+ "type": "object",
6
+ "properties": {
7
+ "teambit.workspace/workspace": {
8
+ "description": "Main configuration of the Bit workspace.",
9
+ "type": "object",
10
+ "properties": {
11
+ "name": {
12
+ "description": "the name of the component workspace. used for development purposes.",
13
+ "type": "string"
14
+ },
15
+ "icon": {
16
+ "description": "set the icon url to be shown on the Bit server.",
17
+ "type": "string"
18
+ },
19
+ "defaultOwner": {
20
+ "description": "applies only on bit.dev. configure the main owner of your workspace.",
21
+ "type": "string"
22
+ },
23
+ "defaultScope": {
24
+ "description": "set the default scope when there is no matching for the component in the components array.",
25
+ "type": "string"
26
+ },
27
+ "defaultDirectory": {
28
+ "description": "set the default directory when there is no matching for the component in the components array.",
29
+ "type": "string"
30
+ },
31
+ "vendorDirectory": {
32
+ "description": "",
33
+ "type": "string"
34
+ }
35
+ },
36
+ "required": ["defaultScope"]
37
+ },
38
+ "teambit.dependencies/dependency-resolver": {
39
+ "description": "Main configuration for component dependency resolution.",
40
+ "type": "object",
41
+ "properties": {
42
+ "packageManager": {
43
+ "description": "main configuration for bit's component dependency resolution.",
44
+ "type": "string",
45
+ "examples": ["teambit.dependencies/pnpm"]
46
+ },
47
+ "strictPeerDependencies": {
48
+ "description": "If true, then Bit will add the '--strict-peer-dependencies' option when invoking package managers. This causes 'bit install' to fail if there are unsatisfied peer dependencies, which is an invalid state that can cause build failures or incompatible dependency versions. (For historical reasons, JavaScript package managers generally do not treat this invalid state as an error.) The default value is false to avoid legacy compatibility issues. It is strongly recommended to set strictPeerDependencies=true.",
49
+ "type": "boolean",
50
+ "default": false
51
+ },
52
+ "extraArgs": {
53
+ "description": "map of extra arguments to pass to the configured package manager upon the installation of dependencies.",
54
+ "type": "array"
55
+ },
56
+ "policy": {
57
+ "description": "Dependency type is defined by the file that import it. For example, library will be devDependency when the file that imports it is a test file.",
58
+ "type": "object",
59
+ "properties": {
60
+ "dependencies": {
61
+ "type": "object"
62
+ },
63
+ "devDependencies": {
64
+ "type": "object"
65
+ },
66
+ "peerDependencies": {
67
+ "type": "object"
68
+ }
69
+ }
70
+ }
71
+ },
72
+ "required": ["packageManager"]
73
+ },
74
+ "teambit.react/react": {
75
+ "description": "apply the react environment on components.",
76
+ "type": "object",
77
+ "properties": {
78
+ "reactVersion": {
79
+ "description": "sets react version.",
80
+ "type": "string",
81
+ "default": ">=16.0.0",
82
+ "examples": [">=16.0.0", ">=15.0.0"]
83
+ }
84
+ }
85
+ },
86
+ "teambit.workspace/variants": {
87
+ "description": "Workspace variants allow to set different subsets of configuration for components in your workspace. This is extremely useful for upgrading, aligning and building components with a new set of dependencies.",
88
+ "type": "object",
89
+ "properties": {
90
+ "*": {
91
+ "description": "Any directory of components",
92
+ "type": "object",
93
+ "properties": {
94
+ "propagate": {
95
+ "description": "",
96
+ "type": "boolean"
97
+ },
98
+ "teambit.react/react": {
99
+ "description": "apply the react environment on components.",
100
+ "type": "object",
101
+ "properties": {
102
+ "typescript": {
103
+ "description": "turn on typescript compiler.",
104
+ "type": "boolean"
14
105
  },
15
- "icon": {
16
- "description": "set the icon url to be shown on the Bit server.",
17
- "type": "string"
106
+ "root": {
107
+ "description": "root component is the one to be deployed and served.",
108
+ "type": "string"
18
109
  },
19
- "defaultOwner": {
20
- "description": "applies only on bit.dev. configure the main owner of your workspace.",
21
- "type": "string"
110
+ "version": {
111
+ "description": "sets react version. This will add react and @types/react (in case typescript is turned on) as peer dependencies with this SemVer.",
112
+ "type": "string",
113
+ "default": ">=16.0.0",
114
+ "examples": [">=16.0.0", ">=15.0.0"]
22
115
  },
23
116
  "defaultScope": {
24
- "description": "set the default scope when there is no matching for the component in the components array.",
25
- "type": "string"
26
- },
27
- "defaultDirectory": {
28
- "description": "set the default directory when there is no matching for the component in the components array.",
29
- "type": "string"
30
- },
31
- "vendorDirectory": {
32
- "description": "",
33
- "type": "string"
117
+ "description": "set the collection of these components",
118
+ "type": "string"
34
119
  }
120
+ }
35
121
  },
36
- "required": ["defaultScope"]
37
- },
38
- "teambit.dependencies/dependency-resolver": {
39
- "description": "Main configuration for component dependency resolution.",
40
- "type": "object",
41
- "properties": {
42
- "packageManager": {
43
- "description": "main configuration for bit's component dependency resolution.",
44
- "type": "string",
45
- "examples": ["teambit.dependencies/pnpm"]
46
- },
47
- "strictPeerDependencies": {
48
- "description": "If true, then Bit will add the '--strict-peer-dependencies' option when invoking package managers. This causes 'bit install' to fail if there are unsatisfied peer dependencies, which is an invalid state that can cause build failures or incompatible dependency versions. (For historical reasons, JavaScript package managers generally do not treat this invalid state as an error.) The default value is false to avoid legacy compatibility issues. It is strongly recommended to set strictPeerDependencies=true.",
49
- "type": "boolean",
50
- "default": false
51
- },
52
- "extraArgs": {
53
- "description": "map of extra arguments to pass to the configured package manager upon the installation of dependencies.",
54
- "type": "array"
55
- },
56
- "policy": {
57
- "description": "Dependency type is defined by the file that import it. For example, library will be devDependency when the file that imports it is a test file.",
58
- "type": "object",
59
- "properties": {
60
- "dependencies": {
61
- "type": "object"
62
- },
63
- "devDependencies": {
64
- "type": "object"
65
- },
66
- "peerDependencies": {
67
- "type": "object"
68
- }
69
- }
122
+ "teambit.harmony/node": {
123
+ "description": "apply the node environment on components.",
124
+ "type": "object",
125
+ "properties": {
126
+ "defaultScope": {
127
+ "description": "set the collection of these components",
128
+ "type": "string"
70
129
  }
130
+ }
71
131
  },
72
- "required": ["packageManager"]
73
- },
74
- "teambit.react/react": {
75
- "description": "apply the react environment on components.",
76
- "type": "object",
77
- "properties": {
78
- "reactVersion": {
79
- "description": "sets react version.",
80
- "type": "string",
81
- "default": ">=16.0.0",
82
- "examples": [">=16.0.0", ">=15.0.0"]
83
- }
84
- }
85
- },
86
- "teambit.workspace/variants": {
87
- "description": "Workspace variants allow to set different subsets of configuration for components in your workspace. This is extremely useful for upgrading, aligning and building components with a new set of dependencies.",
88
- "type": "object",
89
- "properties": {
90
- "*": {
91
- "description": "Any directory of components",
92
- "type": "object",
93
- "properties": {
94
- "propagate": {
95
- "description": "",
96
- "type": "boolean"
97
- },
98
- "teambit.react/react": {
99
- "description": "apply the react environment on components.",
100
- "type": "object",
101
- "properties": {
102
- "typescript": {
103
- "description": "turn on typescript compiler.",
104
- "type": "boolean"
105
- },
106
- "root": {
107
- "description": "root component is the one to be deployed and served.",
108
- "type": "string"
109
- },
110
- "version": {
111
- "description": "sets react version. This will add react and @types/react (in case typescript is turned on) as peer dependencies with this SemVer.",
112
- "type": "string",
113
- "default": ">=16.0.0",
114
- "examples": [">=16.0.0", ">=15.0.0"]
115
- },
116
- "defaultScope": {
117
- "description": "set the collection of these components",
118
- "type": "string"
119
- }
120
- }
121
- },
122
- "teambit.harmony/node": {
123
- "description": "apply the node environment on components.",
124
- "type": "object",
125
- "properties": {
126
- "defaultScope": {
127
- "description": "set the collection of these components",
128
- "type": "string"
129
- }
130
- }
131
- },
132
- "teambit.pkg/pkg": {
133
- "description": "",
134
- "type": "object",
135
- "properties": {
136
- "packageJson": {
137
- "description": "",
138
- "type": "object",
139
- "properties": {
140
- "name": {
141
- "description": "",
142
- "type": "string"
143
- }
144
- }
145
- }
146
- }
147
- }
132
+ "teambit.pkg/pkg": {
133
+ "description": "",
134
+ "type": "object",
135
+ "properties": {
136
+ "packageJson": {
137
+ "description": "",
138
+ "type": "object",
139
+ "properties": {
140
+ "name": {
141
+ "description": "",
142
+ "type": "string"
148
143
  }
144
+ }
149
145
  }
150
- },
151
- "additionalProperties": true,
152
- "required": []
146
+ }
147
+ }
148
+ }
153
149
  }
154
- },
155
- "required": ["teambit.workspace/workspace", "teambit.dependencies/dependency-resolver"]
150
+ },
151
+ "additionalProperties": true,
152
+ "required": []
153
+ }
154
+ },
155
+ "required": ["teambit.workspace/workspace", "teambit.dependencies/dependency-resolver"]
156
156
  }
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/config",
3
- "version": "0.0.1475",
3
+ "version": "0.0.1477",
4
4
  "homepage": "https://bit.cloud/teambit/harmony/config",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.harmony",
8
8
  "name": "config",
9
- "version": "0.0.1475"
9
+ "version": "0.0.1477"
10
10
  },
11
11
  "dependencies": {
12
12
  "comment-json": "4.2.5",
@@ -14,19 +14,19 @@
14
14
  "lodash": "4.17.21",
15
15
  "chalk": "4.1.2",
16
16
  "@teambit/harmony": "0.4.7",
17
- "@teambit/legacy.utils": "0.0.33",
18
- "@teambit/scope.modules.find-scope-path": "0.0.24",
19
- "@teambit/workspace.modules.workspace-locator": "0.0.24",
20
- "@teambit/toolbox.path.path": "0.0.15",
21
17
  "@teambit/component-id": "1.2.4",
22
- "@teambit/legacy.constants": "0.0.23",
23
- "@teambit/legacy.logger": "0.0.34",
24
18
  "@teambit/bit-error": "0.0.404",
25
- "@teambit/cli": "0.0.1300",
26
- "@teambit/legacy.consumer-config": "0.0.98",
27
- "@teambit/legacy.extension-data": "0.0.100",
28
- "@teambit/component.sources": "0.0.150",
29
- "@teambit/legacy.consumer": "0.0.98"
19
+ "@teambit/cli": "0.0.1302",
20
+ "@teambit/legacy.consumer-config": "0.0.100",
21
+ "@teambit/legacy.extension-data": "0.0.102",
22
+ "@teambit/legacy.utils": "0.0.34",
23
+ "@teambit/scope.modules.find-scope-path": "0.0.25",
24
+ "@teambit/workspace.modules.workspace-locator": "0.0.25",
25
+ "@teambit/toolbox.path.path": "0.0.16",
26
+ "@teambit/component.sources": "0.0.152",
27
+ "@teambit/legacy.constants": "0.0.24",
28
+ "@teambit/legacy.consumer": "0.0.100",
29
+ "@teambit/legacy.logger": "0.0.35"
30
30
  },
31
31
  "devDependencies": {
32
32
  "@types/fs-extra": "9.0.7",