@teambit/install 0.0.0-56a212f34f796beb85fff6007bf4052253d62ea3 → 0.0.0-57cd96e3c0549c4e0364b07c7aede32981266917
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 +25 -19
- package/dist/install.main.runtime.js +115 -12
- 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 +31 -29
- package/uninstall.cmd.tsx +2 -2
- package/update.cmd.tsx +2 -2
- /package/dist/{preview-1752086972595.js → preview-1756836784659.js} +0 -0
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,52 +1,54 @@
|
|
1
1
|
{
|
2
2
|
"name": "@teambit/install",
|
3
|
-
"version": "0.0.0-
|
3
|
+
"version": "0.0.0-57cd96e3c0549c4e0364b07c7aede32981266917",
|
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": "57cd96e3c0549c4e0364b07c7aede32981266917"
|
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",
|
18
18
|
"p-filter": "2.1.0",
|
19
19
|
"p-map-series": "2.1.0",
|
20
|
+
"yesno": "0.4.0",
|
20
21
|
"@pnpm/colorize-semver-diff": "1.0.1",
|
21
22
|
"@pnpm/semver-diff": "1.1.0",
|
22
23
|
"enquirer": "2.4.1",
|
23
24
|
"table": "6.7.3",
|
24
25
|
"@teambit/harmony": "0.4.7",
|
26
|
+
"@teambit/cli": "0.0.1271",
|
27
|
+
"@teambit/logger": "0.0.1364",
|
28
|
+
"@teambit/component-issues": "0.0.163",
|
29
|
+
"@teambit/component-package-version": "0.0.442",
|
30
|
+
"@teambit/component.sources": "0.0.124",
|
31
|
+
"@teambit/dependencies.fs.linked-dependencies": "0.0.37",
|
32
|
+
"@teambit/pkg.modules.component-package-name": "0.0.79",
|
33
|
+
"@teambit/variants": "0.0.1538",
|
34
|
+
"@teambit/workspace.modules.node-modules-linker": "0.0.300",
|
25
35
|
"@teambit/workspace.root-components": "1.0.0",
|
26
36
|
"@teambit/bit-error": "0.0.404",
|
27
|
-
"@teambit/
|
28
|
-
"@teambit/dependency-resolver": "0.0.0-
|
29
|
-
"@teambit/
|
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/issues": "0.0.0-964c3d88567e634b61eab99a849858f53c599f64",
|
43
|
-
"@teambit/objects": "0.0.0-bb8e8826573800e34c3a184d09fe0f56d8a1f654",
|
44
|
-
"@teambit/pkg.modules.component-package-name": "0.0.61",
|
45
|
-
"@teambit/ui": "0.0.0-1116519d047e754a382e4b31ac5b93875fff65dc",
|
46
|
-
"@teambit/variants": "0.0.0-827c7637234d30373dcfa17d7a3729d8f9529960",
|
47
|
-
"@teambit/workspace-config-files": "0.0.0-85458d7a56585721c68099eed286d68f2227845d",
|
48
|
-
"@teambit/workspace.modules.node-modules-linker": "0.0.282",
|
49
|
-
"@teambit/toolbox.time.time-format": "0.0.500"
|
37
|
+
"@teambit/toolbox.time.time-format": "0.0.502",
|
38
|
+
"@teambit/dependency-resolver": "0.0.0-2b0402910aba5b4d8ba8fa200dbfbf89190e5c61",
|
39
|
+
"@teambit/workspace": "0.0.0-a45d4e607750685791e2ca909f10ee6d7f6b024f",
|
40
|
+
"@teambit/application": "0.0.0-549a73690dc6fc94b14aa1e2c3ff57bdcdb1d1eb",
|
41
|
+
"@teambit/aspect-loader": "0.0.0-0f40dea4d5e337bea9c9c4e89af3d52df2979f2c",
|
42
|
+
"@teambit/bundler": "0.0.0-da5654ebd82b558ac953f39f0d3157b4451aea9a",
|
43
|
+
"@teambit/compiler": "0.0.0-623b7f3b1cf249fc9f257c1be3180bd4ebdde359",
|
44
|
+
"@teambit/component": "0.0.0-89e5a764c3899bba5fef6d3df78a420a5761e1e0",
|
45
|
+
"@teambit/envs": "0.0.0-b67500b3b81f0508816b8134928b2fbf45aebcbb",
|
46
|
+
"@teambit/generator": "0.0.0-4311ac77a65dc4e169429bc65516fffd51d4780c",
|
47
|
+
"@teambit/ipc-events": "0.0.0-63a1ff39b19d0e744a60b2bb085b2e74b2d184dc",
|
48
|
+
"@teambit/issues": "0.0.0-d85933796bc6453291afaef7b972fddee913a1a7",
|
49
|
+
"@teambit/objects": "0.0.0-1f832af1f190cc234026bf576866f87e85d750d8",
|
50
|
+
"@teambit/ui": "0.0.0-a11784cca7066696134f14c8cb25abe337e4c7c9",
|
51
|
+
"@teambit/workspace-config-files": "0.0.0-197d5a4ad809c6d6aef672b5cd92353b1bdd5a0f"
|
50
52
|
},
|
51
53
|
"devDependencies": {
|
52
54
|
"@types/fs-extra": "9.0.7",
|
@@ -54,11 +56,11 @@
|
|
54
56
|
"@types/object-hash": "1.3.4",
|
55
57
|
"strip-ansi": "6.0.0",
|
56
58
|
"@types/mocha": "9.1.0",
|
57
|
-
"@teambit/harmony.envs.core-aspect-env": "0.0.
|
59
|
+
"@teambit/harmony.envs.core-aspect-env": "0.0.78"
|
58
60
|
},
|
59
61
|
"peerDependencies": {
|
60
|
-
"chai": "
|
61
|
-
"@types/chai": "
|
62
|
+
"chai": "5.2.1",
|
63
|
+
"@types/chai": "5.2.2"
|
62
64
|
},
|
63
65
|
"license": "Apache-2.0",
|
64
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
|