@teambit/typescript 1.0.860 → 1.0.862

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.
@@ -37,9 +37,15 @@ useful for catching type issues before tagging, snapping or building components.
37
37
  this.logger.consoleWarning(`--all is deprecated, use --unmodified instead`);
38
38
  }
39
39
  const start = Date.now();
40
- const tsserver = await this.runDiagnosticOnTsServer(false, pattern, unmodified);
40
+ const { tsserver, componentsCount } = await this.runDiagnosticOnTsServer(false, pattern, unmodified);
41
+ if (!tsserver) {
42
+ const data = chalk.bold(`no components found to check.
43
+ use "--unmodified" flag to check all components or specify the ids to check.
44
+ otherwise, only new and modified components will be checked`);
45
+ return { code: 0, data };
46
+ }
41
47
  const end = Date.now() - start;
42
- const msg = `completed type checking (${end / 1000} sec)`;
48
+ const msg = `completed type checking ${componentsCount} component(s) (${end / 1000} sec)`;
43
49
  tsserver.killTsServer();
44
50
  if (tsserver.lastDiagnostics.length) {
45
51
  return {
@@ -61,7 +67,10 @@ useful for catching type issues before tagging, snapping or building components.
61
67
  unmodified = all;
62
68
  this.logger.consoleWarning(`--all is deprecated, use --unmodified instead`);
63
69
  }
64
- const tsserver = await this.runDiagnosticOnTsServer(true, pattern, unmodified);
70
+ const { tsserver } = await this.runDiagnosticOnTsServer(true, pattern, unmodified);
71
+ if (!tsserver) {
72
+ return { code: 0, data: [] };
73
+ }
65
74
  const diagData = tsserver.diagnosticData;
66
75
  tsserver.killTsServer();
67
76
  if (tsserver.lastDiagnostics.length) {
@@ -76,10 +85,17 @@ useful for catching type issues before tagging, snapping or building components.
76
85
  };
77
86
  }
78
87
 
79
- private async runDiagnosticOnTsServer(isJson: boolean, pattern: string, unmodified: boolean) {
88
+ private async runDiagnosticOnTsServer(
89
+ isJson: boolean,
90
+ pattern: string,
91
+ unmodified: boolean
92
+ ): Promise<{ tsserver: ReturnType<TypescriptMain['getTsserverClient']>; componentsCount: number }> {
80
93
  if (!this.workspace) throw new OutsideWorkspaceError();
81
94
  // If pattern is provided, don't pass the unmodified flag - the pattern should take precedence
82
95
  const components = await this.workspace.getComponentsByUserInput(pattern ? false : unmodified, pattern);
96
+ if (!components.length) {
97
+ return { tsserver: undefined, componentsCount: 0 };
98
+ }
83
99
  const files = this.typescript.getSupportedFilesForTsserver(components);
84
100
  await this.typescript.initTsserverClientFromWorkspace(
85
101
  {
@@ -91,6 +107,6 @@ useful for catching type issues before tagging, snapping or building components.
91
107
  const tsserver = this.typescript.getTsserverClient();
92
108
  if (!tsserver) throw new Error(`unable to start tsserver`);
93
109
  await tsserver.getDiagnostic(files);
94
- return tsserver;
110
+ return { tsserver, componentsCount: components.length };
95
111
  }
96
112
  }
@@ -57,9 +57,21 @@ useful for catching type issues before tagging, snapping or building components.
57
57
  this.logger.consoleWarning(`--all is deprecated, use --unmodified instead`);
58
58
  }
59
59
  const start = Date.now();
60
- const tsserver = await this.runDiagnosticOnTsServer(false, pattern, unmodified);
60
+ const {
61
+ tsserver,
62
+ componentsCount
63
+ } = await this.runDiagnosticOnTsServer(false, pattern, unmodified);
64
+ if (!tsserver) {
65
+ const data = _chalk().default.bold(`no components found to check.
66
+ use "--unmodified" flag to check all components or specify the ids to check.
67
+ otherwise, only new and modified components will be checked`);
68
+ return {
69
+ code: 0,
70
+ data
71
+ };
72
+ }
61
73
  const end = Date.now() - start;
62
- const msg = `completed type checking (${end / 1000} sec)`;
74
+ const msg = `completed type checking ${componentsCount} component(s) (${end / 1000} sec)`;
63
75
  tsserver.killTsServer();
64
76
  if (tsserver.lastDiagnostics.length) {
65
77
  return {
@@ -81,7 +93,15 @@ useful for catching type issues before tagging, snapping or building components.
81
93
  unmodified = all;
82
94
  this.logger.consoleWarning(`--all is deprecated, use --unmodified instead`);
83
95
  }
84
- const tsserver = await this.runDiagnosticOnTsServer(true, pattern, unmodified);
96
+ const {
97
+ tsserver
98
+ } = await this.runDiagnosticOnTsServer(true, pattern, unmodified);
99
+ if (!tsserver) {
100
+ return {
101
+ code: 0,
102
+ data: []
103
+ };
104
+ }
85
105
  const diagData = tsserver.diagnosticData;
86
106
  tsserver.killTsServer();
87
107
  if (tsserver.lastDiagnostics.length) {
@@ -99,6 +119,12 @@ useful for catching type issues before tagging, snapping or building components.
99
119
  if (!this.workspace) throw new (_workspace().OutsideWorkspaceError)();
100
120
  // If pattern is provided, don't pass the unmodified flag - the pattern should take precedence
101
121
  const components = await this.workspace.getComponentsByUserInput(pattern ? false : unmodified, pattern);
122
+ if (!components.length) {
123
+ return {
124
+ tsserver: undefined,
125
+ componentsCount: 0
126
+ };
127
+ }
102
128
  const files = this.typescript.getSupportedFilesForTsserver(components);
103
129
  await this.typescript.initTsserverClientFromWorkspace({
104
130
  aggregateDiagnosticData: isJson,
@@ -107,7 +133,10 @@ useful for catching type issues before tagging, snapping or building components.
107
133
  const tsserver = this.typescript.getTsserverClient();
108
134
  if (!tsserver) throw new Error(`unable to start tsserver`);
109
135
  await tsserver.getDiagnostic(files);
110
- return tsserver;
136
+ return {
137
+ tsserver,
138
+ componentsCount: components.length
139
+ };
111
140
  }
112
141
  }
113
142
  exports.CheckTypesCmd = CheckTypesCmd;
@@ -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","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,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E,MAAMkB,QAAQ,GAAGZ,QAAQ,CAACa,cAAc;IACxCb,QAAQ,CAACI,YAAY,CAAC,CAAC;IACvB,IAAIJ,QAAQ,CAACK,eAAe,CAACC,MAAM,EAAE;MACnC,OAAO;QACLC,IAAI,EAAEZ,MAAM,GAAG,CAAC,GAAG,CAAC;QACpBtC,IAAI,EAAEuD;MACR,CAAC;IACH;IACA,OAAO;MACLL,IAAI,EAAE,CAAC;MACPlD,IAAI,EAAEuD;IACR,CAAC;EACH;EAEA,MAAcX,uBAAuBA,CAACa,MAAe,EAAEtB,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
+ {"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","componentsCount","runDiagnosticOnTsServer","chalk","bold","code","end","msg","killTsServer","lastDiagnostics","length","red","green","json","diagData","diagnosticData","isJson","OutsideWorkspaceError","components","getComponentsByUserInput","undefined","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, componentsCount } = await this.runDiagnosticOnTsServer(false, pattern, unmodified);\n if (!tsserver) {\n const data = chalk.bold(`no components found to check.\nuse \"--unmodified\" flag to check all components or specify the ids to check.\notherwise, only new and modified components will be checked`);\n return { code: 0, data };\n }\n const end = Date.now() - start;\n const msg = `completed type checking ${componentsCount} component(s) (${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 if (!tsserver) {\n return { code: 0, data: [] };\n }\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(\n isJson: boolean,\n pattern: string,\n unmodified: boolean\n ): Promise<{ tsserver: ReturnType<TypescriptMain['getTsserverClient']>; componentsCount: number }> {\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 if (!components.length) {\n return { tsserver: undefined, componentsCount: 0 };\n }\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, componentsCount: components.length };\n }\n}\n"],"mappings":";;;;;;AAGA,SAAAA,WAAA;EAAA,MAAAC,IAAA,GAA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;MACR,CAAC;IACH;IACA,OAAO;MACLT,IAAI,EAAE,CAAC;MACPhD,IAAI,EAAEyD;IACR,CAAC;EACH;EAEA,MAAcZ,uBAAuBA,CACnCc,MAAe,EACfxB,OAAe,EACfE,UAAmB,EAC8E;IACjG,IAAI,CAAC,IAAI,CAACR,SAAS,EAAE,MAAM,KAAI+B,kCAAqB,EAAC,CAAC;IACtD;IACA,MAAMC,UAAU,GAAG,MAAM,IAAI,CAAChC,SAAS,CAACiC,wBAAwB,CAAC3B,OAAO,GAAG,KAAK,GAAGE,UAAU,EAAEF,OAAO,CAAC;IACvG,IAAI,CAAC0B,UAAU,CAACR,MAAM,EAAE;MACtB,OAAO;QAAEV,QAAQ,EAAEoB,SAAS;QAAEnB,eAAe,EAAE;MAAE,CAAC;IACpD;IACA,MAAMoB,KAAK,GAAG,IAAI,CAACpC,UAAU,CAACqC,4BAA4B,CAACJ,UAAU,CAAC;IACtE,MAAM,IAAI,CAACjC,UAAU,CAACsC,+BAA+B,CACnD;MACEC,uBAAuB,EAAER,MAAM;MAC/BS,eAAe,EAAE,CAACT;IACpB,CAAC,EACDK,KACF,CAAC;IACD,MAAMrB,QAAQ,GAAG,IAAI,CAACf,UAAU,CAACyC,iBAAiB,CAAC,CAAC;IACpD,IAAI,CAAC1B,QAAQ,EAAE,MAAM,IAAI2B,KAAK,CAAC,0BAA0B,CAAC;IAC1D,MAAM3B,QAAQ,CAAC4B,aAAa,CAACP,KAAK,CAAC;IACnC,OAAO;MAAErB,QAAQ;MAAEC,eAAe,EAAEiB,UAAU,CAACR;IAAO,CAAC;EACzD;AACF;AAACmB,OAAA,CAAA9C,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.860/dist/typescript.composition.js';
2
- import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.typescript_typescript@1.0.860/dist/typescript.docs.mdx';
1
+ import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.typescript_typescript@1.0.862/dist/typescript.composition.js';
2
+ import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.typescript_typescript@1.0.862/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.860",
3
+ "version": "1.0.862",
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.860"
9
+ "version": "1.0.862"
10
10
  },
11
11
  "dependencies": {
12
12
  "lodash": "4.17.21",
@@ -20,25 +20,25 @@
20
20
  "@teambit/legacy.utils": "0.0.32",
21
21
  "@teambit/typescript.modules.ts-config-mutator": "0.0.87",
22
22
  "@teambit/typescript.typescript-compiler": "2.0.63",
23
+ "@teambit/component.sources": "0.0.148",
23
24
  "@teambit/semantics.entities.semantic-schema": "0.0.98",
24
25
  "@teambit/ts-server": "0.0.74",
25
26
  "@teambit/harmony": "0.4.7",
26
- "@teambit/legacy.constants": "0.0.22",
27
- "@teambit/compiler": "1.0.860",
28
- "@teambit/builder": "1.0.860",
29
- "@teambit/component.sources": "0.0.148",
30
- "@teambit/component": "1.0.860",
31
- "@teambit/dependency-resolver": "1.0.860",
32
- "@teambit/formatter": "1.0.860",
33
- "@teambit/aspect-loader": "1.0.860",
34
- "@teambit/envs": "1.0.860",
35
27
  "@teambit/logger": "0.0.1390",
36
- "@teambit/schema": "1.0.860",
37
- "@teambit/scope": "1.0.860",
38
- "@teambit/workspace": "1.0.860",
39
28
  "@teambit/cli": "0.0.1297",
40
- "@teambit/pkg": "1.0.860",
41
- "@teambit/watcher": "1.0.860"
29
+ "@teambit/legacy.constants": "0.0.22",
30
+ "@teambit/compiler": "1.0.862",
31
+ "@teambit/builder": "1.0.862",
32
+ "@teambit/component": "1.0.862",
33
+ "@teambit/dependency-resolver": "1.0.862",
34
+ "@teambit/formatter": "1.0.862",
35
+ "@teambit/aspect-loader": "1.0.862",
36
+ "@teambit/envs": "1.0.862",
37
+ "@teambit/schema": "1.0.862",
38
+ "@teambit/scope": "1.0.862",
39
+ "@teambit/workspace": "1.0.862",
40
+ "@teambit/pkg": "1.0.862",
41
+ "@teambit/watcher": "1.0.862"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@types/lodash": "4.14.165",