@teambit/typescript 1.0.811 → 1.0.812

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.
@@ -10,13 +10,14 @@ export class CheckTypesCmd implements Command {
10
10
  name = 'check-types [component-pattern]';
11
11
  description = 'validate TypeScript type correctness';
12
12
  extendedDescription = `checks for TypeScript type errors in component files, similar to running tsc.
13
- by default only checks new and modified components. use --all to check all components.
13
+ by default only checks new and modified components. use --unmodified to check all components.
14
14
  useful for catching type issues before tagging, snapping or building components.`;
15
15
  arguments = [{ name: 'component-pattern', description: COMPONENT_PATTERN_HELP }];
16
16
  alias = '';
17
17
  group = 'testing';
18
18
  options = [
19
- ['a', 'all', 'check-types for all components, not only modified and new'],
19
+ ['a', 'all', 'DEPRECATED. (use --unmodified)'],
20
+ ['u', 'unmodified', 'check-types for all components, not only modified and new'],
20
21
  ['', 'strict', 'in case issues found, exit with code 1'],
21
22
  ['j', 'json', 'return the output in json format'],
22
23
  ] as CommandOptions;
@@ -27,9 +28,16 @@ useful for catching type issues before tagging, snapping or building components.
27
28
  private logger: Logger
28
29
  ) {}
29
30
 
30
- async report([pattern]: [string], { all = false, strict = false }: { all: boolean; strict: boolean }) {
31
+ async report(
32
+ [pattern]: [string],
33
+ { all = false, unmodified = false, strict = false }: { all: boolean; unmodified: boolean; strict: boolean }
34
+ ) {
35
+ if (all) {
36
+ unmodified = all;
37
+ this.logger.consoleWarning(`--all is deprecated, use --unmodified instead`);
38
+ }
31
39
  const start = Date.now();
32
- const tsserver = await this.runDiagnosticOnTsServer(false, pattern, all);
40
+ const tsserver = await this.runDiagnosticOnTsServer(false, pattern, unmodified);
33
41
  const end = Date.now() - start;
34
42
  const msg = `completed type checking (${end / 1000} sec)`;
35
43
  tsserver.killTsServer();
@@ -45,8 +53,15 @@ useful for catching type issues before tagging, snapping or building components.
45
53
  };
46
54
  }
47
55
 
48
- async json([pattern]: [string], { all = false, strict = false }: { all: boolean; strict: boolean }) {
49
- const tsserver = await this.runDiagnosticOnTsServer(true, pattern, all);
56
+ async json(
57
+ [pattern]: [string],
58
+ { all = false, unmodified = false, strict = false }: { all: boolean; unmodified: boolean; strict: boolean }
59
+ ) {
60
+ if (all) {
61
+ unmodified = all;
62
+ this.logger.consoleWarning(`--all is deprecated, use --unmodified instead`);
63
+ }
64
+ const tsserver = await this.runDiagnosticOnTsServer(true, pattern, unmodified);
50
65
  const diagData = tsserver.diagnosticData;
51
66
  tsserver.killTsServer();
52
67
  if (tsserver.lastDiagnostics.length) {
@@ -61,10 +76,10 @@ useful for catching type issues before tagging, snapping or building components.
61
76
  };
62
77
  }
63
78
 
64
- private async runDiagnosticOnTsServer(isJson: boolean, pattern: string, all: boolean) {
79
+ private async runDiagnosticOnTsServer(isJson: boolean, pattern: string, unmodified: boolean) {
65
80
  if (!this.workspace) throw new OutsideWorkspaceError();
66
- // If pattern is provided, don't pass the all flag - the pattern should take precedence
67
- const components = await this.workspace.getComponentsByUserInput(pattern ? false : all, pattern);
81
+ // If pattern is provided, don't pass the unmodified flag - the pattern should take precedence
82
+ const components = await this.workspace.getComponentsByUserInput(pattern ? false : unmodified, pattern);
68
83
  const files = this.typescript.getSupportedFilesForTsserver(components);
69
84
  await this.typescript.initTsserverClientFromWorkspace(
70
85
  {
@@ -17,15 +17,17 @@ export declare class CheckTypesCmd implements Command {
17
17
  group: string;
18
18
  options: CommandOptions;
19
19
  constructor(typescript: TypescriptMain, workspace: Workspace, logger: Logger);
20
- report([pattern]: [string], { all, strict }: {
20
+ report([pattern]: [string], { all, unmodified, strict }: {
21
21
  all: boolean;
22
+ unmodified: boolean;
22
23
  strict: boolean;
23
24
  }): Promise<{
24
25
  code: number;
25
26
  data: string;
26
27
  }>;
27
- json([pattern]: [string], { all, strict }: {
28
+ json([pattern]: [string], { all, unmodified, strict }: {
28
29
  all: boolean;
30
+ unmodified: boolean;
29
31
  strict: boolean;
30
32
  }): Promise<{
31
33
  code: number;
@@ -37,7 +37,7 @@ class CheckTypesCmd {
37
37
  _defineProperty(this, "name", 'check-types [component-pattern]');
38
38
  _defineProperty(this, "description", 'validate TypeScript type correctness');
39
39
  _defineProperty(this, "extendedDescription", `checks for TypeScript type errors in component files, similar to running tsc.
40
- by default only checks new and modified components. use --all to check all components.
40
+ by default only checks new and modified components. use --unmodified to check all components.
41
41
  useful for catching type issues before tagging, snapping or building components.`);
42
42
  _defineProperty(this, "arguments", [{
43
43
  name: 'component-pattern',
@@ -45,14 +45,19 @@ useful for catching type issues before tagging, snapping or building components.
45
45
  }]);
46
46
  _defineProperty(this, "alias", '');
47
47
  _defineProperty(this, "group", 'testing');
48
- _defineProperty(this, "options", [['a', 'all', 'check-types for all components, not only modified and new'], ['', 'strict', 'in case issues found, exit with code 1'], ['j', 'json', 'return the output in json format']]);
48
+ _defineProperty(this, "options", [['a', 'all', 'DEPRECATED. (use --unmodified)'], ['u', 'unmodified', 'check-types for all components, not only modified and new'], ['', 'strict', 'in case issues found, exit with code 1'], ['j', 'json', 'return the output in json format']]);
49
49
  }
50
50
  async report([pattern], {
51
51
  all = false,
52
+ unmodified = false,
52
53
  strict = false
53
54
  }) {
55
+ if (all) {
56
+ unmodified = all;
57
+ this.logger.consoleWarning(`--all is deprecated, use --unmodified instead`);
58
+ }
54
59
  const start = Date.now();
55
- const tsserver = await this.runDiagnosticOnTsServer(false, pattern, all);
60
+ const tsserver = await this.runDiagnosticOnTsServer(false, pattern, unmodified);
56
61
  const end = Date.now() - start;
57
62
  const msg = `completed type checking (${end / 1000} sec)`;
58
63
  tsserver.killTsServer();
@@ -69,9 +74,14 @@ useful for catching type issues before tagging, snapping or building components.
69
74
  }
70
75
  async json([pattern], {
71
76
  all = false,
77
+ unmodified = false,
72
78
  strict = false
73
79
  }) {
74
- const tsserver = await this.runDiagnosticOnTsServer(true, pattern, all);
80
+ if (all) {
81
+ unmodified = all;
82
+ this.logger.consoleWarning(`--all is deprecated, use --unmodified instead`);
83
+ }
84
+ const tsserver = await this.runDiagnosticOnTsServer(true, pattern, unmodified);
75
85
  const diagData = tsserver.diagnosticData;
76
86
  tsserver.killTsServer();
77
87
  if (tsserver.lastDiagnostics.length) {
@@ -85,10 +95,10 @@ useful for catching type issues before tagging, snapping or building components.
85
95
  data: diagData
86
96
  };
87
97
  }
88
- async runDiagnosticOnTsServer(isJson, pattern, all) {
98
+ async runDiagnosticOnTsServer(isJson, pattern, unmodified) {
89
99
  if (!this.workspace) throw new (_workspace().OutsideWorkspaceError)();
90
- // If pattern is provided, don't pass the all flag - the pattern should take precedence
91
- const components = await this.workspace.getComponentsByUserInput(pattern ? false : all, pattern);
100
+ // If pattern is provided, don't pass the unmodified flag - the pattern should take precedence
101
+ const components = await this.workspace.getComponentsByUserInput(pattern ? false : unmodified, pattern);
92
102
  const files = this.typescript.getSupportedFilesForTsserver(components);
93
103
  await this.typescript.initTsserverClientFromWorkspace({
94
104
  aggregateDiagnosticData: isJson,
@@ -1 +1 @@
1
- {"version":3,"names":["_workspace","data","require","_chalk","_interopRequireDefault","_legacy","e","__esModule","default","_defineProperty","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","CheckTypesCmd","constructor","typescript","workspace","logger","name","description","COMPONENT_PATTERN_HELP","report","pattern","all","strict","start","Date","now","tsserver","runDiagnosticOnTsServer","end","msg","killTsServer","lastDiagnostics","length","code","chalk","red","green","json","diagData","diagnosticData","isJson","OutsideWorkspaceError","components","getComponentsByUserInput","files","getSupportedFilesForTsserver","initTsserverClientFromWorkspace","aggregateDiagnosticData","printTypeErrors","getTsserverClient","Error","getDiagnostic","exports"],"sources":["check-types.cmd.ts"],"sourcesContent":["import type { Command, CommandOptions } from '@teambit/cli';\nimport type { Logger } from '@teambit/logger';\nimport type { Workspace } from '@teambit/workspace';\nimport { OutsideWorkspaceError } from '@teambit/workspace';\nimport chalk from 'chalk';\nimport { COMPONENT_PATTERN_HELP } from '@teambit/legacy.constants';\nimport type { TypescriptMain } from '../typescript.main.runtime';\n\nexport class CheckTypesCmd implements Command {\n name = 'check-types [component-pattern]';\n description = 'validate TypeScript type correctness';\n extendedDescription = `checks for TypeScript type errors in component files, similar to running tsc.\nby default only checks new and modified components. use --all to check all components.\nuseful for catching type issues before tagging, snapping or building components.`;\n arguments = [{ name: 'component-pattern', description: COMPONENT_PATTERN_HELP }];\n alias = '';\n group = 'testing';\n options = [\n ['a', 'all', 'check-types for all components, not only modified and new'],\n ['', 'strict', 'in case issues found, exit with code 1'],\n ['j', 'json', 'return the output in json format'],\n ] as CommandOptions;\n\n constructor(\n private typescript: TypescriptMain,\n private workspace: Workspace,\n private logger: Logger\n ) {}\n\n async report([pattern]: [string], { all = false, strict = false }: { all: boolean; strict: boolean }) {\n const start = Date.now();\n const tsserver = await this.runDiagnosticOnTsServer(false, pattern, all);\n const end = Date.now() - start;\n const msg = `completed type checking (${end / 1000} sec)`;\n tsserver.killTsServer();\n if (tsserver.lastDiagnostics.length) {\n return {\n code: strict ? 1 : 0,\n data: chalk.red(`${msg}. found errors in ${tsserver.lastDiagnostics.length} files.`),\n };\n }\n return {\n code: 0,\n data: chalk.green(`${msg}. no errors were found.`),\n };\n }\n\n async json([pattern]: [string], { all = false, strict = false }: { all: boolean; strict: boolean }) {\n const tsserver = await this.runDiagnosticOnTsServer(true, pattern, all);\n const diagData = tsserver.diagnosticData;\n tsserver.killTsServer();\n if (tsserver.lastDiagnostics.length) {\n return {\n code: strict ? 1 : 0,\n data: diagData,\n };\n }\n return {\n code: 0,\n data: diagData,\n };\n }\n\n private async runDiagnosticOnTsServer(isJson: boolean, pattern: string, all: boolean) {\n if (!this.workspace) throw new OutsideWorkspaceError();\n // If pattern is provided, don't pass the all flag - the pattern should take precedence\n const components = await this.workspace.getComponentsByUserInput(pattern ? false : all, pattern);\n const files = this.typescript.getSupportedFilesForTsserver(components);\n await this.typescript.initTsserverClientFromWorkspace(\n {\n aggregateDiagnosticData: isJson,\n printTypeErrors: !isJson,\n },\n files\n );\n const t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AAuB,EAAEP,MAAM;MAC/BQ,eAAe,EAAE,CAACR;IACpB,CAAC,EACDI,KACF,CAAC;IACD,MAAMlB,QAAQ,GAAG,IAAI,CAACb,UAAU,CAACoC,iBAAiB,CAAC,CAAC;IACpD,IAAI,CAACvB,QAAQ,EAAE,MAAM,IAAIwB,KAAK,CAAC,0BAA0B,CAAC;IAC1D,MAAMxB,QAAQ,CAACyB,aAAa,CAACP,KAAK,CAAC;IACnC,OAAOlB,QAAQ;EACjB;AACF;AAAC0B,OAAA,CAAAzC,aAAA,GAAAA,aAAA","ignoreList":[]}
1
+ {"version":3,"names":["_workspace","data","require","_chalk","_interopRequireDefault","_legacy","e","__esModule","default","_defineProperty","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","CheckTypesCmd","constructor","typescript","workspace","logger","name","description","COMPONENT_PATTERN_HELP","report","pattern","all","unmodified","strict","consoleWarning","start","Date","now","tsserver","runDiagnosticOnTsServer","end","msg","killTsServer","lastDiagnostics","length","code","chalk","red","green","json","diagData","diagnosticData","isJson","OutsideWorkspaceError","components","getComponentsByUserInput","files","getSupportedFilesForTsserver","initTsserverClientFromWorkspace","aggregateDiagnosticData","printTypeErrors","getTsserverClient","Error","getDiagnostic","exports"],"sources":["check-types.cmd.ts"],"sourcesContent":["import type { Command, CommandOptions } from '@teambit/cli';\nimport type { Logger } from '@teambit/logger';\nimport type { Workspace } from '@teambit/workspace';\nimport { OutsideWorkspaceError } from '@teambit/workspace';\nimport chalk from 'chalk';\nimport { COMPONENT_PATTERN_HELP } from '@teambit/legacy.constants';\nimport type { TypescriptMain } from '../typescript.main.runtime';\n\nexport class CheckTypesCmd implements Command {\n name = 'check-types [component-pattern]';\n description = 'validate TypeScript type correctness';\n extendedDescription = `checks for TypeScript type errors in component files, similar to running tsc.\nby default only checks new and modified components. use --unmodified to check all components.\nuseful for catching type issues before tagging, snapping or building components.`;\n arguments = [{ name: 'component-pattern', description: COMPONENT_PATTERN_HELP }];\n alias = '';\n group = 'testing';\n options = [\n ['a', 'all', 'DEPRECATED. (use --unmodified)'],\n ['u', 'unmodified', 'check-types for all components, not only modified and new'],\n ['', 'strict', 'in case issues found, exit with code 1'],\n ['j', 'json', 'return the output in json format'],\n ] as CommandOptions;\n\n constructor(\n private typescript: TypescriptMain,\n private workspace: Workspace,\n private logger: Logger\n ) {}\n\n async report(\n [pattern]: [string],\n { all = false, unmodified = false, strict = false }: { all: boolean; unmodified: boolean; strict: boolean }\n ) {\n if (all) {\n unmodified = all;\n this.logger.consoleWarning(`--all is deprecated, use --unmodified instead`);\n }\n const start = Date.now();\n const tsserver = await this.runDiagnosticOnTsServer(false, pattern, unmodified);\n const end = Date.now() - start;\n const msg = `completed type checking (${end / 1000} sec)`;\n tsserver.killTsServer();\n if (tsserver.lastDiagnostics.length) {\n return {\n code: strict ? 1 : 0,\n data: chalk.red(`${msg}. found errors in ${tsserver.lastDiagnostics.length} files.`),\n };\n }\n return {\n code: 0,\n data: chalk.green(`${msg}. no errors were found.`),\n };\n }\n\n async json(\n [pattern]: [string],\n { all = false, unmodified = false, strict = false }: { all: boolean; unmodified: boolean; strict: boolean }\n ) {\n if (all) {\n unmodified = all;\n this.logger.consoleWarning(`--all is deprecated, use --unmodified instead`);\n }\n const tsserver = await this.runDiagnosticOnTsServer(true, pattern, unmodified);\n const diagData = tsserver.diagnosticData;\n tsserver.killTsServer();\n if (tsserver.lastDiagnostics.length) {\n return {\n code: strict ? 1 : 0,\n data: diagData,\n };\n }\n return {\n code: 0,\n data: diagData,\n };\n }\n\n private async runDiagnosticOnTsServer(isJson: boolean, pattern: string, unmodified: boolean) {\n if (!this.workspace) throw new OutsideWorkspaceError();\n // If pattern is provided, don't pass the unmodified flag - the pattern should take precedence\n const components = await this.workspace.getComponentsByUserInput(pattern ? false : unmodified, pattern);\n const files = this.typescript.getSupportedFilesForTsserver(components);\n await this.typescript.initTsserverClientFromWorkspace(\n {\n aggregateDiagnosticData: isJson,\n printTypeErrors: !isJson,\n },\n files\n );\n const tsserver = this.typescript.getTsserverClient();\n if (!tsserver) throw new Error(`unable to start tsserver`);\n await tsserver.getDiagnostic(files);\n return tsserver;\n }\n}\n"],"mappings":";;;;;;AAGA,SAAAA,WAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,UAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,OAAA;EAAA,MAAAF,IAAA,GAAAG,sBAAA,CAAAF,OAAA;EAAAC,MAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAI,QAAA;EAAA,MAAAJ,IAAA,GAAAC,OAAA;EAAAG,OAAA,YAAAA,CAAA;IAAA,OAAAJ,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAAmE,SAAAG,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,gBAAAH,CAAA,EAAAI,CAAA,EAAAC,CAAA,YAAAD,CAAA,GAAAE,cAAA,CAAAF,CAAA,MAAAJ,CAAA,GAAAO,MAAA,CAAAC,cAAA,CAAAR,CAAA,EAAAI,CAAA,IAAAK,KAAA,EAAAJ,CAAA,EAAAK,UAAA,MAAAC,YAAA,MAAAC,QAAA,UAAAZ,CAAA,CAAAI,CAAA,IAAAC,CAAA,EAAAL,CAAA;AAAA,SAAAM,eAAAD,CAAA,QAAAQ,CAAA,GAAAC,YAAA,CAAAT,CAAA,uCAAAQ,CAAA,GAAAA,CAAA,GAAAA,CAAA;AAAA,SAAAC,aAAAT,CAAA,EAAAD,CAAA,2BAAAC,CAAA,KAAAA,CAAA,SAAAA,CAAA,MAAAL,CAAA,GAAAK,CAAA,CAAAU,MAAA,CAAAC,WAAA,kBAAAhB,CAAA,QAAAa,CAAA,GAAAb,CAAA,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OAAe,EAAEE,UAAmB,EAAE;IAC3F,IAAI,CAAC,IAAI,CAACR,SAAS,EAAE,MAAM,KAAI6B,kCAAqB,EAAC,CAAC;IACtD;IACA,MAAMC,UAAU,GAAG,MAAM,IAAI,CAAC9B,SAAS,CAAC+B,wBAAwB,CAACzB,OAAO,GAAG,KAAK,GAAGE,UAAU,EAAEF,OAAO,CAAC;IACvG,MAAM0B,KAAK,GAAG,IAAI,CAACjC,UAAU,CAACkC,4BAA4B,CAACH,UAAU,CAAC;IACtE,MAAM,IAAI,CAAC/B,UAAU,CAACmC,+BAA+B,CACnD;MACEC,uBAAuB,EAAEP,MAAM;MAC/BQ,eAAe,EAAE,CAACR;IACpB,CAAC,EACDI,KACF,CAAC;IACD,MAAMlB,QAAQ,GAAG,IAAI,CAACf,UAAU,CAACsC,iBAAiB,CAAC,CAAC;IACpD,IAAI,CAACvB,QAAQ,EAAE,MAAM,IAAIwB,KAAK,CAAC,0BAA0B,CAAC;IAC1D,MAAMxB,QAAQ,CAACyB,aAAa,CAACP,KAAK,CAAC;IACnC,OAAOlB,QAAQ;EACjB;AACF;AAAC0B,OAAA,CAAA3C,aAAA,GAAAA,aAAA","ignoreList":[]}
@@ -1,5 +1,5 @@
1
- import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.typescript_typescript@1.0.811/dist/typescript.composition.js';
2
- import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.typescript_typescript@1.0.811/dist/typescript.docs.mdx';
1
+ import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.typescript_typescript@1.0.812/dist/typescript.composition.js';
2
+ import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.typescript_typescript@1.0.812/dist/typescript.docs.mdx';
3
3
 
4
4
  export const compositions = [compositions_0];
5
5
  export const overview = [overview_0];
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/typescript",
3
- "version": "1.0.811",
3
+ "version": "1.0.812",
4
4
  "homepage": "https://bit.cloud/teambit/typescript/typescript",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.typescript",
8
8
  "name": "typescript",
9
- "version": "1.0.811"
9
+ "version": "1.0.812"
10
10
  },
11
11
  "dependencies": {
12
12
  "lodash": "4.17.21",
@@ -24,29 +24,29 @@
24
24
  "@teambit/semantics.entities.semantic-schema": "0.0.95",
25
25
  "@teambit/ts-server": "0.0.71",
26
26
  "@teambit/harmony": "0.4.7",
27
- "@teambit/legacy.constants": "0.0.19",
28
- "@teambit/compiler": "1.0.811",
29
- "@teambit/builder": "1.0.811",
30
- "@teambit/component": "1.0.811",
31
- "@teambit/dependency-resolver": "1.0.811",
32
- "@teambit/formatter": "1.0.811",
33
- "@teambit/aspect-loader": "1.0.811",
34
- "@teambit/envs": "1.0.811",
35
27
  "@teambit/logger": "0.0.1379",
36
- "@teambit/schema": "1.0.811",
37
- "@teambit/scope": "1.0.811",
38
- "@teambit/workspace": "1.0.811",
39
28
  "@teambit/cli": "0.0.1286",
40
- "@teambit/pkg": "1.0.811",
41
- "@teambit/watcher": "1.0.811"
29
+ "@teambit/legacy.constants": "0.0.19",
30
+ "@teambit/compiler": "1.0.812",
31
+ "@teambit/builder": "1.0.812",
32
+ "@teambit/component": "1.0.812",
33
+ "@teambit/dependency-resolver": "1.0.812",
34
+ "@teambit/formatter": "1.0.812",
35
+ "@teambit/aspect-loader": "1.0.812",
36
+ "@teambit/envs": "1.0.812",
37
+ "@teambit/schema": "1.0.812",
38
+ "@teambit/scope": "1.0.812",
39
+ "@teambit/workspace": "1.0.812",
40
+ "@teambit/pkg": "1.0.812",
41
+ "@teambit/watcher": "1.0.812"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@types/lodash": "4.14.165",
45
45
  "@types/minimatch": "3.0.4",
46
46
  "@types/fs-extra": "9.0.7",
47
47
  "@types/mocha": "9.1.0",
48
- "@teambit/harmony.envs.core-aspect-env": "0.0.79",
49
- "@teambit/typescript.aspect-docs.typescript": "0.0.173"
48
+ "@teambit/typescript.aspect-docs.typescript": "0.0.173",
49
+ "@teambit/harmony.envs.core-aspect-env": "0.0.79"
50
50
  },
51
51
  "peerDependencies": {
52
52
  "react": "^17.0.0 || ^18.0.0",