@teambit/tracker 1.0.228 → 1.0.229
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/artifacts/__bit_junit.xml +1 -1
- package/artifacts/schema.json +71 -21
- package/dist/add-cmd.d.ts +34 -0
- package/dist/add-components.d.ts +143 -0
- package/dist/determine-main-file.d.ts +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/tracker.aspect.d.ts +2 -0
- package/dist/tracker.main.runtime.d.ts +54 -0
- package/package.json +7 -7
- package/tsconfig.json +1 -16
- /package/dist/{preview-1712805335812.js → preview-1712822929999.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
2
|
<testsuites tests="0" failures="0" errors="0" skipped="0">
|
|
3
|
-
<testsuite name="teambit.component/tracker@1.0.
|
|
3
|
+
<testsuite name="teambit.component/tracker@1.0.229" tests="0" failures="0" errors="0" skipped="0"/>
|
|
4
4
|
</testsuites>
|
package/artifacts/schema.json
CHANGED
|
@@ -48,7 +48,11 @@
|
|
|
48
48
|
"line": 23,
|
|
49
49
|
"character": 34
|
|
50
50
|
},
|
|
51
|
-
"name": "Workspace"
|
|
51
|
+
"name": "Workspace",
|
|
52
|
+
"componentId": {
|
|
53
|
+
"scope": "teambit.workspace",
|
|
54
|
+
"name": "workspace"
|
|
55
|
+
}
|
|
52
56
|
},
|
|
53
57
|
"isOptional": false,
|
|
54
58
|
"isSpread": false
|
|
@@ -68,7 +72,11 @@
|
|
|
68
72
|
"line": 23,
|
|
69
73
|
"character": 61
|
|
70
74
|
},
|
|
71
|
-
"name": "Logger"
|
|
75
|
+
"name": "Logger",
|
|
76
|
+
"componentId": {
|
|
77
|
+
"scope": "teambit.harmony",
|
|
78
|
+
"name": "logger"
|
|
79
|
+
}
|
|
72
80
|
},
|
|
73
81
|
"isOptional": false,
|
|
74
82
|
"isSpread": false
|
|
@@ -120,7 +128,8 @@
|
|
|
120
128
|
"line": 30,
|
|
121
129
|
"character": 26
|
|
122
130
|
},
|
|
123
|
-
"name": "TrackData"
|
|
131
|
+
"name": "TrackData",
|
|
132
|
+
"internalFilePath": "tracker.main.runtime.ts"
|
|
124
133
|
},
|
|
125
134
|
"isOptional": false,
|
|
126
135
|
"isSpread": false
|
|
@@ -142,7 +151,8 @@
|
|
|
142
151
|
"line": 30,
|
|
143
152
|
"character": 46
|
|
144
153
|
},
|
|
145
|
-
"name": "TrackResult"
|
|
154
|
+
"name": "TrackResult",
|
|
155
|
+
"internalFilePath": "tracker.main.runtime.ts"
|
|
146
156
|
}
|
|
147
157
|
]
|
|
148
158
|
},
|
|
@@ -175,7 +185,8 @@
|
|
|
175
185
|
"line": 52,
|
|
176
186
|
"character": 29
|
|
177
187
|
},
|
|
178
|
-
"name": "AddProps"
|
|
188
|
+
"name": "AddProps",
|
|
189
|
+
"internalFilePath": "add-components.ts"
|
|
179
190
|
},
|
|
180
191
|
"isOptional": false,
|
|
181
192
|
"isSpread": false
|
|
@@ -197,7 +208,8 @@
|
|
|
197
208
|
"line": 52,
|
|
198
209
|
"character": 48
|
|
199
210
|
},
|
|
200
|
-
"name": "AddActionResults"
|
|
211
|
+
"name": "AddActionResults",
|
|
212
|
+
"internalFilePath": "add-components.ts"
|
|
201
213
|
}
|
|
202
214
|
]
|
|
203
215
|
},
|
|
@@ -403,7 +415,11 @@
|
|
|
403
415
|
"line": 117,
|
|
404
416
|
"character": 56
|
|
405
417
|
},
|
|
406
|
-
"name": "CLIMain"
|
|
418
|
+
"name": "CLIMain",
|
|
419
|
+
"componentId": {
|
|
420
|
+
"scope": "teambit.harmony",
|
|
421
|
+
"name": "cli"
|
|
422
|
+
}
|
|
407
423
|
},
|
|
408
424
|
{
|
|
409
425
|
"__schema": "TypeRefSchema",
|
|
@@ -412,7 +428,11 @@
|
|
|
412
428
|
"line": 117,
|
|
413
429
|
"character": 65
|
|
414
430
|
},
|
|
415
|
-
"name": "Workspace"
|
|
431
|
+
"name": "Workspace",
|
|
432
|
+
"componentId": {
|
|
433
|
+
"scope": "teambit.workspace",
|
|
434
|
+
"name": "workspace"
|
|
435
|
+
}
|
|
416
436
|
},
|
|
417
437
|
{
|
|
418
438
|
"__schema": "TypeRefSchema",
|
|
@@ -421,7 +441,11 @@
|
|
|
421
441
|
"line": 117,
|
|
422
442
|
"character": 76
|
|
423
443
|
},
|
|
424
|
-
"name": "LoggerMain"
|
|
444
|
+
"name": "LoggerMain",
|
|
445
|
+
"componentId": {
|
|
446
|
+
"scope": "teambit.harmony",
|
|
447
|
+
"name": "logger"
|
|
448
|
+
}
|
|
425
449
|
}
|
|
426
450
|
]
|
|
427
451
|
},
|
|
@@ -630,7 +654,8 @@
|
|
|
630
654
|
"line": 15,
|
|
631
655
|
"character": 12
|
|
632
656
|
},
|
|
633
|
-
"name": "PathOsBasedRelative"
|
|
657
|
+
"name": "PathOsBasedRelative",
|
|
658
|
+
"packageName": "@teambit/legacy/dist/utils/path"
|
|
634
659
|
},
|
|
635
660
|
{
|
|
636
661
|
"__schema": "TypeRefSchema",
|
|
@@ -639,7 +664,8 @@
|
|
|
639
664
|
"line": 15,
|
|
640
665
|
"character": 34
|
|
641
666
|
},
|
|
642
|
-
"name": "PathOsBasedAbsolute"
|
|
667
|
+
"name": "PathOsBasedAbsolute",
|
|
668
|
+
"packageName": "@teambit/legacy/dist/utils/path"
|
|
643
669
|
}
|
|
644
670
|
]
|
|
645
671
|
},
|
|
@@ -801,7 +827,11 @@
|
|
|
801
827
|
"line": 23,
|
|
802
828
|
"character": 34
|
|
803
829
|
},
|
|
804
|
-
"name": "Workspace"
|
|
830
|
+
"name": "Workspace",
|
|
831
|
+
"componentId": {
|
|
832
|
+
"scope": "teambit.workspace",
|
|
833
|
+
"name": "workspace"
|
|
834
|
+
}
|
|
805
835
|
},
|
|
806
836
|
"isOptional": false,
|
|
807
837
|
"isSpread": false
|
|
@@ -821,7 +851,11 @@
|
|
|
821
851
|
"line": 23,
|
|
822
852
|
"character": 61
|
|
823
853
|
},
|
|
824
|
-
"name": "Logger"
|
|
854
|
+
"name": "Logger",
|
|
855
|
+
"componentId": {
|
|
856
|
+
"scope": "teambit.harmony",
|
|
857
|
+
"name": "logger"
|
|
858
|
+
}
|
|
825
859
|
},
|
|
826
860
|
"isOptional": false,
|
|
827
861
|
"isSpread": false
|
|
@@ -873,7 +907,8 @@
|
|
|
873
907
|
"line": 30,
|
|
874
908
|
"character": 26
|
|
875
909
|
},
|
|
876
|
-
"name": "TrackData"
|
|
910
|
+
"name": "TrackData",
|
|
911
|
+
"internalFilePath": "tracker.main.runtime.ts"
|
|
877
912
|
},
|
|
878
913
|
"isOptional": false,
|
|
879
914
|
"isSpread": false
|
|
@@ -895,7 +930,8 @@
|
|
|
895
930
|
"line": 30,
|
|
896
931
|
"character": 46
|
|
897
932
|
},
|
|
898
|
-
"name": "TrackResult"
|
|
933
|
+
"name": "TrackResult",
|
|
934
|
+
"internalFilePath": "tracker.main.runtime.ts"
|
|
899
935
|
}
|
|
900
936
|
]
|
|
901
937
|
},
|
|
@@ -928,7 +964,8 @@
|
|
|
928
964
|
"line": 52,
|
|
929
965
|
"character": 29
|
|
930
966
|
},
|
|
931
|
-
"name": "AddProps"
|
|
967
|
+
"name": "AddProps",
|
|
968
|
+
"internalFilePath": "add-components.ts"
|
|
932
969
|
},
|
|
933
970
|
"isOptional": false,
|
|
934
971
|
"isSpread": false
|
|
@@ -950,7 +987,8 @@
|
|
|
950
987
|
"line": 52,
|
|
951
988
|
"character": 48
|
|
952
989
|
},
|
|
953
|
-
"name": "AddActionResults"
|
|
990
|
+
"name": "AddActionResults",
|
|
991
|
+
"internalFilePath": "add-components.ts"
|
|
954
992
|
}
|
|
955
993
|
]
|
|
956
994
|
},
|
|
@@ -1156,7 +1194,11 @@
|
|
|
1156
1194
|
"line": 117,
|
|
1157
1195
|
"character": 56
|
|
1158
1196
|
},
|
|
1159
|
-
"name": "CLIMain"
|
|
1197
|
+
"name": "CLIMain",
|
|
1198
|
+
"componentId": {
|
|
1199
|
+
"scope": "teambit.harmony",
|
|
1200
|
+
"name": "cli"
|
|
1201
|
+
}
|
|
1160
1202
|
},
|
|
1161
1203
|
{
|
|
1162
1204
|
"__schema": "TypeRefSchema",
|
|
@@ -1165,7 +1207,11 @@
|
|
|
1165
1207
|
"line": 117,
|
|
1166
1208
|
"character": 65
|
|
1167
1209
|
},
|
|
1168
|
-
"name": "Workspace"
|
|
1210
|
+
"name": "Workspace",
|
|
1211
|
+
"componentId": {
|
|
1212
|
+
"scope": "teambit.workspace",
|
|
1213
|
+
"name": "workspace"
|
|
1214
|
+
}
|
|
1169
1215
|
},
|
|
1170
1216
|
{
|
|
1171
1217
|
"__schema": "TypeRefSchema",
|
|
@@ -1174,7 +1220,11 @@
|
|
|
1174
1220
|
"line": 117,
|
|
1175
1221
|
"character": 76
|
|
1176
1222
|
},
|
|
1177
|
-
"name": "LoggerMain"
|
|
1223
|
+
"name": "LoggerMain",
|
|
1224
|
+
"componentId": {
|
|
1225
|
+
"scope": "teambit.harmony",
|
|
1226
|
+
"name": "logger"
|
|
1227
|
+
}
|
|
1178
1228
|
}
|
|
1179
1229
|
]
|
|
1180
1230
|
},
|
|
@@ -1265,7 +1315,7 @@
|
|
|
1265
1315
|
"componentId": {
|
|
1266
1316
|
"scope": "teambit.component",
|
|
1267
1317
|
"name": "tracker",
|
|
1268
|
-
"version": "1.0.
|
|
1318
|
+
"version": "1.0.229"
|
|
1269
1319
|
},
|
|
1270
1320
|
"taggedModuleExports": []
|
|
1271
1321
|
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Command, CommandOptions } from '@teambit/cli';
|
|
2
|
+
import { PathLinux } from '@teambit/legacy/dist/utils/path';
|
|
3
|
+
import { Warnings } from './add-components';
|
|
4
|
+
import { TrackerMain } from './tracker.main.runtime';
|
|
5
|
+
type AddFlags = {
|
|
6
|
+
id: string | null | undefined;
|
|
7
|
+
main: string | null | undefined;
|
|
8
|
+
namespace: string | null | undefined;
|
|
9
|
+
scope?: string;
|
|
10
|
+
env?: string;
|
|
11
|
+
override: boolean;
|
|
12
|
+
};
|
|
13
|
+
type AddResults = {
|
|
14
|
+
addedComponents: Array<{
|
|
15
|
+
id: string;
|
|
16
|
+
files: PathLinux[];
|
|
17
|
+
}>;
|
|
18
|
+
warnings: Warnings;
|
|
19
|
+
};
|
|
20
|
+
export declare class AddCmd implements Command {
|
|
21
|
+
private tracker;
|
|
22
|
+
name: string;
|
|
23
|
+
description: string;
|
|
24
|
+
group: string;
|
|
25
|
+
extendedDescription: string;
|
|
26
|
+
helpUrl: string;
|
|
27
|
+
alias: string;
|
|
28
|
+
options: CommandOptions;
|
|
29
|
+
loader: boolean;
|
|
30
|
+
constructor(tracker: TrackerMain);
|
|
31
|
+
report([paths]: [string[]], addFlags: AddFlags): Promise<string>;
|
|
32
|
+
json([paths]: [string[]], { id, main, namespace, scope, env, override }: AddFlags): Promise<AddResults>;
|
|
33
|
+
}
|
|
34
|
+
export {};
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import { ComponentID } from '@teambit/component-id';
|
|
2
|
+
import BitMap from '@teambit/legacy/dist/consumer/bit-map';
|
|
3
|
+
import Consumer from '@teambit/legacy/dist/consumer/consumer';
|
|
4
|
+
import { PathLinux, PathOsBased } from '@teambit/legacy/dist/utils/path';
|
|
5
|
+
import ComponentMap, { ComponentMapFile, Config } from '@teambit/legacy/dist/consumer/bit-map/component-map';
|
|
6
|
+
import { Workspace } from '@teambit/workspace';
|
|
7
|
+
export type AddResult = {
|
|
8
|
+
id: ComponentID;
|
|
9
|
+
files: ComponentMapFile[];
|
|
10
|
+
};
|
|
11
|
+
export type Warnings = {
|
|
12
|
+
alreadyUsed: Record<string, any>;
|
|
13
|
+
emptyDirectory: string[];
|
|
14
|
+
existInScope: ComponentID[];
|
|
15
|
+
};
|
|
16
|
+
export type AddActionResults = {
|
|
17
|
+
addedComponents: AddResult[];
|
|
18
|
+
warnings: Warnings;
|
|
19
|
+
};
|
|
20
|
+
export type PathOrDSL = PathOsBased | string;
|
|
21
|
+
type PathsStats = {};
|
|
22
|
+
export type AddedComponent = {
|
|
23
|
+
componentId: ComponentID;
|
|
24
|
+
files: ComponentMapFile[];
|
|
25
|
+
mainFile?: PathOsBased | null | undefined;
|
|
26
|
+
trackDir: PathOsBased;
|
|
27
|
+
idFromPath: {
|
|
28
|
+
name: string;
|
|
29
|
+
namespace: string;
|
|
30
|
+
} | null | undefined;
|
|
31
|
+
immediateDir?: string;
|
|
32
|
+
};
|
|
33
|
+
export type AddProps = {
|
|
34
|
+
componentPaths: PathOsBased[];
|
|
35
|
+
id?: string;
|
|
36
|
+
main?: PathOsBased;
|
|
37
|
+
namespace?: string;
|
|
38
|
+
override: boolean;
|
|
39
|
+
trackDirFeature?: boolean;
|
|
40
|
+
defaultScope?: string;
|
|
41
|
+
config?: Config;
|
|
42
|
+
shouldHandleOutOfSync?: boolean;
|
|
43
|
+
env?: string;
|
|
44
|
+
};
|
|
45
|
+
export type AddContext = {
|
|
46
|
+
workspace: Workspace;
|
|
47
|
+
};
|
|
48
|
+
export default class AddComponents {
|
|
49
|
+
workspace: Workspace;
|
|
50
|
+
consumer: Consumer;
|
|
51
|
+
bitMap: BitMap;
|
|
52
|
+
componentPaths: PathOsBased[];
|
|
53
|
+
id: string | null | undefined;
|
|
54
|
+
main: PathOsBased | null | undefined;
|
|
55
|
+
namespace: string | null | undefined;
|
|
56
|
+
override: boolean;
|
|
57
|
+
trackDirFeature: boolean | null | undefined;
|
|
58
|
+
warnings: Warnings;
|
|
59
|
+
ignoreList: string[];
|
|
60
|
+
gitIgnore: any;
|
|
61
|
+
addedComponents: AddResult[];
|
|
62
|
+
defaultScope?: string;
|
|
63
|
+
config?: Config;
|
|
64
|
+
shouldHandleOutOfSync?: boolean;
|
|
65
|
+
constructor(context: AddContext, addProps: AddProps);
|
|
66
|
+
/**
|
|
67
|
+
* @param {string[]} files - array of file-paths from which it should search for the dsl patterns.
|
|
68
|
+
* @param {*} filesWithPotentialDsl - array of file-path which may have DSL patterns
|
|
69
|
+
*
|
|
70
|
+
* @returns array of file-paths from 'files' parameter that match the patterns from 'filesWithPotentialDsl' parameter
|
|
71
|
+
*/
|
|
72
|
+
getFilesAccordingToDsl(files: PathLinux[], filesWithPotentialDsl: PathOrDSL[]): Promise<PathLinux[]>;
|
|
73
|
+
/**
|
|
74
|
+
* for imported component, the package.json in the root directory is a bit-generated file and as
|
|
75
|
+
* such, it should be ignored
|
|
76
|
+
*/
|
|
77
|
+
_isPackageJsonOnRootDir(pathRelativeToConsumerRoot: PathLinux, componentMap: ComponentMap): boolean;
|
|
78
|
+
/**
|
|
79
|
+
* imported components might have wrapDir, when they do, files should not be added outside of
|
|
80
|
+
* that wrapDir
|
|
81
|
+
*/
|
|
82
|
+
_isOutsideOfWrapDir(pathRelativeToConsumerRoot: PathLinux, componentMap: ComponentMap): boolean;
|
|
83
|
+
/**
|
|
84
|
+
* Add or update existing (imported and new) component according to bitmap
|
|
85
|
+
* there are 3 options:
|
|
86
|
+
* 1. a user is adding a new component. there is no record for this component in bit.map
|
|
87
|
+
* 2. a user is updating an existing component. there is a record for this component in bit.map
|
|
88
|
+
* 3. some or all the files of this component were previously added as another component-id.
|
|
89
|
+
*/
|
|
90
|
+
addOrUpdateComponentInBitMap(component: AddedComponent): Promise<AddResult | null | undefined>;
|
|
91
|
+
/**
|
|
92
|
+
* current componentFiles are relative to the workspace. we want them relative to the rootDir.
|
|
93
|
+
*/
|
|
94
|
+
_updateFilesAccordingToExistingRootDir(foundComponentFromBitMap: ComponentMap, componentFiles: ComponentMapFile[], component: AddedComponent): void;
|
|
95
|
+
/**
|
|
96
|
+
* the risk with merging the currently added files with the existing bitMap files is overriding
|
|
97
|
+
* the `test` property. e.g. the component directory is re-added without adding the tests flag to
|
|
98
|
+
* track new files in that directory. in this case, we want to preserve the `test` property.
|
|
99
|
+
*/
|
|
100
|
+
_mergeFilesWithExistingComponentMapFiles(componentFiles: ComponentMapFile[], existingComponentMapFile: ComponentMapFile[]): ComponentMapFile[];
|
|
101
|
+
/**
|
|
102
|
+
* if an existing file is for example uppercase and the new file is lowercase it has different
|
|
103
|
+
* behavior according to the OS. some OS are case sensitive, some are not.
|
|
104
|
+
* it's safer to avoid saving both files and instead, replacing the old file with the new one.
|
|
105
|
+
* in case a file has replaced and it is also a mainFile, replace the mainFile as well
|
|
106
|
+
*/
|
|
107
|
+
_updateFilesWithCurrentLetterCases(currentComponentMap: ComponentMap, newFiles: ComponentMapFile[]): void;
|
|
108
|
+
/**
|
|
109
|
+
* if the id is already saved in bitmap file, it might have more data (such as scope, version)
|
|
110
|
+
* use that id instead.
|
|
111
|
+
*/
|
|
112
|
+
private _getIdAccordingToExistingComponent;
|
|
113
|
+
_getIdAccordingToTrackDir(dir: PathOsBased): ComponentID | null | undefined;
|
|
114
|
+
/**
|
|
115
|
+
* used for updating main file if exists or doesn't exists
|
|
116
|
+
*/
|
|
117
|
+
_addMainFileToFiles(files: ComponentMapFile[]): PathOsBased | null | undefined;
|
|
118
|
+
_findMainFileInFiles(mainFile: string, files: ComponentMapFile[]): ComponentMapFile | undefined;
|
|
119
|
+
private getDefaultScope;
|
|
120
|
+
/**
|
|
121
|
+
* given the component paths, prepare the id, mainFile and files to be added later on to bitmap
|
|
122
|
+
* the id of the component is either entered by the user or, if not entered, concluded by the path.
|
|
123
|
+
* e.g. bar/foo.js, the id would be bar/foo.
|
|
124
|
+
* in case bitmap has already the same id, the complete id is taken from bitmap (see _getIdAccordingToExistingComponent)
|
|
125
|
+
*/
|
|
126
|
+
addOneComponent(componentPath: PathOsBased): Promise<AddedComponent>;
|
|
127
|
+
getIgnoreList(): string[];
|
|
128
|
+
add(): Promise<AddActionResults>;
|
|
129
|
+
linkComponents(ids: ComponentID[]): Promise<void>;
|
|
130
|
+
addMultipleComponents(componentPathsStats: PathsStats): Promise<void>;
|
|
131
|
+
/**
|
|
132
|
+
* some uses of wildcards might add directories and their files at the same time, in such cases
|
|
133
|
+
* only the files are needed and the directories can be ignored.
|
|
134
|
+
* @see https://github.com/teambit/bit/issues/1406 for more details
|
|
135
|
+
*/
|
|
136
|
+
_removeDirectoriesWhenTheirFilesAreAdded(componentPathsStats: PathsStats): void;
|
|
137
|
+
_addMultipleToBitMap(added: AddedComponent[]): Promise<void>;
|
|
138
|
+
_removeNamespaceIfNotNeeded(addedComponents: AddedComponent[]): Promise<void>;
|
|
139
|
+
_tryAddingMultiple(componentPathsStats: PathsStats): Promise<AddedComponent[]>;
|
|
140
|
+
_throwForOutsideConsumer(relativeToConsumerPath: PathOsBased): void;
|
|
141
|
+
private throwForExistingParentDir;
|
|
142
|
+
}
|
|
143
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { PathLinux } from '@teambit/legacy/dist/utils/path';
|
|
2
|
+
import ComponentMap from '@teambit/legacy/dist/consumer/bit-map/component-map';
|
|
3
|
+
import { AddedComponent } from './add-components';
|
|
4
|
+
export default function determineMainFile(addedComponent: AddedComponent, existingComponentMap: ComponentMap | null | undefined): PathLinux;
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { CLIMain } from '@teambit/cli';
|
|
2
|
+
import { ComponentID } from '@teambit/component-id';
|
|
3
|
+
import { Workspace } from '@teambit/workspace';
|
|
4
|
+
import { Logger, LoggerMain } from '@teambit/logger';
|
|
5
|
+
import { PathOsBasedRelative, PathOsBasedAbsolute } from '@teambit/legacy/dist/utils/path';
|
|
6
|
+
import { AddActionResults, AddProps, Warnings } from './add-components';
|
|
7
|
+
export type TrackResult = {
|
|
8
|
+
files: string[];
|
|
9
|
+
warnings: Warnings;
|
|
10
|
+
componentId: ComponentID;
|
|
11
|
+
};
|
|
12
|
+
export type TrackData = {
|
|
13
|
+
rootDir: PathOsBasedRelative | PathOsBasedAbsolute;
|
|
14
|
+
componentName?: string;
|
|
15
|
+
mainFile?: string;
|
|
16
|
+
defaultScope?: string;
|
|
17
|
+
config?: {
|
|
18
|
+
[aspectName: string]: any;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
export declare class TrackerMain {
|
|
22
|
+
private workspace;
|
|
23
|
+
private logger;
|
|
24
|
+
constructor(workspace: Workspace, logger: Logger);
|
|
25
|
+
/**
|
|
26
|
+
* add a new component to the .bitmap file.
|
|
27
|
+
* this method only adds the records in memory but doesn't persist to the filesystem.
|
|
28
|
+
* to write the .bitmap file once completed, run "await this.bitMap.write();"
|
|
29
|
+
*/
|
|
30
|
+
track(trackData: TrackData): Promise<TrackResult>;
|
|
31
|
+
addForCLI(addProps: AddProps): Promise<AddActionResults>;
|
|
32
|
+
addEnvToConfig(env: string, config: {
|
|
33
|
+
[aspectName: string]: any;
|
|
34
|
+
}): Promise<void>;
|
|
35
|
+
/**
|
|
36
|
+
* scopes in bit.dev are "owner.collection".
|
|
37
|
+
* we might have the scope-name only without the owner and we need to retrieve it from the defaultScope in the
|
|
38
|
+
* workspace.jsonc file.
|
|
39
|
+
*
|
|
40
|
+
* @param scopeName scopeName that might not have the owner part.
|
|
41
|
+
* @returns full scope name
|
|
42
|
+
*/
|
|
43
|
+
private addOwnerToScopeName;
|
|
44
|
+
/**
|
|
45
|
+
* whether a scope is hosted by Bit cloud.
|
|
46
|
+
* otherwise, it is self-hosted
|
|
47
|
+
*/
|
|
48
|
+
private isHostedByBit;
|
|
49
|
+
static slots: never[];
|
|
50
|
+
static dependencies: import("@teambit/harmony").Aspect[];
|
|
51
|
+
static runtime: import("@teambit/harmony").RuntimeDefinition;
|
|
52
|
+
static provider([cli, workspace, loggerMain]: [CLIMain, Workspace, LoggerMain]): Promise<TrackerMain>;
|
|
53
|
+
}
|
|
54
|
+
export default TrackerMain;
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/tracker",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.229",
|
|
4
4
|
"homepage": "https://bit.cloud/teambit/component/tracker",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "teambit.component",
|
|
8
8
|
"name": "tracker",
|
|
9
|
-
"version": "1.0.
|
|
9
|
+
"version": "1.0.229"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"chalk": "2.4.2",
|
|
@@ -19,18 +19,18 @@
|
|
|
19
19
|
"@teambit/component-id": "1.2.0",
|
|
20
20
|
"@teambit/legacy-bit-id": "1.1.1",
|
|
21
21
|
"@teambit/harmony": "0.4.6",
|
|
22
|
-
"@teambit/cli": "0.0.
|
|
22
|
+
"@teambit/cli": "0.0.862",
|
|
23
23
|
"@teambit/workspace.modules.node-modules-linker": "0.0.167",
|
|
24
|
-
"@teambit/workspace": "1.0.
|
|
25
|
-
"@teambit/envs": "1.0.
|
|
26
|
-
"@teambit/logger": "0.0.
|
|
24
|
+
"@teambit/workspace": "1.0.229",
|
|
25
|
+
"@teambit/envs": "1.0.229",
|
|
26
|
+
"@teambit/logger": "0.0.955"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@types/fs-extra": "9.0.7",
|
|
30
30
|
"@types/lodash": "4.14.165",
|
|
31
31
|
"@types/mocha": "9.1.0",
|
|
32
32
|
"chai": "4.3.0",
|
|
33
|
-
"@teambit/harmony.envs.core-aspect-env": "0.0.
|
|
33
|
+
"@teambit/harmony.envs.core-aspect-env": "0.0.33"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
36
|
"@teambit/legacy": "1.0.624"
|
package/tsconfig.json
CHANGED
|
@@ -20,8 +20,7 @@
|
|
|
20
20
|
"emitDeclarationOnly": true,
|
|
21
21
|
"strict": true,
|
|
22
22
|
"strictPropertyInitialization": false,
|
|
23
|
-
"noImplicitAny": false
|
|
24
|
-
"composite": true
|
|
23
|
+
"noImplicitAny": false
|
|
25
24
|
},
|
|
26
25
|
"exclude": [
|
|
27
26
|
"artifacts",
|
|
@@ -36,19 +35,5 @@
|
|
|
36
35
|
"include": [
|
|
37
36
|
"**/*",
|
|
38
37
|
"**/*.json"
|
|
39
|
-
],
|
|
40
|
-
"references": [
|
|
41
|
-
{
|
|
42
|
-
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_cli@0.0.861"
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.workspace_workspace@1.0.228"
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.envs_envs@1.0.228"
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_logger@0.0.954"
|
|
52
|
-
}
|
|
53
38
|
]
|
|
54
39
|
}
|
|
File without changes
|