@teambit/workspace 0.0.591 → 0.0.595
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/bit-map.d.ts +25 -0
- package/dist/bit-map.js +80 -0
- package/dist/bit-map.js.map +1 -0
- package/dist/install.cmd.d.ts +1 -0
- package/dist/install.cmd.js +4 -3
- package/dist/install.cmd.js.map +1 -1
- package/dist/workspace.d.ts +7 -7
- package/dist/workspace.js +99 -83
- package/dist/workspace.js.map +1 -1
- package/install.cmd.tsx +4 -1
- package/package-tar/teambit-workspace-0.0.595.tgz +0 -0
- package/package.json +52 -52
- package/package-tar/teambit-workspace-0.0.591.tgz +0 -0
package/install.cmd.tsx
CHANGED
|
@@ -12,6 +12,7 @@ type InstallCmdOptions = {
|
|
|
12
12
|
skipImport: boolean;
|
|
13
13
|
updateExisting: boolean;
|
|
14
14
|
savePrefix: string;
|
|
15
|
+
addMissingPeers: boolean;
|
|
15
16
|
};
|
|
16
17
|
|
|
17
18
|
export default class InstallCmd implements Command {
|
|
@@ -27,6 +28,7 @@ export default class InstallCmd implements Command {
|
|
|
27
28
|
['', 'save-prefix [savePrefix]', 'set the prefix to use when adding dependency to workspace.jsonc'],
|
|
28
29
|
['', 'skip-dedupe [skipDedupe]', 'do not dedupe dependencies on installation'],
|
|
29
30
|
['', 'skip-import [skipImport]', 'do not import bit objects post installation'],
|
|
31
|
+
['', 'add-missing-peers [addMissingPeers]', 'install all missing peer dependencies'],
|
|
30
32
|
] as CommandOptions;
|
|
31
33
|
|
|
32
34
|
constructor(
|
|
@@ -46,11 +48,12 @@ export default class InstallCmd implements Command {
|
|
|
46
48
|
this.logger.console(`Resolving component dependencies for workspace: '${chalk.cyan(this.workspace.name)}'`);
|
|
47
49
|
const installOpts: WorkspaceInstallOptions = {
|
|
48
50
|
variants: options.variants,
|
|
49
|
-
lifecycleType: options.type,
|
|
51
|
+
lifecycleType: options.addMissingPeers ? 'peer' : options.type,
|
|
50
52
|
dedupe: !options.skipDedupe,
|
|
51
53
|
import: !options.skipImport,
|
|
52
54
|
updateExisting: options.updateExisting,
|
|
53
55
|
savePrefix: options.savePrefix,
|
|
56
|
+
addMissingPeers: options.addMissingPeers,
|
|
54
57
|
};
|
|
55
58
|
const components = await this.workspace.install(packages, installOpts);
|
|
56
59
|
const endTime = Date.now();
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/workspace",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.595",
|
|
4
4
|
"homepage": "https://bit.dev/teambit/workspace/workspace",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "teambit.workspace",
|
|
8
8
|
"name": "workspace",
|
|
9
|
-
"version": "0.0.
|
|
9
|
+
"version": "0.0.595"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"lodash.compact": "3.0.1",
|
|
13
12
|
"lodash": "4.17.21",
|
|
13
|
+
"lodash.compact": "3.0.1",
|
|
14
14
|
"p-map-series": "2.1.0",
|
|
15
15
|
"chalk": "2.4.2",
|
|
16
16
|
"ink": "3.0.8",
|
|
@@ -38,59 +38,59 @@
|
|
|
38
38
|
"@teambit/base-ui.surfaces.split-pane.hover-splitter": "1.0.0",
|
|
39
39
|
"@teambit/base-ui.surfaces.split-pane.split-pane": "1.0.0",
|
|
40
40
|
"@teambit/base-ui.graph.tree.recursive-tree": "1.0.0",
|
|
41
|
-
"@teambit/
|
|
42
|
-
"@teambit/
|
|
43
|
-
"@teambit/
|
|
44
|
-
"@teambit/
|
|
45
|
-
"@teambit/
|
|
46
|
-
"@teambit/
|
|
47
|
-
"@teambit/
|
|
48
|
-
"@teambit/component
|
|
49
|
-
"@teambit/
|
|
50
|
-
"@teambit/
|
|
51
|
-
"@teambit/
|
|
52
|
-
"@teambit/
|
|
53
|
-
"@teambit/
|
|
54
|
-
"@teambit/
|
|
55
|
-
"@teambit/
|
|
56
|
-
"@teambit/
|
|
57
|
-
"@teambit/
|
|
58
|
-
"@teambit/
|
|
59
|
-
"@teambit/
|
|
60
|
-
"@teambit/
|
|
61
|
-
"@teambit/
|
|
62
|
-
"@teambit/
|
|
63
|
-
"@teambit/
|
|
64
|
-
"@teambit/
|
|
65
|
-
"@teambit/
|
|
41
|
+
"@teambit/component-id": "0.0.398",
|
|
42
|
+
"@teambit/bit-error": "0.0.394",
|
|
43
|
+
"@teambit/legacy-bit-id": "0.0.397",
|
|
44
|
+
"@teambit/logger": "0.0.497",
|
|
45
|
+
"@teambit/scope": "0.0.595",
|
|
46
|
+
"@teambit/cli": "0.0.409",
|
|
47
|
+
"@teambit/isolator": "0.0.595",
|
|
48
|
+
"@teambit/component-tree": "0.0.395",
|
|
49
|
+
"@teambit/component.ui.component-status-resolver": "0.0.489",
|
|
50
|
+
"@teambit/harmony.modules.resolved-component": "0.0.483",
|
|
51
|
+
"@teambit/dependency-resolver": "0.0.595",
|
|
52
|
+
"@teambit/compiler": "0.0.595",
|
|
53
|
+
"@teambit/component": "0.0.595",
|
|
54
|
+
"@teambit/graphql": "0.0.595",
|
|
55
|
+
"@teambit/aspect-loader": "0.0.595",
|
|
56
|
+
"@teambit/bundler": "0.0.595",
|
|
57
|
+
"@teambit/envs": "0.0.595",
|
|
58
|
+
"@teambit/pubsub": "0.0.595",
|
|
59
|
+
"@teambit/ui": "0.0.595",
|
|
60
|
+
"@teambit/variants": "0.0.499",
|
|
61
|
+
"@teambit/component-issues": "0.0.44",
|
|
62
|
+
"@teambit/config": "0.0.421",
|
|
63
|
+
"@teambit/harmony.modules.requireable-component": "0.0.483",
|
|
64
|
+
"@teambit/importer": "0.0.36",
|
|
65
|
+
"@teambit/workspace.modules.match-pattern": "0.0.487",
|
|
66
|
+
"@teambit/command-bar": "0.0.595",
|
|
66
67
|
"@teambit/design.ui.surfaces.menu.link-item": "0.0.374",
|
|
67
|
-
"@teambit/graph": "0.0.
|
|
68
|
-
"@teambit/react-router": "0.0.
|
|
69
|
-
"@teambit/sidebar": "0.0.
|
|
70
|
-
"@teambit/ui-foundation.ui.main-dropdown": "0.0.
|
|
71
|
-
"@teambit/ui-foundation.ui.menu": "0.0.
|
|
72
|
-
"@teambit/ui-foundation.ui.react-router.slot-router": "0.0.
|
|
73
|
-
"@teambit/toolbox.time.time-format": "0.0.
|
|
74
|
-
"@teambit/
|
|
75
|
-
"@teambit/
|
|
76
|
-
"@teambit/
|
|
77
|
-
"@teambit/ui-foundation.ui.
|
|
78
|
-
"@teambit/ui-foundation.ui.
|
|
79
|
-
"@teambit/ui-foundation.ui.
|
|
80
|
-
"@teambit/ui-foundation.ui.
|
|
81
|
-
"@teambit/ui-foundation.ui.top-bar": "0.0.486",
|
|
68
|
+
"@teambit/graph": "0.0.595",
|
|
69
|
+
"@teambit/react-router": "0.0.595",
|
|
70
|
+
"@teambit/sidebar": "0.0.595",
|
|
71
|
+
"@teambit/ui-foundation.ui.main-dropdown": "0.0.485",
|
|
72
|
+
"@teambit/ui-foundation.ui.menu": "0.0.485",
|
|
73
|
+
"@teambit/ui-foundation.ui.react-router.slot-router": "0.0.487",
|
|
74
|
+
"@teambit/toolbox.time.time-format": "0.0.482",
|
|
75
|
+
"@teambit/ui-foundation.ui.hooks.use-data-query": "0.0.486",
|
|
76
|
+
"@teambit/deprecation": "0.0.595",
|
|
77
|
+
"@teambit/ui-foundation.ui.constants.z-indexes": "0.0.486",
|
|
78
|
+
"@teambit/ui-foundation.ui.buttons.collapser": "0.0.191",
|
|
79
|
+
"@teambit/ui-foundation.ui.corner": "0.0.492",
|
|
80
|
+
"@teambit/ui-foundation.ui.notifications.notification-context": "0.0.486",
|
|
81
|
+
"@teambit/ui-foundation.ui.top-bar": "0.0.488",
|
|
82
82
|
"@teambit/design.ui.styles.ellipsis": "0.0.346",
|
|
83
83
|
"@teambit/design.ui.styles.muted-italic": "0.0.35",
|
|
84
|
-
"@teambit/ui-foundation.ui.full-loader": "0.0.
|
|
85
|
-
"@teambit/ui-foundation.ui.side-bar": "0.0.
|
|
86
|
-
"@teambit/ui-foundation.ui.tree.drawer": "0.0.
|
|
87
|
-
"@teambit/explorer.ui.gallery.component-grid": "0.0.
|
|
88
|
-
"@teambit/workspace.ui.empty-workspace": "0.0.
|
|
89
|
-
"@teambit/workspace.ui.workspace-component-card": "0.0.
|
|
84
|
+
"@teambit/ui-foundation.ui.full-loader": "0.0.485",
|
|
85
|
+
"@teambit/ui-foundation.ui.side-bar": "0.0.491",
|
|
86
|
+
"@teambit/ui-foundation.ui.tree.drawer": "0.0.485",
|
|
87
|
+
"@teambit/explorer.ui.gallery.component-grid": "0.0.485",
|
|
88
|
+
"@teambit/workspace.ui.empty-workspace": "0.0.487",
|
|
89
|
+
"@teambit/workspace.ui.workspace-component-card": "0.0.489"
|
|
90
90
|
},
|
|
91
91
|
"devDependencies": {
|
|
92
|
-
"@types/lodash.compact": "3.0.6",
|
|
93
92
|
"@types/lodash": "4.14.165",
|
|
93
|
+
"@types/lodash.compact": "3.0.6",
|
|
94
94
|
"@types/react": "^17.0.8",
|
|
95
95
|
"@types/semver": "7.3.4",
|
|
96
96
|
"@types/fs-extra": "9.0.7",
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
},
|
|
107
107
|
"peerDependencies": {
|
|
108
108
|
"@apollo/client": "^3.0.0",
|
|
109
|
-
"@teambit/legacy": "1.0.
|
|
109
|
+
"@teambit/legacy": "1.0.196",
|
|
110
110
|
"react-dom": "^16.8.0 || ^17.0.0",
|
|
111
111
|
"react": "^16.8.0 || ^17.0.0"
|
|
112
112
|
},
|
|
@@ -134,7 +134,7 @@
|
|
|
134
134
|
"react": "-"
|
|
135
135
|
},
|
|
136
136
|
"peerDependencies": {
|
|
137
|
-
"@teambit/legacy": "1.0.
|
|
137
|
+
"@teambit/legacy": "1.0.196",
|
|
138
138
|
"react-dom": "^16.8.0 || ^17.0.0",
|
|
139
139
|
"react": "^16.8.0 || ^17.0.0"
|
|
140
140
|
}
|
|
Binary file
|