@teambit/install 0.0.0-e63924d1e4e3f532aeb1a9be1a256107109b66e6 → 0.0.0-eaea9b52da8b31eee056874ef39dbdc902f37382
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.
@@ -58,7 +58,6 @@ describe('makeOutdatedPkgChoices', () => {
|
|
58
58
|
}]);
|
59
59
|
// Removing the ansi chars for better work on bit build on ci
|
60
60
|
const stripped = stripAnsiFromChoices(choices);
|
61
|
-
// @ts-ignore
|
62
61
|
// eslint-disable-next-line @typescript-eslint/no-use-before-define
|
63
62
|
(0, _chai().expect)(stripped).to.deep.equal(orderedChoices);
|
64
63
|
});
|
@@ -80,7 +79,6 @@ describe('makeOutdatedPkgChoices', () => {
|
|
80
79
|
}]);
|
81
80
|
// Removing the ansi chars for better work on bit build on ci
|
82
81
|
const stripped = stripAnsiFromChoices(choices);
|
83
|
-
// @ts-ignore
|
84
82
|
// eslint-disable-next-line @typescript-eslint/no-use-before-define
|
85
83
|
(0, _chai().expect)(stripped).to.deep.equal(contextOrders);
|
86
84
|
});
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["_chai","data","require","_stripAnsi","_interopRequireDefault","_component","_pickOutdatedPkgs","e","__esModule","default","describe","it","choices","makeOutdatedPkgChoices","name","currentRange","latestRange","source","targetField","stripped","stripAnsiFromChoices","expect","to","deep","equal","orderedChoices","componentId","ComponentID","fromString","variantPattern","contextOrders","forEach","choice","message","stripAnsi","currChoice","value"],"sources":["pick-outdated-pkgs.spec.ts"],"sourcesContent":["import { expect } from 'chai';\nimport stripAnsi from 'strip-ansi';\nimport { ComponentID } from '@teambit/component';\nimport { 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 // Removing the ansi chars for better work on bit build on ci\n const stripped = stripAnsiFromChoices(choices);\n //
|
1
|
+
{"version":3,"names":["_chai","data","require","_stripAnsi","_interopRequireDefault","_component","_pickOutdatedPkgs","e","__esModule","default","describe","it","choices","makeOutdatedPkgChoices","name","currentRange","latestRange","source","targetField","stripped","stripAnsiFromChoices","expect","to","deep","equal","orderedChoices","componentId","ComponentID","fromString","variantPattern","contextOrders","forEach","choice","message","stripAnsi","currChoice","value"],"sources":["pick-outdated-pkgs.spec.ts"],"sourcesContent":["import { expect } from 'chai';\nimport stripAnsi from 'strip-ansi';\nimport { ComponentID } from '@teambit/component';\nimport { 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 // Removing the ansi chars for better work on bit build on ci\n const stripped = stripAnsiFromChoices(choices);\n // eslint-disable-next-line @typescript-eslint/no-use-before-define\n expect(stripped).to.deep.equal(orderedChoices);\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: ComponentID.fromString('scope/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 // Removing the ansi chars for better work on bit build on ci\n const stripped = stripAnsiFromChoices(choices);\n // eslint-disable-next-line @typescript-eslint/no-use-before-define\n expect(stripped).to.deep.equal(contextOrders);\n });\n});\n\nfunction stripAnsiFromChoices(choices) {\n choices.forEach((choice) => {\n choice.message = stripAnsi(choice.message);\n choice.choices.forEach((currChoice) => {\n currChoice.message = stripAnsi(currChoice.message);\n });\n });\n return choices;\n}\n\nconst orderedChoices = [\n {\n choices: [\n {\n message: 'foo (runtime) 1.0.0 ❯ 2.0.0 ',\n name: 'foo',\n value: {\n currentRange: '1.0.0',\n latestRange: '2.0.0',\n name: 'foo',\n source: 'rootPolicy',\n targetField: 'dependencies',\n },\n },\n {\n message: 'qar (runtime) 1.0.0 ❯ 1.1.0 ',\n name: 'qar',\n value: {\n currentRange: '1.0.0',\n latestRange: '1.1.0',\n name: 'qar',\n source: 'rootPolicy',\n targetField: 'dependencies',\n },\n },\n {\n message: 'zoo (dev) 1.0.0 ❯ 1.1.0 ',\n name: 'zoo',\n value: {\n currentRange: '1.0.0',\n latestRange: '1.1.0',\n name: 'zoo',\n source: 'rootPolicy',\n targetField: 'devDependencies',\n },\n },\n {\n message: 'bar (peer) 1.0.0 ❯ 1.1.0 ',\n name: 'bar',\n value: {\n currentRange: '1.0.0',\n latestRange: '1.1.0',\n name: 'bar',\n source: 'rootPolicy',\n targetField: 'peerDependencies',\n },\n },\n ],\n message: 'Root policies',\n },\n];\n\nconst contextOrders = [\n {\n choices: [\n {\n message: 'foo (runtime) 1.0.0 ❯ 2.0.0 ',\n name: 'foo',\n value: {\n componentId: ComponentID.fromString('scope/comp1'),\n currentRange: '1.0.0',\n latestRange: '2.0.0',\n name: 'foo',\n source: 'component',\n targetField: 'dependencies',\n },\n },\n ],\n message: 'scope/comp1 (component)',\n },\n {\n choices: [\n {\n message: 'bar (peer) 1.0.0 ❯ 1.1.0 ',\n name: 'bar',\n value: {\n currentRange: '1.0.0',\n latestRange: '1.1.0',\n name: 'bar',\n source: 'variants',\n targetField: 'peerDependencies',\n variantPattern: '{comp2}',\n },\n },\n ],\n message: '{comp2} (variant)',\n },\n];\n"],"mappings":";;AAAA,SAAAA,MAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,KAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,WAAA;EAAA,MAAAF,IAAA,GAAAG,sBAAA,CAAAF,OAAA;EAAAC,UAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAI,WAAA;EAAA,MAAAJ,IAAA,GAAAC,OAAA;EAAAG,UAAA,YAAAA,CAAA;IAAA,OAAAJ,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAK,kBAAA;EAAA,MAAAL,IAAA,GAAAC,OAAA;EAAAI,iBAAA,YAAAA,CAAA;IAAA,OAAAL,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAA8D,SAAAG,uBAAAG,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAE9DG,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;I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MACpBC,WAAW,EAAE;IACf;EACF,CAAC,CACF;EACDe,OAAO,EAAE;AACX,CAAC,CACF;AAED,MAAMH,aAAa,GAAG,CACpB;EACElB,OAAO,EAAE,CACP;IACEqB,OAAO,EAAE,gCAAgC;IACzCnB,IAAI,EAAE,KAAK;IACXsB,KAAK,EAAE;MACLV,WAAW,EAAEC,wBAAW,CAACC,UAAU,CAAC,aAAa,CAAC;MAClDb,YAAY,EAAE,OAAO;MACrBC,WAAW,EAAE,OAAO;MACpBF,IAAI,EAAE,KAAK;MACXG,MAAM,EAAE,WAAW;MACnBC,WAAW,EAAE;IACf;EACF,CAAC,CACF;EACDe,OAAO,EAAE;AACX,CAAC,EACD;EACErB,OAAO,EAAE,CACP;IACEqB,OAAO,EAAE,gCAAgC;IACzCnB,IAAI,EAAE,KAAK;IACXsB,KAAK,EAAE;MACLrB,YAAY,EAAE,OAAO;MACrBC,WAAW,EAAE,OAAO;MACpBF,IAAI,EAAE,KAAK;MACXG,MAAM,EAAE,UAAU;MAClBC,WAAW,EAAE,kBAAkB;MAC/BW,cAAc,EAAE;IAClB;EACF,CAAC,CACF;EACDI,OAAO,EAAE;AACX,CAAC,CACF","ignoreList":[]}
|
package/package.json
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
{
|
2
2
|
"name": "@teambit/install",
|
3
|
-
"version": "0.0.0-
|
3
|
+
"version": "0.0.0-eaea9b52da8b31eee056874ef39dbdc902f37382",
|
4
4
|
"homepage": "https://bit.cloud/teambit/workspace/install",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"componentId": {
|
7
7
|
"scope": "teambit.workspace",
|
8
8
|
"name": "install",
|
9
|
-
"version": "
|
9
|
+
"version": "eaea9b52da8b31eee056874ef39dbdc902f37382"
|
10
10
|
},
|
11
11
|
"dependencies": {
|
12
12
|
"chalk": "4.1.2",
|
@@ -23,32 +23,32 @@
|
|
23
23
|
"enquirer": "2.4.1",
|
24
24
|
"table": "6.7.3",
|
25
25
|
"@teambit/harmony": "0.4.7",
|
26
|
-
"@teambit/cli": "0.0.
|
27
|
-
"@teambit/logger": "0.0.
|
28
|
-
"@teambit/component-issues": "0.0.
|
29
|
-
"@teambit/component-package-version": "0.0.
|
30
|
-
"@teambit/component.sources": "0.0.
|
31
|
-
"@teambit/dependencies.fs.linked-dependencies": "0.0.
|
32
|
-
"@teambit/pkg.modules.component-package-name": "0.0.
|
33
|
-
"@teambit/variants": "0.0.
|
34
|
-
"@teambit/workspace.modules.node-modules-linker": "0.0.
|
26
|
+
"@teambit/cli": "0.0.1268",
|
27
|
+
"@teambit/logger": "0.0.1361",
|
28
|
+
"@teambit/component-issues": "0.0.162",
|
29
|
+
"@teambit/component-package-version": "0.0.441",
|
30
|
+
"@teambit/component.sources": "0.0.121",
|
31
|
+
"@teambit/dependencies.fs.linked-dependencies": "0.0.35",
|
32
|
+
"@teambit/pkg.modules.component-package-name": "0.0.76",
|
33
|
+
"@teambit/variants": "0.0.1535",
|
34
|
+
"@teambit/workspace.modules.node-modules-linker": "0.0.297",
|
35
35
|
"@teambit/workspace.root-components": "1.0.0",
|
36
36
|
"@teambit/bit-error": "0.0.404",
|
37
|
-
"@teambit/toolbox.time.time-format": "0.0.
|
38
|
-
"@teambit/dependency-resolver": "0.0.0-
|
39
|
-
"@teambit/workspace": "0.0.0-
|
40
|
-
"@teambit/application": "0.0.0-
|
41
|
-
"@teambit/aspect-loader": "0.0.0-
|
42
|
-
"@teambit/bundler": "0.0.0-
|
43
|
-
"@teambit/compiler": "0.0.0-
|
44
|
-
"@teambit/component": "0.0.0-
|
45
|
-
"@teambit/envs": "0.0.0-
|
46
|
-
"@teambit/generator": "0.0.0-
|
47
|
-
"@teambit/ipc-events": "0.0.0-
|
48
|
-
"@teambit/issues": "0.0.0-
|
49
|
-
"@teambit/objects": "0.0.0-
|
50
|
-
"@teambit/ui": "0.0.0-
|
51
|
-
"@teambit/workspace-config-files": "0.0.0-
|
37
|
+
"@teambit/toolbox.time.time-format": "0.0.502",
|
38
|
+
"@teambit/dependency-resolver": "0.0.0-1bebc1652d788781cafcb719f7a827d33bc99810",
|
39
|
+
"@teambit/workspace": "0.0.0-9c41fc718345c332b626f9f39af30328a52dbb7f",
|
40
|
+
"@teambit/application": "0.0.0-962de3e53ce339e9f01a4d046a96f6792b521266",
|
41
|
+
"@teambit/aspect-loader": "0.0.0-11d59912fe34f6669ffc705132ba6ca87bf34cf3",
|
42
|
+
"@teambit/bundler": "0.0.0-214cafaa11a93bea7d68d3ebd2bb99d7432ba5d5",
|
43
|
+
"@teambit/compiler": "0.0.0-a29a2f0818d79bf44c96664a9b62d64e049e1e93",
|
44
|
+
"@teambit/component": "0.0.0-130c7adacba9c499f850ec0293c1e876371a5431",
|
45
|
+
"@teambit/envs": "0.0.0-51d6547394d732aa31d8b6ebd3c93e667b2c87c5",
|
46
|
+
"@teambit/generator": "0.0.0-7cf870298fad310466b5713091fb145b85c64716",
|
47
|
+
"@teambit/ipc-events": "0.0.0-55c454432d3c9281c4cbf45389d9bfb6d0044850",
|
48
|
+
"@teambit/issues": "0.0.0-387d4f7bbd31c57173a2c1a01b2063ca9baf67be",
|
49
|
+
"@teambit/objects": "0.0.0-61a3347aee6210f67cdae4acd29129ce3c69c600",
|
50
|
+
"@teambit/ui": "0.0.0-dd1c81bffffb2f6f1bb17ae0e9c4467461682547",
|
51
|
+
"@teambit/workspace-config-files": "0.0.0-94d8a1268c0e2198fef1e9e36d5bcc7136f581c3"
|
52
52
|
},
|
53
53
|
"devDependencies": {
|
54
54
|
"@types/fs-extra": "9.0.7",
|
@@ -56,7 +56,7 @@
|
|
56
56
|
"@types/object-hash": "1.3.4",
|
57
57
|
"strip-ansi": "6.0.0",
|
58
58
|
"@types/mocha": "9.1.0",
|
59
|
-
"@teambit/harmony.envs.core-aspect-env": "0.0.
|
59
|
+
"@teambit/harmony.envs.core-aspect-env": "0.0.78"
|
60
60
|
},
|
61
61
|
"peerDependencies": {
|
62
62
|
"chai": "5.2.1",
|
package/dist/esm.d.mts
DELETED
File without changes
|