@teambit/install 0.0.27 → 0.0.29

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.
Files changed (42) hide show
  1. package/dist/exceptions/dependency-type-not-supported-in-policy.js +0 -6
  2. package/dist/exceptions/dependency-type-not-supported-in-policy.js.map +1 -1
  3. package/dist/exceptions/index.js +0 -3
  4. package/dist/exceptions/index.js.map +1 -1
  5. package/dist/index.js +0 -5
  6. package/dist/index.js.map +1 -1
  7. package/dist/install.aspect.js +0 -5
  8. package/dist/install.aspect.js.map +1 -1
  9. package/dist/install.cmd.js +0 -17
  10. package/dist/install.cmd.js.map +1 -1
  11. package/dist/install.main.runtime.js +11 -142
  12. package/dist/install.main.runtime.js.map +1 -1
  13. package/dist/link/component-list-links.js +0 -18
  14. package/dist/link/component-list-links.js.map +1 -1
  15. package/dist/link/core-aspects-links.js +0 -18
  16. package/dist/link/core-aspects-links.js.map +1 -1
  17. package/dist/link/get-package-name-from-target.js +0 -2
  18. package/dist/link/get-package-name-from-target.js.map +1 -1
  19. package/dist/link/index.js +0 -3
  20. package/dist/link/index.js.map +1 -1
  21. package/dist/link/link-row.js +0 -6
  22. package/dist/link/link-row.js.map +1 -1
  23. package/dist/link/link-to-dir.js +0 -10
  24. package/dist/link/link-to-dir.js.map +1 -1
  25. package/dist/link/link.cmd.js +2 -36
  26. package/dist/link/link.cmd.js.map +1 -1
  27. package/dist/link/nested-deps-in-nm-links.js +0 -15
  28. package/dist/link/nested-deps-in-nm-links.js.map +1 -1
  29. package/dist/link/rewire-row.js +0 -5
  30. package/dist/link/rewire-row.js.map +1 -1
  31. package/dist/pick-outdated-pkgs.js +3 -64
  32. package/dist/pick-outdated-pkgs.js.map +1 -1
  33. package/dist/pick-outdated-pkgs.spec.js +10 -13
  34. package/dist/pick-outdated-pkgs.spec.js.map +1 -1
  35. package/dist/uninstall.cmd.js +0 -10
  36. package/dist/uninstall.cmd.js.map +1 -1
  37. package/dist/update.cmd.js +0 -9
  38. package/dist/update.cmd.js.map +1 -1
  39. package/package-tar/teambit-install-0.0.29.tgz +0 -0
  40. package/package.json +4 -4
  41. /package/{preview-1666312873430.js → preview-1666496165706.js} +0 -0
  42. package/package-tar/teambit-install-0.0.27.tgz +0 -0
@@ -2,14 +2,11 @@
2
2
 
3
3
  function _pickOutdatedPkgs() {
4
4
  const data = require("./pick-outdated-pkgs");
5
-
6
5
  _pickOutdatedPkgs = function () {
7
6
  return data;
8
7
  };
9
-
10
8
  return data;
11
9
  }
12
-
13
10
  describe('makeOutdatedPkgChoices', () => {
14
11
  it('should render choices in correct order', () => {
15
12
  const choices = (0, _pickOutdatedPkgs().makeOutdatedPkgChoices)([{
@@ -36,8 +33,8 @@ describe('makeOutdatedPkgChoices', () => {
36
33
  latestRange: '1.1.0',
37
34
  source: 'rootPolicy',
38
35
  targetField: 'peerDependencies'
39
- }]); // @ts-ignore
40
-
36
+ }]);
37
+ // @ts-ignore
41
38
  expect(choices).toMatchSnapshot();
42
39
  });
43
40
  it('should render choices with context information', () => {
@@ -55,8 +52,8 @@ describe('makeOutdatedPkgChoices', () => {
55
52
  source: 'variants',
56
53
  variantPattern: '{comp2}',
57
54
  targetField: 'peerDependencies'
58
- }]); // @ts-ignore
59
-
55
+ }]);
56
+ // @ts-ignore
60
57
  expect(choices).toMatchSnapshot();
61
58
  });
62
59
  it('should group component model updates of the same dependency', () => {
@@ -74,8 +71,8 @@ describe('makeOutdatedPkgChoices', () => {
74
71
  source: 'component-model',
75
72
  componentId: 'comp2',
76
73
  targetField: 'dependencies'
77
- }]); // @ts-ignore
78
-
74
+ }]);
75
+ // @ts-ignore
79
76
  expect(choices).toMatchSnapshot();
80
77
  });
81
78
  it("should group component model updates of the same dependency and use * as current range when can't compare ranges", () => {
@@ -93,8 +90,8 @@ describe('makeOutdatedPkgChoices', () => {
93
90
  source: 'component-model',
94
91
  componentId: 'comp2',
95
92
  targetField: 'dependencies'
96
- }]); // @ts-ignore
97
-
93
+ }]);
94
+ // @ts-ignore
98
95
  expect(choices).toMatchSnapshot();
99
96
  });
100
97
  it('should group component model updates of the same dependency and display the current range when all components use the same range', () => {
@@ -112,8 +109,8 @@ describe('makeOutdatedPkgChoices', () => {
112
109
  source: 'component-model',
113
110
  componentId: 'comp2',
114
111
  targetField: 'dependencies'
115
- }]); // @ts-ignore
116
-
112
+ }]);
113
+ // @ts-ignore
117
114
  expect(choices).toMatchSnapshot();
118
115
  });
119
116
  });
@@ -1 +1 @@
1
- {"version":3,"names":["describe","it","choices","makeOutdatedPkgChoices","name","currentRange","latestRange","source","targetField","expect","toMatchSnapshot","componentId","variantPattern"],"sources":["pick-outdated-pkgs.spec.ts"],"sourcesContent":["import { makeOutdatedPkgChoices } from './pick-outdated-pkgs';\n\ndescribe('makeOutdatedPkgChoices', () => {\n it('should render choices in correct order', () => {\n const choices = makeOutdatedPkgChoices([\n {\n name: 'zoo',\n currentRange: '1.0.0',\n latestRange: '1.1.0',\n source: 'rootPolicy',\n targetField: 'devDependencies',\n },\n {\n name: 'qar',\n currentRange: '1.0.0',\n latestRange: '1.1.0',\n source: 'rootPolicy',\n targetField: 'dependencies',\n },\n {\n name: 'foo',\n currentRange: '1.0.0',\n latestRange: '2.0.0',\n source: 'rootPolicy',\n targetField: 'dependencies',\n },\n {\n name: 'bar',\n currentRange: '1.0.0',\n latestRange: '1.1.0',\n source: 'rootPolicy',\n targetField: 'peerDependencies',\n },\n ]);\n // @ts-ignore\n expect(choices).toMatchSnapshot();\n });\n it('should render choices with context information', () => {\n const choices = makeOutdatedPkgChoices([\n {\n name: 'foo',\n currentRange: '1.0.0',\n latestRange: '2.0.0',\n source: 'component',\n componentId: 'comp1',\n targetField: 'dependencies',\n },\n {\n name: 'bar',\n currentRange: '1.0.0',\n latestRange: '1.1.0',\n source: 'variants',\n variantPattern: '{comp2}',\n targetField: 'peerDependencies',\n },\n ]);\n // @ts-ignore\n expect(choices).toMatchSnapshot();\n });\n it('should group component model updates of the same dependency', () => {\n const choices = makeOutdatedPkgChoices([\n {\n name: 'foo',\n currentRange: '1.0.0',\n latestRange: '2.0.0',\n source: 'component-model',\n componentId: 'comp1',\n targetField: 'devDependencies',\n },\n {\n name: 'foo',\n currentRange: '1.1.0',\n latestRange: '2.0.0',\n source: 'component-model',\n componentId: 'comp2',\n targetField: 'dependencies',\n },\n ]);\n // @ts-ignore\n expect(choices).toMatchSnapshot();\n });\n it(\"should group component model updates of the same dependency and use * as current range when can't compare ranges\", () => {\n const choices = makeOutdatedPkgChoices([\n {\n name: 'foo',\n currentRange: '<=10.0.0',\n latestRange: '2.0.0',\n source: 'component-model',\n componentId: 'comp1',\n targetField: 'dependencies',\n },\n {\n name: 'foo',\n currentRange: '1.1.0',\n latestRange: '2.0.0',\n source: 'component-model',\n componentId: 'comp2',\n targetField: 'dependencies',\n },\n ]);\n // @ts-ignore\n expect(choices).toMatchSnapshot();\n });\n it('should group component model updates of the same dependency and display the current range when all components use the same range', () => {\n const choices = makeOutdatedPkgChoices([\n {\n name: 'foo',\n currentRange: '^1.2.3',\n latestRange: '2.0.0',\n source: 'component-model',\n componentId: 'comp1',\n targetField: 'dependencies',\n },\n {\n name: 'foo',\n currentRange: '^1.2.3',\n latestRange: '2.0.0',\n source: 'component-model',\n componentId: 'comp2',\n targetField: 'dependencies',\n },\n ]);\n // @ts-ignore\n expect(choices).toMatchSnapshot();\n });\n});\n"],"mappings":";;AAAA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AAEAA,QAAQ,CAAC,wBAAD,EAA2B,MAAM;EACvCC,EAAE,CAAC,wCAAD,EAA2C,MAAM;IACjD,MAAMC,OAAO,GAAG,IAAAC,0CAAA,EAAuB,CACrC;MACEC,IAAI,EAAE,KADR;MAEEC,YAAY,EAAE,OAFhB;MAGEC,WAAW,EAAE,OAHf;MAIEC,MAAM,EAAE,YAJV;MAKEC,WAAW,EAAE;IALf,CADqC,EAQrC;MACEJ,IAAI,EAAE,KADR;MAEEC,YAAY,EAAE,OAFhB;MAG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D,CArBC,CAAF;AAsBD,CA3HO,CAAR"}
1
+ {"version":3,"names":["describe","it","choices","makeOutdatedPkgChoices","name","currentRange","latestRange","source","targetField","expect","toMatchSnapshot","componentId","variantPattern"],"sources":["pick-outdated-pkgs.spec.ts"],"sourcesContent":["import { makeOutdatedPkgChoices } from './pick-outdated-pkgs';\n\ndescribe('makeOutdatedPkgChoices', () => {\n it('should render choices in correct order', () => {\n const choices = makeOutdatedPkgChoices([\n {\n name: 'zoo',\n currentRange: '1.0.0',\n latestRange: '1.1.0',\n source: 'rootPolicy',\n targetField: 'devDependencies',\n },\n {\n name: 'qar',\n currentRange: '1.0.0',\n latestRange: '1.1.0',\n source: 'rootPolicy',\n targetField: 'dependencies',\n },\n {\n name: 'foo',\n currentRange: '1.0.0',\n latestRange: '2.0.0',\n source: 'rootPolicy',\n targetField: 'dependencies',\n },\n {\n name: 'bar',\n currentRange: '1.0.0',\n latestRange: '1.1.0',\n source: 'rootPolicy',\n targetField: 'peerDependencies',\n },\n ]);\n // @ts-ignore\n expect(choices).toMatchSnapshot();\n });\n it('should render choices with context information', () => {\n const choices = makeOutdatedPkgChoices([\n {\n name: 'foo',\n currentRange: '1.0.0',\n latestRange: '2.0.0',\n source: 'component',\n componentId: 'comp1',\n targetField: 'dependencies',\n },\n {\n name: 'bar',\n currentRange: '1.0.0',\n latestRange: '1.1.0',\n source: 'variants',\n variantPattern: '{comp2}',\n targetField: 'peerDependencies',\n },\n ]);\n // @ts-ignore\n expect(choices).toMatchSnapshot();\n });\n it('should group component model updates of the same dependency', () => {\n const choices = makeOutdatedPkgChoices([\n {\n name: 'foo',\n currentRange: '1.0.0',\n latestRange: '2.0.0',\n source: 'component-model',\n componentId: 'comp1',\n targetField: 'devDependencies',\n },\n {\n name: 'foo',\n currentRange: '1.1.0',\n latestRange: '2.0.0',\n source: 'component-model',\n componentId: 'comp2',\n targetField: 'dependencies',\n },\n ]);\n // @ts-ignore\n expect(choices).toMatchSnapshot();\n });\n it(\"should group component model updates of the same dependency and use * as current range when can't compare ranges\", () => {\n const choices = makeOutdatedPkgChoices([\n {\n name: 'foo',\n currentRange: '<=10.0.0',\n latestRange: '2.0.0',\n source: 'component-model',\n componentId: 'comp1',\n targetField: 'dependencies',\n },\n {\n name: 'foo',\n currentRange: '1.1.0',\n latestRange: '2.0.0',\n source: 'component-model',\n componentId: 'comp2',\n targetField: 'dependencies',\n },\n ]);\n // @ts-ignore\n expect(choices).toMatchSnapshot();\n });\n it('should group component model updates of the same dependency and display the current range when all components use the same range', () => {\n const choices = makeOutdatedPkgChoices([\n {\n name: 'foo',\n currentRange: '^1.2.3',\n latestRange: '2.0.0',\n source: 'component-model',\n componentId: 'comp1',\n targetField: 'dependencies',\n },\n {\n name: 'foo',\n currentRange: '^1.2.3',\n latestRange: '2.0.0',\n source: 'component-model',\n componentId: 'comp2',\n targetField: 'dependencies',\n },\n ]);\n // @ts-ignore\n expect(choices).toMatchSnapshot();\n });\n});\n"],"mappings":";;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAEAA,QAAQ,CAAC,wBAAwB,EAAE,MAAM;EACvCC,EAAE,CAAC,wCAAwC,EAAE,MAAM;IACjD,MAAMC,OAAO,GAAG,IAAAC,0CAAsB,EAAC,CACrC;MACEC,IAAI,EAAE,KAAK;MACXC,YAAY,EAAE,OAAO;MACrBC,WAAW,EAAE,OAAO;MACpBC,MAAM,EAAE,YAAY;MACpBC,WAAW,EAAE;IACf,CAAC,EACD;MACEJ,IAAI,EAAE,KAAK;MACXC,YAAY,EAAE,OAAO;MACrBC,WAAW,EAAE,OAAO;MACpBC,MAAM,EAAE,YAAY;MACpBC,WAAW,EAAE;IACf,CAAC,EACD;MACEJ,IAAI,EAAE,KAAK;MACXC,YAAY,EAAE,OAAO;MACrBC,WAAW,EAAE,OAAO;MACpBC,MAAM,EAAE,YAAY;MACpBC,WAAW,EAAE;IACf,CAAC,EACD;MACEJ,IAAI,EAAE,KAAK;MACXC,YAAY,EAAE,OAAO;MACr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rC;MACEC,IAAI,EAAE,KAAK;MACXC,YAAY,EAAE,UAAU;MACxBC,WAAW,EAAE,OAAO;MACpBC,MAAM,EAAE,iBAAiB;MACzBI,WAAW,EAAE,OAAO;MACpBH,WAAW,EAAE;IACf,CAAC,EACD;MACEJ,IAAI,EAAE,KAAK;MACXC,YAAY,EAAE,OAAO;MACrBC,WAAW,EAAE,OAAO;MACpBC,MAAM,EAAE,iBAAiB;MACzBI,WAAW,EAAE,OAAO;MACpBH,WAAW,EAAE;IACf,CAAC,CACF,CAAC;IACF;IACAC,MAAM,CAACP,OAAO,CAAC,CAACQ,eAAe,EAAE;EACnC,CAAC,CAAC;EACFT,EAAE,CAAC,kIAAkI,EAAE,MAAM;IAC3I,MAAMC,OAAO,GAAG,IAAAC,0CAAsB,EAAC,CACrC;MACEC,IAAI,EAAE,KAAK;MACXC,YAAY,EAAE,QAAQ;MACtBC,WAAW,EAAE,OAAO;MACpBC,MAAM,EAAE,iBAAiB;MACzBI,WAAW,EAAE,OAAO;MACpBH,WAAW,EAAE;IACf,CAAC,EACD;MACEJ,IAAI,EAAE,KAAK;MACXC,YAAY,EAAE,QAAQ;MACtBC,WAAW,EAAE,OAAO;MACpBC,MAAM,EAAE,iBAAiB;MACzBI,WAAW,EAAE,OAAO;MACpBH,WAAW,EAAE;IACf,CAAC,CACF,CAAC;IACF;IACAC,MAAM,CAACP,OAAO,CAAC,CAACQ,eAAe,EAAE;EACnC,CAAC,CAAC;AACJ,CAAC,CAAC"}
@@ -1,26 +1,19 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
4
  require("core-js/modules/es.array.iterator.js");
6
-
7
5
  require("core-js/modules/es.promise.js");
8
-
9
6
  Object.defineProperty(exports, "__esModule", {
10
7
  value: true
11
8
  });
12
9
  exports.default = void 0;
13
-
14
10
  function _defineProperty2() {
15
11
  const data = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
16
-
17
12
  _defineProperty2 = function () {
18
13
  return data;
19
14
  };
20
-
21
15
  return data;
22
16
  }
23
-
24
17
  class UninstallCmd {
25
18
  constructor(install) {
26
19
  this.install = install;
@@ -30,14 +23,11 @@ class UninstallCmd {
30
23
  (0, _defineProperty2().default)(this, "group", 'development');
31
24
  (0, _defineProperty2().default)(this, "options", []);
32
25
  }
33
-
34
26
  async report([packages = []]) {
35
27
  await this.install.uninstallDependencies(packages);
36
28
  return '';
37
29
  }
38
-
39
30
  }
40
-
41
31
  exports.default = UninstallCmd;
42
32
 
43
33
  //# sourceMappingURL=uninstall.cmd.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["UninstallCmd","constructor","install","report","packages","uninstallDependencies"],"sources":["uninstall.cmd.tsx"],"sourcesContent":["import { Command, CommandOptions } from '@teambit/cli';\n\nimport { InstallMain } from './install.main.runtime';\n\nexport default class UninstallCmd implements Command {\n name = 'uninstall [packages...]';\n description = 'uninstall dependencies';\n alias = 'un';\n group = 'development';\n options = [] as CommandOptions;\n\n constructor(private install: InstallMain) {}\n\n async report([packages = []]: [string[]]) {\n await this.install.uninstallDependencies(packages);\n return '';\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAIe,MAAMA,YAAN,CAAsC;EAOnDC,WAAW,CAASC,OAAT,EAA+B;IAAA,KAAtBA,OAAsB,GAAtBA,OAAsB;IAAA,8CANnC,yBAMmC;IAAA,qDAL5B,wBAK4B;IAAA,+CAJlC,IAIkC;IAAA,+CAHlC,aAGkC;IAAA,iDAFhC,EAEgC;EAAE;;EAEhC,MAANC,MAAM,CAAC,CAACC,QAAQ,GAAG,EAAZ,CAAD,EAA8B;IACxC,MAAM,KAAKF,OAAL,CAAaG,qBAAb,CAAmCD,QAAnC,CAAN;IACA,OAAO,EAAP;EACD;;AAZkD"}
1
+ {"version":3,"names":["UninstallCmd","constructor","install","report","packages","uninstallDependencies"],"sources":["uninstall.cmd.tsx"],"sourcesContent":["import { Command, CommandOptions } from '@teambit/cli';\n\nimport { InstallMain } from './install.main.runtime';\n\nexport default class UninstallCmd implements Command {\n name = 'uninstall [packages...]';\n description = 'uninstall dependencies';\n alias = 'un';\n group = 'development';\n options = [] as CommandOptions;\n\n constructor(private install: InstallMain) {}\n\n async report([packages = []]: [string[]]) {\n await this.install.uninstallDependencies(packages);\n return '';\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAIe,MAAMA,YAAY,CAAoB;EAOnDC,WAAW,CAASC,OAAoB,EAAE;IAAA,KAAtBA,OAAoB,GAApBA,OAAoB;IAAA,8CANjC,yBAAyB;IAAA,qDAClB,wBAAwB;IAAA,+CAC9B,IAAI;IAAA,+CACJ,aAAa;IAAA,iDACX,EAAE;EAE+B;EAE3C,MAAMC,MAAM,CAAC,CAACC,QAAQ,GAAG,EAAE,CAAa,EAAE;IACxC,MAAM,IAAI,CAACF,OAAO,CAACG,qBAAqB,CAACD,QAAQ,CAAC;IAClD,OAAO,EAAE;EACX;AACF;AAAC"}
@@ -1,24 +1,18 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
4
  require("core-js/modules/es.promise.js");
6
-
7
5
  Object.defineProperty(exports, "__esModule", {
8
6
  value: true
9
7
  });
10
8
  exports.default = void 0;
11
-
12
9
  function _defineProperty2() {
13
10
  const data = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
14
-
15
11
  _defineProperty2 = function () {
16
12
  return data;
17
13
  };
18
-
19
14
  return data;
20
15
  }
21
-
22
16
  class UpdateCmd {
23
17
  constructor(install) {
24
18
  this.install = install;
@@ -28,16 +22,13 @@ class UpdateCmd {
28
22
  (0, _defineProperty2().default)(this, "group", 'development');
29
23
  (0, _defineProperty2().default)(this, "options", [['y', 'yes', 'automatically update all outdated packages']]);
30
24
  }
31
-
32
25
  async report(args, options) {
33
26
  await this.install.updateDependencies({
34
27
  all: options.yes === true
35
28
  });
36
29
  return '';
37
30
  }
38
-
39
31
  }
40
-
41
32
  exports.default = UpdateCmd;
42
33
 
43
34
  //# sourceMappingURL=update.cmd.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["UpdateCmd","constructor","install","report","args","options","updateDependencies","all","yes"],"sources":["update.cmd.tsx"],"sourcesContent":["import { Command, CommandOptions } from '@teambit/cli';\n\nimport { InstallMain } from './install.main.runtime';\n\ntype UpdateCmdOptions = {\n yes?: boolean;\n};\n\nexport default class UpdateCmd implements Command {\n name = 'update';\n description = 'update dependencies';\n alias = 'up';\n group = 'development';\n options = [['y', 'yes', 'automatically update all outdated packages']] as CommandOptions;\n\n constructor(private install: InstallMain) {}\n\n async report(args: [string[]], options: UpdateCmdOptions) {\n await this.install.updateDependencies({\n all: options.yes === true,\n });\n return '';\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAQe,MAAMA,SAAN,CAAmC;EAOhDC,WAAW,CAASC,OAAT,EAA+B;IAAA,KAAtBA,OAAsB,GAAtBA,OAAsB;IAAA,8CANnC,QAMmC;IAAA,qDAL5B,qBAK4B;IAAA,+CAJlC,IAIkC;IAAA,+CAHlC,aAGkC;IAAA,iDAFhC,CAAC,CAAC,GAAD,EAAM,KAAN,EAAa,4CAAb,CAAD,CAEgC;EAAE;;EAEhC,MAANC,MAAM,CAACC,IAAD,EAAmBC,OAAnB,EAA8C;IACxD,MAAM,KAAKH,OAAL,CAAaI,kBAAb,CAAgC;MACpCC,GAAG,EAAEF,OAAO,CAACG,GAAR,KAAgB;IADe,CAAhC,CAAN;IAGA,OAAO,EAAP;EACD;;AAd+C"}
1
+ {"version":3,"names":["UpdateCmd","constructor","install","report","args","options","updateDependencies","all","yes"],"sources":["update.cmd.tsx"],"sourcesContent":["import { Command, CommandOptions } from '@teambit/cli';\n\nimport { InstallMain } from './install.main.runtime';\n\ntype UpdateCmdOptions = {\n yes?: boolean;\n};\n\nexport default class UpdateCmd implements Command {\n name = 'update';\n description = 'update dependencies';\n alias = 'up';\n group = 'development';\n options = [['y', 'yes', 'automatically update all outdated packages']] as CommandOptions;\n\n constructor(private install: InstallMain) {}\n\n async report(args: [string[]], options: UpdateCmdOptions) {\n await this.install.updateDependencies({\n all: options.yes === true,\n });\n return '';\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;AAQe,MAAMA,SAAS,CAAoB;EAOhDC,WAAW,CAASC,OAAoB,EAAE;IAAA,KAAtBA,OAAoB,GAApBA,OAAoB;IAAA,8CANjC,QAAQ;IAAA,qDACD,qBAAqB;IAAA,+CAC3B,IAAI;IAAA,+CACJ,aAAa;IAAA,iDACX,CAAC,CAAC,GAAG,EAAE,KAAK,EAAE,4CAA4C,CAAC,CAAC;EAE3B;EAE3C,MAAMC,MAAM,CAACC,IAAgB,EAAEC,OAAyB,EAAE;IACxD,MAAM,IAAI,CAACH,OAAO,CAACI,kBAAkB,CAAC;MACpCC,GAAG,EAAEF,OAAO,CAACG,GAAG,KAAK;IACvB,CAAC,CAAC;IACF,OAAO,EAAE;EACX;AACF;AAAC"}
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@teambit/install",
3
- "version": "0.0.27",
3
+ "version": "0.0.29",
4
4
  "homepage": "https://bit.dev/teambit/workspace/install",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.workspace",
8
8
  "name": "install",
9
- "version": "0.0.27"
9
+ "version": "0.0.29"
10
10
  },
11
11
  "dependencies": {
12
12
  "chalk": "2.4.2",
13
- "@pnpm/types": "8.5.0",
13
+ "@pnpm/types": "8.8.0",
14
14
  "lodash": "4.17.21",
15
15
  "@pnpm/colorize-semver-diff": "1.0.1",
16
16
  "@pnpm/semver-diff": "1.1.0",
@@ -35,7 +35,7 @@
35
35
  "@types/node": "12.20.4"
36
36
  },
37
37
  "peerDependencies": {
38
- "@teambit/legacy": "1.0.373",
38
+ "@teambit/legacy": "1.0.374",
39
39
  "react-dom": "^16.8.0 || ^17.0.0",
40
40
  "react": "^16.8.0 || ^17.0.0"
41
41
  },