@teambit/workspace 0.0.640 → 0.0.644
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/{__preview-1643858579620.js → __preview-1644290603845.js} +0 -0
- package/dist/envs-subcommands/envs-set.cmd.d.ts +1 -0
- package/dist/envs-subcommands/envs-set.cmd.js +12 -1
- package/dist/envs-subcommands/envs-set.cmd.js.map +1 -1
- package/dist/envs-subcommands/envs-unset.cmd.d.ts +1 -0
- package/dist/envs-subcommands/envs-unset.cmd.js +12 -1
- package/dist/envs-subcommands/envs-unset.cmd.js.map +1 -1
- package/dist/watch/watch.cmd.d.ts +1 -1
- package/dist/watch/watch.cmd.js.map +1 -1
- package/dist/watch/watcher.d.ts +10 -1
- package/dist/watch/watcher.js +1 -0
- package/dist/watch/watcher.js.map +1 -1
- package/dist/workspace.js +2 -2
- package/dist/workspace.js.map +1 -1
- package/envs-subcommands/envs-set.cmd.ts +3 -1
- package/envs-subcommands/envs-unset.cmd.ts +3 -1
- package/package-tar/teambit-workspace-0.0.644.tgz +0 -0
- package/package.json +28 -28
- package/watch/watch.cmd.tsx +1 -1
- package/watch/watcher.ts +12 -1
- package/package-tar/teambit-workspace-0.0.640.tgz +0 -0
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { Command } from '@teambit/cli';
|
|
2
2
|
import chalk from 'chalk';
|
|
3
|
+
import { PATTERN_HELP } from '@teambit/legacy/dist/constants';
|
|
3
4
|
import { Workspace } from '../workspace';
|
|
4
5
|
|
|
5
6
|
export class EnvsSetCmd implements Command {
|
|
6
7
|
name = 'set <pattern> <env>';
|
|
7
|
-
description = 'set an environment
|
|
8
|
+
description = 'set an environment for component(s)';
|
|
8
9
|
options = [];
|
|
9
10
|
group = 'development';
|
|
11
|
+
extendedDescription = `${PATTERN_HELP('env set')}`;
|
|
10
12
|
|
|
11
13
|
constructor(private workspace: Workspace) {}
|
|
12
14
|
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { Command } from '@teambit/cli';
|
|
2
|
+
import { PATTERN_HELP } from '@teambit/legacy/dist/constants';
|
|
2
3
|
import { Workspace } from '../workspace';
|
|
3
4
|
|
|
4
5
|
export class EnvsUnsetCmd implements Command {
|
|
5
|
-
name = 'unset <
|
|
6
|
+
name = 'unset <component>';
|
|
6
7
|
description = 'unset an environment from component(s)';
|
|
7
8
|
options = [];
|
|
8
9
|
group = 'development';
|
|
10
|
+
extendedDescription = `${PATTERN_HELP('env unset')}`;
|
|
9
11
|
|
|
10
12
|
constructor(private workspace: Workspace) {}
|
|
11
13
|
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/workspace",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.644",
|
|
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.644"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"lodash": "4.17.21",
|
|
@@ -41,39 +41,39 @@
|
|
|
41
41
|
"@teambit/component-id": "0.0.400",
|
|
42
42
|
"@teambit/bit-error": "0.0.394",
|
|
43
43
|
"@teambit/legacy-bit-id": "0.0.397",
|
|
44
|
-
"@teambit/logger": "0.0.
|
|
45
|
-
"@teambit/scope": "0.0.
|
|
46
|
-
"@teambit/cli": "0.0.
|
|
47
|
-
"@teambit/isolator": "0.0.
|
|
48
|
-
"@teambit/component-tree": "0.0.
|
|
44
|
+
"@teambit/logger": "0.0.529",
|
|
45
|
+
"@teambit/scope": "0.0.644",
|
|
46
|
+
"@teambit/cli": "0.0.439",
|
|
47
|
+
"@teambit/isolator": "0.0.644",
|
|
48
|
+
"@teambit/component-tree": "0.0.432",
|
|
49
49
|
"@teambit/component.ui.component-status-resolver": "0.0.490",
|
|
50
50
|
"@teambit/harmony.modules.resolved-component": "0.0.483",
|
|
51
|
-
"@teambit/dependency-resolver": "0.0.
|
|
52
|
-
"@teambit/compiler": "0.0.
|
|
53
|
-
"@teambit/component": "0.0.
|
|
54
|
-
"@teambit/graphql": "0.0.
|
|
55
|
-
"@teambit/aspect-loader": "0.0.
|
|
56
|
-
"@teambit/bundler": "0.0.
|
|
57
|
-
"@teambit/envs": "0.0.
|
|
58
|
-
"@teambit/pubsub": "0.0.
|
|
59
|
-
"@teambit/ui": "0.0.
|
|
60
|
-
"@teambit/variants": "0.0.
|
|
51
|
+
"@teambit/dependency-resolver": "0.0.644",
|
|
52
|
+
"@teambit/compiler": "0.0.644",
|
|
53
|
+
"@teambit/component": "0.0.644",
|
|
54
|
+
"@teambit/graphql": "0.0.644",
|
|
55
|
+
"@teambit/aspect-loader": "0.0.644",
|
|
56
|
+
"@teambit/bundler": "0.0.644",
|
|
57
|
+
"@teambit/envs": "0.0.644",
|
|
58
|
+
"@teambit/pubsub": "0.0.644",
|
|
59
|
+
"@teambit/ui": "0.0.644",
|
|
60
|
+
"@teambit/variants": "0.0.532",
|
|
61
61
|
"@teambit/component-issues": "0.0.45",
|
|
62
|
-
"@teambit/config": "0.0.
|
|
62
|
+
"@teambit/config": "0.0.452",
|
|
63
63
|
"@teambit/harmony.modules.requireable-component": "0.0.483",
|
|
64
|
-
"@teambit/importer": "0.0.
|
|
64
|
+
"@teambit/importer": "0.0.73",
|
|
65
65
|
"@teambit/workspace.modules.match-pattern": "0.0.488",
|
|
66
|
-
"@teambit/command-bar": "0.0.
|
|
66
|
+
"@teambit/command-bar": "0.0.644",
|
|
67
67
|
"@teambit/design.ui.surfaces.menu.link-item": "0.0.377",
|
|
68
|
-
"@teambit/graph": "0.0.
|
|
69
|
-
"@teambit/react-router": "0.0.
|
|
70
|
-
"@teambit/sidebar": "0.0.
|
|
68
|
+
"@teambit/graph": "0.0.644",
|
|
69
|
+
"@teambit/react-router": "0.0.644",
|
|
70
|
+
"@teambit/sidebar": "0.0.644",
|
|
71
71
|
"@teambit/ui-foundation.ui.main-dropdown": "0.0.485",
|
|
72
72
|
"@teambit/ui-foundation.ui.menu": "0.0.485",
|
|
73
73
|
"@teambit/ui-foundation.ui.react-router.slot-router": "0.0.487",
|
|
74
74
|
"@teambit/toolbox.time.time-format": "0.0.482",
|
|
75
75
|
"@teambit/ui-foundation.ui.hooks.use-data-query": "0.0.486",
|
|
76
|
-
"@teambit/deprecation": "0.0.
|
|
76
|
+
"@teambit/deprecation": "0.0.644",
|
|
77
77
|
"@teambit/ui-foundation.ui.constants.z-indexes": "0.0.486",
|
|
78
78
|
"@teambit/ui-foundation.ui.buttons.collapser": "0.0.192",
|
|
79
79
|
"@teambit/ui-foundation.ui.corner": "0.0.493",
|
|
@@ -81,9 +81,9 @@
|
|
|
81
81
|
"@teambit/ui-foundation.ui.top-bar": "0.0.488",
|
|
82
82
|
"@teambit/design.ui.styles.ellipsis": "0.0.347",
|
|
83
83
|
"@teambit/design.ui.styles.muted-italic": "0.0.35",
|
|
84
|
-
"@teambit/design.ui.tree": "0.0.
|
|
84
|
+
"@teambit/design.ui.tree": "0.0.5",
|
|
85
85
|
"@teambit/ui-foundation.ui.full-loader": "0.0.485",
|
|
86
|
-
"@teambit/ui-foundation.ui.side-bar": "0.0.
|
|
86
|
+
"@teambit/ui-foundation.ui.side-bar": "0.0.496",
|
|
87
87
|
"@teambit/ui-foundation.ui.tree.drawer": "0.0.489",
|
|
88
88
|
"@teambit/explorer.ui.gallery.component-grid": "0.0.485",
|
|
89
89
|
"@teambit/workspace.ui.empty-workspace": "0.0.488",
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
},
|
|
108
108
|
"peerDependencies": {
|
|
109
109
|
"@apollo/client": "^3.0.0",
|
|
110
|
-
"@teambit/legacy": "1.0.
|
|
110
|
+
"@teambit/legacy": "1.0.217",
|
|
111
111
|
"react-dom": "^16.8.0 || ^17.0.0",
|
|
112
112
|
"react": "^16.8.0 || ^17.0.0"
|
|
113
113
|
},
|
|
@@ -135,7 +135,7 @@
|
|
|
135
135
|
"react": "-"
|
|
136
136
|
},
|
|
137
137
|
"peerDependencies": {
|
|
138
|
-
"@teambit/legacy": "1.0.
|
|
138
|
+
"@teambit/legacy": "1.0.217",
|
|
139
139
|
"react-dom": "^16.8.0 || ^17.0.0",
|
|
140
140
|
"react": "^16.8.0 || ^17.0.0"
|
|
141
141
|
}
|
package/watch/watch.cmd.tsx
CHANGED
|
@@ -20,7 +20,7 @@ export type WatchCmdOpts = {
|
|
|
20
20
|
|
|
21
21
|
export class WatchCommand implements Command {
|
|
22
22
|
msgs = {
|
|
23
|
-
onAll: (event, path) => this.logger.console(`Event: "${event}". Path: ${path}`),
|
|
23
|
+
onAll: (event: string, path: string) => this.logger.console(`Event: "${event}". Path: ${path}`),
|
|
24
24
|
onStart: () => {},
|
|
25
25
|
onReady: (workspace, watchPathsSortByComponent, verbose) => {
|
|
26
26
|
clearOutdatedData();
|
package/watch/watcher.ts
CHANGED
|
@@ -23,8 +23,18 @@ import { CheckTypes } from './check-types';
|
|
|
23
23
|
|
|
24
24
|
export type WatcherProcessData = { watchProcess: ChildProcess; compilerId: BitId; componentIds: BitId[] };
|
|
25
25
|
|
|
26
|
+
export type EventMessages = {
|
|
27
|
+
onAll: Function;
|
|
28
|
+
onStart: Function;
|
|
29
|
+
onReady: Function;
|
|
30
|
+
onChange: Function;
|
|
31
|
+
onAdd: Function;
|
|
32
|
+
onUnlink: Function;
|
|
33
|
+
onError: Function;
|
|
34
|
+
};
|
|
35
|
+
|
|
26
36
|
export type WatchOptions = {
|
|
27
|
-
msgs?:
|
|
37
|
+
msgs?: EventMessages;
|
|
28
38
|
initiator?: CompilationInitiator;
|
|
29
39
|
verbose?: boolean; // print watch events to the console. (also ts-server events if spawnTSServer is true)
|
|
30
40
|
spawnTSServer?: boolean; // needed for check types and extract API/docs.
|
|
@@ -59,6 +69,7 @@ export class Watcher {
|
|
|
59
69
|
return new Promise((resolve, reject) => {
|
|
60
70
|
// prefix your command with "BIT_LOG=*" to see all watch events
|
|
61
71
|
if (process.env.BIT_LOG) {
|
|
72
|
+
// @ts-ignore
|
|
62
73
|
if (msgs?.onAll) watcher.on('all', msgs?.onAll);
|
|
63
74
|
}
|
|
64
75
|
watcher.on('ready', () => {
|
|
Binary file
|