@teambit/install 0.0.0-f163ab86e23ddd3dde81c5f37c0f832405d7bfa8 → 0.0.0-f474a0d155b0a05000da3f7c7a711e2ad7cce57f
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/install.cmd.d.ts +5 -5
- package/dist/install.cmd.js +22 -6
- package/dist/install.cmd.js.map +1 -1
- package/dist/install.main.runtime.d.ts +21 -18
- package/dist/install.main.runtime.js +45 -33
- package/dist/install.main.runtime.js.map +1 -1
- package/dist/link/component-list-links.d.ts +4 -3
- package/dist/link/component-list-links.js +6 -1
- package/dist/link/component-list-links.js.map +1 -1
- package/dist/link/core-aspects-links.d.ts +1 -1
- package/dist/link/core-aspects-links.js +12 -6
- package/dist/link/core-aspects-links.js.map +1 -1
- package/dist/link/link-to-dir.d.ts +1 -1
- package/dist/link/link-to-dir.js.map +1 -1
- package/dist/link/link.cmd.d.ts +5 -4
- package/dist/link/link.cmd.js +3 -2
- package/dist/link/link.cmd.js.map +1 -1
- package/dist/link/nested-deps-in-nm-links.d.ts +1 -1
- package/dist/link/nested-deps-in-nm-links.js.map +1 -1
- package/dist/link/rewire-row.d.ts +1 -1
- package/dist/link/rewire-row.js.map +1 -1
- package/dist/pick-outdated-pkgs.d.ts +1 -1
- package/dist/pick-outdated-pkgs.js.map +1 -1
- package/dist/pick-outdated-pkgs.spec.js +0 -2
- package/dist/pick-outdated-pkgs.spec.js.map +1 -1
- package/dist/uninstall.cmd.d.ts +2 -2
- package/dist/uninstall.cmd.js.map +1 -1
- package/dist/update.cmd.d.ts +2 -2
- package/dist/update.cmd.js.map +1 -1
- package/install.cmd.tsx +30 -11
- package/link/component-list-links.ts +21 -8
- package/link/core-aspects-links.ts +11 -4
- package/link/link-to-dir.ts +1 -1
- package/link/link.cmd.ts +11 -5
- package/link/nested-deps-in-nm-links.ts +1 -1
- package/link/rewire-row.ts +1 -1
- package/package.json +30 -29
- package/uninstall.cmd.tsx +2 -2
- package/update.cmd.tsx +2 -2
- /package/dist/{preview-1752106620913.js → preview-1756487967921.js} +0 -0
@@ -1,4 +1,4 @@
|
|
1
|
-
import { CoreAspectLinkResult } from '@teambit/dependency-resolver';
|
1
|
+
import type { CoreAspectLinkResult } from '@teambit/dependency-resolver';
|
2
2
|
import chalk from 'chalk';
|
3
3
|
|
4
4
|
import { getPackageNameFromTarget } from './get-package-name-from-target';
|
@@ -13,9 +13,16 @@ export function CoreAspectsLinks({ coreAspectsLinks, verbose = false }: CoreAspe
|
|
13
13
|
if (!coreAspectsLinks || !coreAspectsLinks.length) {
|
14
14
|
return chalk.cyan('No core aspects were linked');
|
15
15
|
}
|
16
|
-
|
17
|
-
|
18
|
-
|
16
|
+
|
17
|
+
if (verbose) {
|
18
|
+
const title = chalk.cyan('Core aspects links');
|
19
|
+
const links = coreAspectsLinks.map((link) => CoreAspectLinkRow({ coreAspectLink: link, verbose })).join('\n');
|
20
|
+
return `${title}\n${links}`;
|
21
|
+
}
|
22
|
+
|
23
|
+
// Show summary by default
|
24
|
+
const count = coreAspectsLinks.length;
|
25
|
+
return chalk.cyan(`${count} core-aspects were linked`);
|
19
26
|
}
|
20
27
|
|
21
28
|
type CoreAspectLinkProps = {
|
package/link/link-to-dir.ts
CHANGED
package/link/link.cmd.ts
CHANGED
@@ -1,10 +1,10 @@
|
|
1
|
-
import { Command, CommandOptions } from '@teambit/cli';
|
2
|
-
import { Logger } from '@teambit/logger';
|
1
|
+
import type { Command, CommandOptions } from '@teambit/cli';
|
2
|
+
import type { Logger } from '@teambit/logger';
|
3
3
|
import { timeFormat } from '@teambit/toolbox.time.time-format';
|
4
4
|
import { compact } from 'lodash';
|
5
5
|
import chalk from 'chalk';
|
6
|
-
import { Workspace } from '@teambit/workspace';
|
7
|
-
import { InstallMain, WorkspaceLinkOptions, WorkspaceLinkResults } from '../install.main.runtime';
|
6
|
+
import type { Workspace } from '@teambit/workspace';
|
7
|
+
import type { InstallMain, WorkspaceLinkOptions, WorkspaceLinkResults } from '../install.main.runtime';
|
8
8
|
import { ComponentListLinks, packageListLinks } from './component-list-links';
|
9
9
|
import { CoreAspectsLinks } from './core-aspects-links';
|
10
10
|
import { NestedComponentLinksLinks } from './nested-deps-in-nm-links';
|
@@ -17,6 +17,7 @@ type LinkCommandOpts = {
|
|
17
17
|
target: string;
|
18
18
|
skipFetchingObjects?: boolean;
|
19
19
|
peers?: boolean;
|
20
|
+
compSummary?: boolean;
|
20
21
|
};
|
21
22
|
export class LinkCommand implements Command {
|
22
23
|
name = 'link [component-names...]';
|
@@ -38,6 +39,7 @@ export class LinkCommand implements Command {
|
|
38
39
|
],
|
39
40
|
['', 'skip-fetching-objects', 'skip fetch missing objects from remotes before linking'],
|
40
41
|
['', 'peers', 'link peer dependencies of the components too'],
|
42
|
+
['', 'comp-summary', 'show only a summary of component links instead of listing all components'],
|
41
43
|
] as CommandOptions;
|
42
44
|
|
43
45
|
constructor(
|
@@ -71,7 +73,11 @@ export class LinkCommand implements Command {
|
|
71
73
|
verbose: opts.verbose,
|
72
74
|
});
|
73
75
|
const nonCorePackagesLinks = packageListLinks(linkResults.slotOriginatedLinks);
|
74
|
-
const compsLinks = ComponentListLinks({
|
76
|
+
const compsLinks = ComponentListLinks({
|
77
|
+
componentListLinks: linkResults.legacyLinkResults,
|
78
|
+
verbose: opts.verbose,
|
79
|
+
compSummary: opts.compSummary,
|
80
|
+
});
|
75
81
|
const rewireRow = RewireRow({ legacyCodemodResults: linkResults.legacyLinkCodemodResults });
|
76
82
|
const nestedLinks = NestedComponentLinksLinks({
|
77
83
|
nestedDepsInNmLinks: linkResults.nestedDepsInNmLinks,
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import chalk from 'chalk';
|
2
|
-
import { NestedNMDepsLinksResult } from '@teambit/dependency-resolver';
|
2
|
+
import type { NestedNMDepsLinksResult } from '@teambit/dependency-resolver';
|
3
3
|
import { VerboseLinkRow } from './link-row';
|
4
4
|
|
5
5
|
type NestedComponentLinksLinksProps = {
|
package/link/rewire-row.ts
CHANGED
package/package.json
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
{
|
2
2
|
"name": "@teambit/install",
|
3
|
-
"version": "0.0.0-
|
3
|
+
"version": "0.0.0-f474a0d155b0a05000da3f7c7a711e2ad7cce57f",
|
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": "f474a0d155b0a05000da3f7c7a711e2ad7cce57f"
|
10
10
|
},
|
11
11
|
"dependencies": {
|
12
12
|
"chalk": "4.1.2",
|
13
13
|
"validate-npm-package-name": "6.0.0",
|
14
|
-
"@pnpm/types": "
|
14
|
+
"@pnpm/types": "1000.7.0",
|
15
15
|
"fs-extra": "10.0.0",
|
16
16
|
"lodash": "4.17.21",
|
17
17
|
"object-hash": "2.1.1",
|
@@ -23,31 +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.1270",
|
27
|
+
"@teambit/logger": "0.0.1363",
|
28
|
+
"@teambit/component-issues": "0.0.163",
|
29
|
+
"@teambit/component-package-version": "0.0.442",
|
30
|
+
"@teambit/component.sources": "0.0.123",
|
31
|
+
"@teambit/dependencies.fs.linked-dependencies": "0.0.36",
|
32
|
+
"@teambit/pkg.modules.component-package-name": "0.0.78",
|
33
|
+
"@teambit/variants": "0.0.1537",
|
34
|
+
"@teambit/workspace.modules.node-modules-linker": "0.0.299",
|
26
35
|
"@teambit/workspace.root-components": "1.0.0",
|
27
36
|
"@teambit/bit-error": "0.0.404",
|
28
|
-
"@teambit/
|
29
|
-
"@teambit/dependency-resolver": "0.0.0-
|
30
|
-
"@teambit/
|
31
|
-
"@teambit/
|
32
|
-
"@teambit/
|
33
|
-
"@teambit/
|
34
|
-
"@teambit/
|
35
|
-
"@teambit/
|
36
|
-
"@teambit/
|
37
|
-
"@teambit/
|
38
|
-
"@teambit/
|
39
|
-
"@teambit/
|
40
|
-
"@teambit/
|
41
|
-
"@teambit/
|
42
|
-
"@teambit/
|
43
|
-
"@teambit/issues": "0.0.0-c7b8de360c9d254b88d3b35e317e7c840d9e572d",
|
44
|
-
"@teambit/objects": "0.0.0-15acf3f9b295a985a00bf4c313c939bf7adc1310",
|
45
|
-
"@teambit/pkg.modules.component-package-name": "0.0.61",
|
46
|
-
"@teambit/ui": "0.0.0-8a5ab6f27423f6ad9d09b44c692a57d142157a7e",
|
47
|
-
"@teambit/variants": "0.0.0-74a63f17f992a17f16a8f4e33810dd269eaab503",
|
48
|
-
"@teambit/workspace-config-files": "0.0.0-4d9214c4aa48aa1e21ffef62aa6b87075233826c",
|
49
|
-
"@teambit/workspace.modules.node-modules-linker": "0.0.282",
|
50
|
-
"@teambit/toolbox.time.time-format": "0.0.500"
|
37
|
+
"@teambit/toolbox.time.time-format": "0.0.502",
|
38
|
+
"@teambit/dependency-resolver": "0.0.0-f1e4d0720ed86e7967fea6c473e0bcc052b97919",
|
39
|
+
"@teambit/workspace": "0.0.0-8d2a07c4485fa3d13b4d33f66dfb5bca3f82f54f",
|
40
|
+
"@teambit/application": "0.0.0-03e85e021db98b81d1c4c73b5414085cca8832fe",
|
41
|
+
"@teambit/aspect-loader": "0.0.0-cf039a40681042be7c1b663765ef6994ad3bbbf3",
|
42
|
+
"@teambit/bundler": "0.0.0-9c407e18a1f8029930b099e1533e9010e705cc77",
|
43
|
+
"@teambit/compiler": "0.0.0-50225ac8f172ec7ce91cc57150e787f7f609263a",
|
44
|
+
"@teambit/component": "0.0.0-8fe04fa403bb72462fcbdee4bbd8360f343eee9a",
|
45
|
+
"@teambit/envs": "0.0.0-c6bbfa0d71d3f9bf1b23aa951ec6fd194e4cf0f8",
|
46
|
+
"@teambit/generator": "0.0.0-92c537184a5932f756c6d9c4ca28c239bb01dba2",
|
47
|
+
"@teambit/ipc-events": "0.0.0-87ee696707ec743bef02bb173b5b84819952877e",
|
48
|
+
"@teambit/issues": "0.0.0-e1bf2e4df211a1bcf68d4e11cc7c8f0db86b5156",
|
49
|
+
"@teambit/objects": "0.0.0-158071dbc1ed13e15b96fca06639f296f80c8b5e",
|
50
|
+
"@teambit/ui": "0.0.0-37cc997f6bf3b292319b94d5177eb11a61423f19",
|
51
|
+
"@teambit/workspace-config-files": "0.0.0-4a745b0c06919f68dcd3dbc8eefd37bd2277e4d8"
|
51
52
|
},
|
52
53
|
"devDependencies": {
|
53
54
|
"@types/fs-extra": "9.0.7",
|
@@ -55,11 +56,11 @@
|
|
55
56
|
"@types/object-hash": "1.3.4",
|
56
57
|
"strip-ansi": "6.0.0",
|
57
58
|
"@types/mocha": "9.1.0",
|
58
|
-
"@teambit/harmony.envs.core-aspect-env": "0.0.
|
59
|
+
"@teambit/harmony.envs.core-aspect-env": "0.0.78"
|
59
60
|
},
|
60
61
|
"peerDependencies": {
|
61
|
-
"chai": "
|
62
|
-
"@types/chai": "
|
62
|
+
"chai": "5.2.1",
|
63
|
+
"@types/chai": "5.2.2"
|
63
64
|
},
|
64
65
|
"license": "Apache-2.0",
|
65
66
|
"optionalDependencies": {},
|
package/uninstall.cmd.tsx
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
import { Command, CommandOptions } from '@teambit/cli';
|
1
|
+
import type { Command, CommandOptions } from '@teambit/cli';
|
2
2
|
|
3
|
-
import { InstallMain } from './install.main.runtime';
|
3
|
+
import type { InstallMain } from './install.main.runtime';
|
4
4
|
|
5
5
|
export default class UninstallCmd implements Command {
|
6
6
|
name = 'uninstall [packages...]';
|
package/update.cmd.tsx
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
import { Command, CommandOptions } from '@teambit/cli';
|
1
|
+
import type { Command, CommandOptions } from '@teambit/cli';
|
2
2
|
|
3
|
-
import { InstallMain } from './install.main.runtime';
|
3
|
+
import type { InstallMain } from './install.main.runtime';
|
4
4
|
|
5
5
|
type UpdateCmdOptions = {
|
6
6
|
yes?: boolean;
|
File without changes
|