@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.
- package/dist/exceptions/dependency-type-not-supported-in-policy.js +0 -6
- package/dist/exceptions/dependency-type-not-supported-in-policy.js.map +1 -1
- package/dist/exceptions/index.js +0 -3
- package/dist/exceptions/index.js.map +1 -1
- package/dist/index.js +0 -5
- package/dist/index.js.map +1 -1
- package/dist/install.aspect.js +0 -5
- package/dist/install.aspect.js.map +1 -1
- package/dist/install.cmd.js +0 -17
- package/dist/install.cmd.js.map +1 -1
- package/dist/install.main.runtime.js +11 -142
- package/dist/install.main.runtime.js.map +1 -1
- package/dist/link/component-list-links.js +0 -18
- package/dist/link/component-list-links.js.map +1 -1
- package/dist/link/core-aspects-links.js +0 -18
- package/dist/link/core-aspects-links.js.map +1 -1
- package/dist/link/get-package-name-from-target.js +0 -2
- package/dist/link/get-package-name-from-target.js.map +1 -1
- package/dist/link/index.js +0 -3
- package/dist/link/index.js.map +1 -1
- package/dist/link/link-row.js +0 -6
- package/dist/link/link-row.js.map +1 -1
- package/dist/link/link-to-dir.js +0 -10
- package/dist/link/link-to-dir.js.map +1 -1
- package/dist/link/link.cmd.js +2 -36
- package/dist/link/link.cmd.js.map +1 -1
- package/dist/link/nested-deps-in-nm-links.js +0 -15
- package/dist/link/nested-deps-in-nm-links.js.map +1 -1
- package/dist/link/rewire-row.js +0 -5
- package/dist/link/rewire-row.js.map +1 -1
- package/dist/pick-outdated-pkgs.js +3 -64
- package/dist/pick-outdated-pkgs.js.map +1 -1
- package/dist/pick-outdated-pkgs.spec.js +10 -13
- package/dist/pick-outdated-pkgs.spec.js.map +1 -1
- package/dist/uninstall.cmd.js +0 -10
- package/dist/uninstall.cmd.js.map +1 -1
- package/dist/update.cmd.js +0 -9
- package/dist/update.cmd.js.map +1 -1
- package/package-tar/teambit-install-0.0.29.tgz +0 -0
- package/package.json +4 -4
- /package/{preview-1666312873430.js → preview-1666496165706.js} +0 -0
- 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
|
-
}]);
|
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
|
-
}]);
|
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
|
-
}]);
|
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
|
-
}]);
|
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
|
-
}]);
|
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
|
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":"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"}
|
package/dist/uninstall.cmd.js
CHANGED
@@ -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":"
|
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"}
|
package/dist/update.cmd.js
CHANGED
@@ -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
|
package/dist/update.cmd.js.map
CHANGED
@@ -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":"
|
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"}
|
Binary file
|
package/package.json
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
{
|
2
2
|
"name": "@teambit/install",
|
3
|
-
"version": "0.0.
|
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.
|
9
|
+
"version": "0.0.29"
|
10
10
|
},
|
11
11
|
"dependencies": {
|
12
12
|
"chalk": "2.4.2",
|
13
|
-
"@pnpm/types": "8.
|
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.
|
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
|
},
|
File without changes
|
Binary file
|