@teambit/variants 0.0.472 → 0.0.473

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.
@@ -19,7 +19,14 @@ export declare class VariantsMain {
19
19
  constructor(patterns: Patterns);
20
20
  private validateConfig;
21
21
  raw(): Patterns;
22
+ /**
23
+ * Get all the patterns defined in the variants section of the workspace as the legacy ConsumerOverrides format
24
+ */
22
25
  legacy(): ConsumerOverrides;
26
+ /**
27
+ * Gets the config for specific component after merge all matching patterns of the component dir and id in the variants section
28
+ * @param rootDir
29
+ */
23
30
  byRootDirAndName(rootDir: PathLinuxRelative, componentName: string): VariantsComponentConfig | undefined;
24
31
  static provider(_deps: any, config: any): Promise<VariantsMain>;
25
32
  }
package/package.json CHANGED
@@ -1,21 +1,21 @@
1
1
  {
2
2
  "name": "@teambit/variants",
3
- "version": "0.0.472",
3
+ "version": "0.0.473",
4
4
  "homepage": "https://bit.dev/teambit/workspace/variants",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.workspace",
8
8
  "name": "variants",
9
- "version": "0.0.472"
9
+ "version": "0.0.473"
10
10
  },
11
11
  "dependencies": {
12
12
  "@teambit/harmony": "0.2.11",
13
13
  "lodash": "4.17.21",
14
14
  "@babel/runtime": "7.12.18",
15
15
  "core-js": "^3.0.0",
16
- "@teambit/cli": "0.0.385",
17
- "@teambit/legacy-bit-id": "0.0.374",
18
- "@teambit/workspace.modules.match-pattern": "0.0.464"
16
+ "@teambit/cli": "0.0.386",
17
+ "@teambit/legacy-bit-id": "0.0.375",
18
+ "@teambit/workspace.modules.match-pattern": "0.0.465"
19
19
  },
20
20
  "devDependencies": {
21
21
  "@types/lodash": "4.14.165",
@@ -25,10 +25,10 @@
25
25
  "@types/react-dom": "^17.0.5",
26
26
  "@types/react": "^17.0.8",
27
27
  "@types/node": "12.20.4",
28
- "@teambit/workspace.aspect-docs.variants": "0.0.104"
28
+ "@teambit/workspace.aspect-docs.variants": "0.0.105"
29
29
  },
30
30
  "peerDependencies": {
31
- "@teambit/legacy": "1.0.171",
31
+ "@teambit/legacy": "1.0.172",
32
32
  "react-dom": "^16.8.0 || ^17.0.0",
33
33
  "react": "^16.8.0 || ^17.0.0"
34
34
  },
@@ -56,7 +56,7 @@
56
56
  "react": "-"
57
57
  },
58
58
  "peerDependencies": {
59
- "@teambit/legacy": "1.0.171",
59
+ "@teambit/legacy": "1.0.172",
60
60
  "react-dom": "^16.8.0 || ^17.0.0",
61
61
  "react": "^16.8.0 || ^17.0.0"
62
62
  }
package/tsconfig.json CHANGED
@@ -25,7 +25,6 @@
25
25
  "strict": true,
26
26
  "noImplicitAny": false,
27
27
  "rootDir": ".",
28
- "removeComments": true,
29
28
  "preserveConstEnums": true,
30
29
  "resolveJsonModule": true
31
30
  },