@teambit/refactoring 1.0.257 → 1.0.259

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.
@@ -14,1170 +14,1188 @@
14
14
  },
15
15
  "exports": [
16
16
  {
17
- "__schema": "ClassSchema",
17
+ "__schema": "ExportSchema",
18
18
  "location": {
19
- "filePath": "refactoring.main.runtime.ts",
20
- "line": 29,
21
- "character": 1
19
+ "filePath": "index.ts",
20
+ "line": 3,
21
+ "character": 15
22
22
  },
23
- "signature": "class RefactoringMain",
24
23
  "name": "RefactoringMain",
25
- "members": [
26
- {
27
- "__schema": "ConstructorSchema",
28
- "location": {
29
- "filePath": "refactoring.main.runtime.ts",
30
- "line": 30,
31
- "character": 3
32
- },
33
- "signature": "constructor RefactoringMain(componentMain: ComponentMain, pkg: PkgMain, envs: EnvsMain): RefactoringMain",
34
- "name": "constructor",
35
- "params": [
36
- {
37
- "__schema": "ParameterSchema",
38
- "location": {
39
- "filePath": "refactoring.main.runtime.ts",
40
- "line": 30,
41
- "character": 15
42
- },
43
- "name": "componentMain",
44
- "type": {
45
- "__schema": "TypeRefSchema",
24
+ "exportNode": {
25
+ "__schema": "ClassSchema",
26
+ "location": {
27
+ "filePath": "refactoring.main.runtime.ts",
28
+ "line": 29,
29
+ "character": 1
30
+ },
31
+ "signature": "class RefactoringMain",
32
+ "name": "RefactoringMain",
33
+ "members": [
34
+ {
35
+ "__schema": "ConstructorSchema",
36
+ "location": {
37
+ "filePath": "refactoring.main.runtime.ts",
38
+ "line": 30,
39
+ "character": 3
40
+ },
41
+ "signature": "constructor RefactoringMain(componentMain: ComponentMain, pkg: PkgMain, envs: EnvsMain): RefactoringMain",
42
+ "name": "constructor",
43
+ "params": [
44
+ {
45
+ "__schema": "ParameterSchema",
46
46
  "location": {
47
47
  "filePath": "refactoring.main.runtime.ts",
48
48
  "line": 30,
49
- "character": 38
49
+ "character": 15
50
50
  },
51
- "name": "ComponentMain",
52
- "componentId": {
53
- "scope": "teambit.component",
54
- "name": "component"
55
- }
56
- },
57
- "isOptional": false,
58
- "isSpread": false
59
- },
60
- {
61
- "__schema": "ParameterSchema",
62
- "location": {
63
- "filePath": "refactoring.main.runtime.ts",
64
- "line": 30,
65
- "character": 53
51
+ "name": "componentMain",
52
+ "type": {
53
+ "__schema": "TypeRefSchema",
54
+ "location": {
55
+ "filePath": "refactoring.main.runtime.ts",
56
+ "line": 30,
57
+ "character": 38
58
+ },
59
+ "name": "ComponentMain",
60
+ "componentId": {
61
+ "scope": "teambit.component",
62
+ "name": "component"
63
+ }
64
+ },
65
+ "isOptional": false,
66
+ "isSpread": false
66
67
  },
67
- "name": "pkg",
68
- "type": {
69
- "__schema": "TypeRefSchema",
68
+ {
69
+ "__schema": "ParameterSchema",
70
70
  "location": {
71
71
  "filePath": "refactoring.main.runtime.ts",
72
72
  "line": 30,
73
- "character": 66
73
+ "character": 53
74
74
  },
75
- "name": "PkgMain",
76
- "componentId": {
77
- "scope": "teambit.pkg",
78
- "name": "pkg"
79
- }
80
- },
81
- "isOptional": false,
82
- "isSpread": false
83
- },
84
- {
85
- "__schema": "ParameterSchema",
86
- "location": {
87
- "filePath": "refactoring.main.runtime.ts",
88
- "line": 30,
89
- "character": 75
75
+ "name": "pkg",
76
+ "type": {
77
+ "__schema": "TypeRefSchema",
78
+ "location": {
79
+ "filePath": "refactoring.main.runtime.ts",
80
+ "line": 30,
81
+ "character": 66
82
+ },
83
+ "name": "PkgMain",
84
+ "componentId": {
85
+ "scope": "teambit.pkg",
86
+ "name": "pkg"
87
+ }
88
+ },
89
+ "isOptional": false,
90
+ "isSpread": false
90
91
  },
91
- "name": "envs",
92
- "type": {
93
- "__schema": "TypeRefSchema",
92
+ {
93
+ "__schema": "ParameterSchema",
94
94
  "location": {
95
95
  "filePath": "refactoring.main.runtime.ts",
96
96
  "line": 30,
97
- "character": 89
97
+ "character": 75
98
98
  },
99
- "name": "EnvsMain",
100
- "componentId": {
101
- "scope": "teambit.envs",
102
- "name": "envs"
103
- }
99
+ "name": "envs",
100
+ "type": {
101
+ "__schema": "TypeRefSchema",
102
+ "location": {
103
+ "filePath": "refactoring.main.runtime.ts",
104
+ "line": 30,
105
+ "character": 89
106
+ },
107
+ "name": "EnvsMain",
108
+ "componentId": {
109
+ "scope": "teambit.envs",
110
+ "name": "envs"
111
+ }
112
+ },
113
+ "isOptional": false,
114
+ "isSpread": false
115
+ }
116
+ ],
117
+ "returnType": {
118
+ "__schema": "ThisTypeSchema",
119
+ "location": {
120
+ "filePath": "refactoring.main.runtime.ts",
121
+ "line": 29,
122
+ "character": 1
104
123
  },
105
- "isOptional": false,
106
- "isSpread": false
107
- }
108
- ],
109
- "returnType": {
110
- "__schema": "ThisTypeSchema",
111
- "location": {
112
- "filePath": "refactoring.main.runtime.ts",
113
- "line": 29,
114
- "character": 1
124
+ "name": "RefactoringMain"
115
125
  },
116
- "name": "RefactoringMain"
117
- },
118
- "modifiers": []
119
- },
120
- {
121
- "__schema": "FunctionLikeSchema",
122
- "location": {
123
- "filePath": "refactoring.main.runtime.ts",
124
- "line": 37,
125
- "character": 3
126
+ "modifiers": []
126
127
  },
127
- "doc": {
128
- "__schema": "DocSchema",
128
+ {
129
+ "__schema": "FunctionLikeSchema",
129
130
  "location": {
130
131
  "filePath": "refactoring.main.runtime.ts",
131
- "line": 32,
132
+ "line": 37,
132
133
  "character": 3
133
134
  },
134
- "raw": "/**\n * refactor the dependency name of a component.\n * oldId and newId can be either a component-id or a package-name.\n * this method changes the source code of the component, but doesn't write to the filesystem.\n */",
135
- "comment": "refactor the dependency name of a component.\noldId and newId can be either a component-id or a package-name.\nthis method changes the source code of the component, but doesn't write to the filesystem."
136
- },
137
- "signature": "(method) RefactoringMain.refactorDependencyName(components: Component[], oldId: ComponentID | string, newId: ComponentID | string): Promise<{\n oldPackageName: string;\n newPackageName: string;\n changedComponents: Component[];\n}>",
138
- "name": "refactorDependencyName",
139
- "params": [
140
- {
141
- "__schema": "ParameterSchema",
135
+ "doc": {
136
+ "__schema": "DocSchema",
142
137
  "location": {
143
138
  "filePath": "refactoring.main.runtime.ts",
144
- "line": 38,
145
- "character": 5
139
+ "line": 32,
140
+ "character": 3
146
141
  },
147
- "name": "components",
148
- "type": {
149
- "__schema": "TypeArraySchema",
142
+ "raw": "/**\n * refactor the dependency name of a component.\n * oldId and newId can be either a component-id or a package-name.\n * this method changes the source code of the component, but doesn't write to the filesystem.\n */",
143
+ "comment": "refactor the dependency name of a component.\noldId and newId can be either a component-id or a package-name.\nthis method changes the source code of the component, but doesn't write to the filesystem."
144
+ },
145
+ "signature": "(method) RefactoringMain.refactorDependencyName(components: Component[], oldId: ComponentID | string, newId: ComponentID | string): Promise<{\n oldPackageName: string;\n newPackageName: string;\n changedComponents: Component[];\n}>",
146
+ "name": "refactorDependencyName",
147
+ "params": [
148
+ {
149
+ "__schema": "ParameterSchema",
150
150
  "location": {
151
151
  "filePath": "refactoring.main.runtime.ts",
152
152
  "line": 38,
153
- "character": 17
153
+ "character": 5
154
154
  },
155
+ "name": "components",
155
156
  "type": {
156
- "__schema": "TypeRefSchema",
157
+ "__schema": "TypeArraySchema",
157
158
  "location": {
158
159
  "filePath": "refactoring.main.runtime.ts",
159
160
  "line": 38,
160
161
  "character": 17
161
162
  },
162
- "name": "Component",
163
- "componentId": {
164
- "scope": "teambit.component",
165
- "name": "component"
166
- }
167
- }
168
- },
169
- "isOptional": false,
170
- "isSpread": false
171
- },
172
- {
173
- "__schema": "ParameterSchema",
174
- "location": {
175
- "filePath": "refactoring.main.runtime.ts",
176
- "line": 39,
177
- "character": 5
178
- },
179
- "name": "oldId",
180
- "type": {
181
- "__schema": "TypeUnionSchema",
182
- "location": {
183
- "filePath": "refactoring.main.runtime.ts",
184
- "line": 39,
185
- "character": 12
186
- },
187
- "types": [
188
- {
163
+ "type": {
189
164
  "__schema": "TypeRefSchema",
190
165
  "location": {
191
166
  "filePath": "refactoring.main.runtime.ts",
192
- "line": 39,
193
- "character": 12
167
+ "line": 38,
168
+ "character": 17
194
169
  },
195
- "name": "ComponentID",
170
+ "name": "Component",
196
171
  "componentId": {
197
172
  "scope": "teambit.component",
198
173
  "name": "component"
199
174
  }
200
- },
201
- {
202
- "__schema": "KeywordTypeSchema",
203
- "location": {
204
- "filePath": "refactoring.main.runtime.ts",
205
- "line": 39,
206
- "character": 26
207
- },
208
- "name": "string"
209
175
  }
210
- ]
211
- },
212
- "isOptional": false,
213
- "isSpread": false
214
- },
215
- {
216
- "__schema": "ParameterSchema",
217
- "location": {
218
- "filePath": "refactoring.main.runtime.ts",
219
- "line": 40,
220
- "character": 5
221
- },
222
- "name": "newId",
223
- "type": {
224
- "__schema": "TypeUnionSchema",
225
- "location": {
226
- "filePath": "refactoring.main.runtime.ts",
227
- "line": 40,
228
- "character": 12
229
176
  },
230
- "types": [
231
- {
232
- "__schema": "TypeRefSchema",
233
- "location": {
234
- "filePath": "refactoring.main.runtime.ts",
235
- "line": 40,
236
- "character": 12
237
- },
238
- "name": "ComponentID",
239
- "componentId": {
240
- "scope": "teambit.component",
241
- "name": "component"
242
- }
243
- },
244
- {
245
- "__schema": "KeywordTypeSchema",
246
- "location": {
247
- "filePath": "refactoring.main.runtime.ts",
248
- "line": 40,
249
- "character": 26
250
- },
251
- "name": "string"
252
- }
253
- ]
177
+ "isOptional": false,
178
+ "isSpread": false
254
179
  },
255
- "isOptional": false,
256
- "isSpread": false
257
- }
258
- ],
259
- "returnType": {
260
- "__schema": "TypeRefSchema",
261
- "location": {
262
- "filePath": "refactoring.main.runtime.ts",
263
- "line": 41,
264
- "character": 6
265
- },
266
- "name": "Promise",
267
- "typeArgs": [
268
180
  {
269
- "__schema": "TypeLiteralSchema",
181
+ "__schema": "ParameterSchema",
270
182
  "location": {
271
183
  "filePath": "refactoring.main.runtime.ts",
272
- "line": 41,
273
- "character": 14
184
+ "line": 39,
185
+ "character": 5
274
186
  },
275
- "members": [
276
- {
277
- "__schema": "VariableLikeSchema",
278
- "location": {
279
- "filePath": "refactoring.main.runtime.ts",
280
- "line": 41,
281
- "character": 16
282
- },
283
- "signature": "(property) oldPackageName: string",
284
- "name": "oldPackageName",
285
- "type": {
286
- "__schema": "KeywordTypeSchema",
187
+ "name": "oldId",
188
+ "type": {
189
+ "__schema": "TypeUnionSchema",
190
+ "location": {
191
+ "filePath": "refactoring.main.runtime.ts",
192
+ "line": 39,
193
+ "character": 12
194
+ },
195
+ "types": [
196
+ {
197
+ "__schema": "TypeRefSchema",
287
198
  "location": {
288
199
  "filePath": "refactoring.main.runtime.ts",
289
- "line": 41,
290
- "character": 32
200
+ "line": 39,
201
+ "character": 12
291
202
  },
292
- "name": "string"
293
- },
294
- "isOptional": false
295
- },
296
- {
297
- "__schema": "VariableLikeSchema",
298
- "location": {
299
- "filePath": "refactoring.main.runtime.ts",
300
- "line": 41,
301
- "character": 40
203
+ "name": "ComponentID",
204
+ "componentId": {
205
+ "scope": "teambit.component",
206
+ "name": "component"
207
+ }
302
208
  },
303
- "signature": "(property) newPackageName: string",
304
- "name": "newPackageName",
305
- "type": {
209
+ {
306
210
  "__schema": "KeywordTypeSchema",
307
211
  "location": {
308
212
  "filePath": "refactoring.main.runtime.ts",
309
- "line": 41,
310
- "character": 56
213
+ "line": 39,
214
+ "character": 26
311
215
  },
312
216
  "name": "string"
313
- },
314
- "isOptional": false
217
+ }
218
+ ]
219
+ },
220
+ "isOptional": false,
221
+ "isSpread": false
222
+ },
223
+ {
224
+ "__schema": "ParameterSchema",
225
+ "location": {
226
+ "filePath": "refactoring.main.runtime.ts",
227
+ "line": 40,
228
+ "character": 5
229
+ },
230
+ "name": "newId",
231
+ "type": {
232
+ "__schema": "TypeUnionSchema",
233
+ "location": {
234
+ "filePath": "refactoring.main.runtime.ts",
235
+ "line": 40,
236
+ "character": 12
315
237
  },
316
- {
317
- "__schema": "VariableLikeSchema",
318
- "location": {
319
- "filePath": "refactoring.main.runtime.ts",
320
- "line": 41,
321
- "character": 64
322
- },
323
- "signature": "(property) changedComponents: Component[]",
324
- "name": "changedComponents",
325
- "type": {
326
- "__schema": "TypeArraySchema",
238
+ "types": [
239
+ {
240
+ "__schema": "TypeRefSchema",
241
+ "location": {
242
+ "filePath": "refactoring.main.runtime.ts",
243
+ "line": 40,
244
+ "character": 12
245
+ },
246
+ "name": "ComponentID",
247
+ "componentId": {
248
+ "scope": "teambit.component",
249
+ "name": "component"
250
+ }
251
+ },
252
+ {
253
+ "__schema": "KeywordTypeSchema",
254
+ "location": {
255
+ "filePath": "refactoring.main.runtime.ts",
256
+ "line": 40,
257
+ "character": 26
258
+ },
259
+ "name": "string"
260
+ }
261
+ ]
262
+ },
263
+ "isOptional": false,
264
+ "isSpread": false
265
+ }
266
+ ],
267
+ "returnType": {
268
+ "__schema": "TypeRefSchema",
269
+ "location": {
270
+ "filePath": "refactoring.main.runtime.ts",
271
+ "line": 41,
272
+ "character": 6
273
+ },
274
+ "name": "Promise",
275
+ "typeArgs": [
276
+ {
277
+ "__schema": "TypeLiteralSchema",
278
+ "location": {
279
+ "filePath": "refactoring.main.runtime.ts",
280
+ "line": 41,
281
+ "character": 14
282
+ },
283
+ "members": [
284
+ {
285
+ "__schema": "VariableLikeSchema",
327
286
  "location": {
328
287
  "filePath": "refactoring.main.runtime.ts",
329
288
  "line": 41,
330
- "character": 83
289
+ "character": 16
331
290
  },
291
+ "signature": "(property) oldPackageName: string",
292
+ "name": "oldPackageName",
332
293
  "type": {
333
- "__schema": "TypeRefSchema",
294
+ "__schema": "KeywordTypeSchema",
295
+ "location": {
296
+ "filePath": "refactoring.main.runtime.ts",
297
+ "line": 41,
298
+ "character": 32
299
+ },
300
+ "name": "string"
301
+ },
302
+ "isOptional": false
303
+ },
304
+ {
305
+ "__schema": "VariableLikeSchema",
306
+ "location": {
307
+ "filePath": "refactoring.main.runtime.ts",
308
+ "line": 41,
309
+ "character": 40
310
+ },
311
+ "signature": "(property) newPackageName: string",
312
+ "name": "newPackageName",
313
+ "type": {
314
+ "__schema": "KeywordTypeSchema",
315
+ "location": {
316
+ "filePath": "refactoring.main.runtime.ts",
317
+ "line": 41,
318
+ "character": 56
319
+ },
320
+ "name": "string"
321
+ },
322
+ "isOptional": false
323
+ },
324
+ {
325
+ "__schema": "VariableLikeSchema",
326
+ "location": {
327
+ "filePath": "refactoring.main.runtime.ts",
328
+ "line": 41,
329
+ "character": 64
330
+ },
331
+ "signature": "(property) changedComponents: Component[]",
332
+ "name": "changedComponents",
333
+ "type": {
334
+ "__schema": "TypeArraySchema",
334
335
  "location": {
335
336
  "filePath": "refactoring.main.runtime.ts",
336
337
  "line": 41,
337
338
  "character": 83
338
339
  },
339
- "name": "Component",
340
- "componentId": {
341
- "scope": "teambit.component",
342
- "name": "component"
340
+ "type": {
341
+ "__schema": "TypeRefSchema",
342
+ "location": {
343
+ "filePath": "refactoring.main.runtime.ts",
344
+ "line": 41,
345
+ "character": 83
346
+ },
347
+ "name": "Component",
348
+ "componentId": {
349
+ "scope": "teambit.component",
350
+ "name": "component"
351
+ }
343
352
  }
344
- }
345
- },
346
- "isOptional": false
347
- }
348
- ]
349
- }
353
+ },
354
+ "isOptional": false
355
+ }
356
+ ]
357
+ }
358
+ ]
359
+ },
360
+ "modifiers": [
361
+ "async"
350
362
  ]
351
363
  },
352
- "modifiers": [
353
- "async"
354
- ]
355
- },
356
- {
357
- "__schema": "FunctionLikeSchema",
358
- "location": {
359
- "filePath": "refactoring.main.runtime.ts",
360
- "line": 60,
361
- "character": 3
362
- },
363
- "doc": {
364
- "__schema": "DocSchema",
364
+ {
365
+ "__schema": "FunctionLikeSchema",
365
366
  "location": {
366
367
  "filePath": "refactoring.main.runtime.ts",
367
- "line": 56,
368
+ "line": 60,
368
369
  "character": 3
369
370
  },
370
- "raw": "/**\n * replaces the old-name inside the source code of the given component with the new name.\n * helpful when renaming/forking an aspect/env where the component-name is used as the class-name and variable-name.\n */",
371
- "comment": "replaces the old-name inside the source code of the given component with the new name.\nhelpful when renaming/forking an aspect/env where the component-name is used as the class-name and variable-name."
372
- },
373
- "signature": "(method) RefactoringMain.refactorVariableAndClasses(component: Component, sourceId: ComponentID, targetId: ComponentID, options?: {\n ast?: boolean;\n}): Promise<void>",
374
- "name": "refactorVariableAndClasses",
375
- "params": [
376
- {
377
- "__schema": "ParameterSchema",
371
+ "doc": {
372
+ "__schema": "DocSchema",
378
373
  "location": {
379
374
  "filePath": "refactoring.main.runtime.ts",
380
- "line": 61,
381
- "character": 5
375
+ "line": 56,
376
+ "character": 3
382
377
  },
383
- "name": "component",
384
- "type": {
385
- "__schema": "TypeRefSchema",
378
+ "raw": "/**\n * replaces the old-name inside the source code of the given component with the new name.\n * helpful when renaming/forking an aspect/env where the component-name is used as the class-name and variable-name.\n */",
379
+ "comment": "replaces the old-name inside the source code of the given component with the new name.\nhelpful when renaming/forking an aspect/env where the component-name is used as the class-name and variable-name."
380
+ },
381
+ "signature": "(method) RefactoringMain.refactorVariableAndClasses(component: Component, sourceId: ComponentID, targetId: ComponentID, options?: {\n ast?: boolean;\n}): Promise<void>",
382
+ "name": "refactorVariableAndClasses",
383
+ "params": [
384
+ {
385
+ "__schema": "ParameterSchema",
386
386
  "location": {
387
387
  "filePath": "refactoring.main.runtime.ts",
388
388
  "line": 61,
389
- "character": 16
389
+ "character": 5
390
390
  },
391
- "name": "Component",
392
- "componentId": {
393
- "scope": "teambit.component",
394
- "name": "component"
395
- }
396
- },
397
- "isOptional": false,
398
- "isSpread": false
399
- },
400
- {
401
- "__schema": "ParameterSchema",
402
- "location": {
403
- "filePath": "refactoring.main.runtime.ts",
404
- "line": 62,
405
- "character": 5
391
+ "name": "component",
392
+ "type": {
393
+ "__schema": "TypeRefSchema",
394
+ "location": {
395
+ "filePath": "refactoring.main.runtime.ts",
396
+ "line": 61,
397
+ "character": 16
398
+ },
399
+ "name": "Component",
400
+ "componentId": {
401
+ "scope": "teambit.component",
402
+ "name": "component"
403
+ }
404
+ },
405
+ "isOptional": false,
406
+ "isSpread": false
406
407
  },
407
- "name": "sourceId",
408
- "type": {
409
- "__schema": "TypeRefSchema",
408
+ {
409
+ "__schema": "ParameterSchema",
410
410
  "location": {
411
411
  "filePath": "refactoring.main.runtime.ts",
412
412
  "line": 62,
413
- "character": 15
413
+ "character": 5
414
414
  },
415
- "name": "ComponentID",
416
- "componentId": {
417
- "scope": "teambit.component",
418
- "name": "component"
419
- }
420
- },
421
- "isOptional": false,
422
- "isSpread": false
423
- },
424
- {
425
- "__schema": "ParameterSchema",
426
- "location": {
427
- "filePath": "refactoring.main.runtime.ts",
428
- "line": 63,
429
- "character": 5
415
+ "name": "sourceId",
416
+ "type": {
417
+ "__schema": "TypeRefSchema",
418
+ "location": {
419
+ "filePath": "refactoring.main.runtime.ts",
420
+ "line": 62,
421
+ "character": 15
422
+ },
423
+ "name": "ComponentID",
424
+ "componentId": {
425
+ "scope": "teambit.component",
426
+ "name": "component"
427
+ }
428
+ },
429
+ "isOptional": false,
430
+ "isSpread": false
430
431
  },
431
- "name": "targetId",
432
- "type": {
433
- "__schema": "TypeRefSchema",
432
+ {
433
+ "__schema": "ParameterSchema",
434
434
  "location": {
435
435
  "filePath": "refactoring.main.runtime.ts",
436
436
  "line": 63,
437
- "character": 15
437
+ "character": 5
438
438
  },
439
- "name": "ComponentID",
440
- "componentId": {
441
- "scope": "teambit.component",
442
- "name": "component"
443
- }
444
- },
445
- "isOptional": false,
446
- "isSpread": false
447
- },
448
- {
449
- "__schema": "ParameterSchema",
450
- "location": {
451
- "filePath": "refactoring.main.runtime.ts",
452
- "line": 64,
453
- "character": 5
439
+ "name": "targetId",
440
+ "type": {
441
+ "__schema": "TypeRefSchema",
442
+ "location": {
443
+ "filePath": "refactoring.main.runtime.ts",
444
+ "line": 63,
445
+ "character": 15
446
+ },
447
+ "name": "ComponentID",
448
+ "componentId": {
449
+ "scope": "teambit.component",
450
+ "name": "component"
451
+ }
452
+ },
453
+ "isOptional": false,
454
+ "isSpread": false
454
455
  },
455
- "name": "options",
456
- "type": {
457
- "__schema": "TypeLiteralSchema",
456
+ {
457
+ "__schema": "ParameterSchema",
458
458
  "location": {
459
459
  "filePath": "refactoring.main.runtime.ts",
460
460
  "line": 64,
461
- "character": 15
461
+ "character": 5
462
462
  },
463
- "members": [
464
- {
465
- "__schema": "VariableLikeSchema",
466
- "location": {
467
- "filePath": "refactoring.main.runtime.ts",
468
- "line": 64,
469
- "character": 17
470
- },
471
- "signature": "(property) ast?: boolean | undefined",
472
- "name": "ast",
473
- "type": {
474
- "__schema": "KeywordTypeSchema",
463
+ "name": "options",
464
+ "type": {
465
+ "__schema": "TypeLiteralSchema",
466
+ "location": {
467
+ "filePath": "refactoring.main.runtime.ts",
468
+ "line": 64,
469
+ "character": 15
470
+ },
471
+ "members": [
472
+ {
473
+ "__schema": "VariableLikeSchema",
475
474
  "location": {
476
475
  "filePath": "refactoring.main.runtime.ts",
477
476
  "line": 64,
478
- "character": 23
477
+ "character": 17
479
478
  },
480
- "name": "boolean"
481
- },
482
- "isOptional": true
483
- }
484
- ]
479
+ "signature": "(property) ast?: boolean | undefined",
480
+ "name": "ast",
481
+ "type": {
482
+ "__schema": "KeywordTypeSchema",
483
+ "location": {
484
+ "filePath": "refactoring.main.runtime.ts",
485
+ "line": 64,
486
+ "character": 23
487
+ },
488
+ "name": "boolean"
489
+ },
490
+ "isOptional": true
491
+ }
492
+ ]
493
+ },
494
+ "isOptional": true,
495
+ "isSpread": false
496
+ }
497
+ ],
498
+ "returnType": {
499
+ "__schema": "InferenceTypeSchema",
500
+ "location": {
501
+ "filePath": "refactoring.main.runtime.ts",
502
+ "line": 60,
503
+ "character": 3
485
504
  },
486
- "isOptional": true,
487
- "isSpread": false
488
- }
489
- ],
490
- "returnType": {
491
- "__schema": "InferenceTypeSchema",
505
+ "type": "Promise<void>"
506
+ },
507
+ "modifiers": [
508
+ "async"
509
+ ]
510
+ },
511
+ {
512
+ "__schema": "FunctionLikeSchema",
492
513
  "location": {
493
514
  "filePath": "refactoring.main.runtime.ts",
494
- "line": 60,
515
+ "line": 76,
495
516
  "character": 3
496
517
  },
497
- "type": "Promise<void>"
498
- },
499
- "modifiers": [
500
- "async"
501
- ]
502
- },
503
- {
504
- "__schema": "FunctionLikeSchema",
505
- "location": {
506
- "filePath": "refactoring.main.runtime.ts",
507
- "line": 76,
508
- "character": 3
509
- },
510
- "signature": "(method) RefactoringMain.getStringReplacementsForVariablesAndClasses(sourceId: ComponentID, targetId: ComponentID): MultipleStringsReplacement",
511
- "name": "getStringReplacementsForVariablesAndClasses",
512
- "params": [
513
- {
514
- "__schema": "ParameterSchema",
515
- "location": {
516
- "filePath": "refactoring.main.runtime.ts",
517
- "line": 77,
518
- "character": 5
519
- },
520
- "name": "sourceId",
521
- "type": {
522
- "__schema": "TypeRefSchema",
518
+ "signature": "(method) RefactoringMain.getStringReplacementsForVariablesAndClasses(sourceId: ComponentID, targetId: ComponentID): MultipleStringsReplacement",
519
+ "name": "getStringReplacementsForVariablesAndClasses",
520
+ "params": [
521
+ {
522
+ "__schema": "ParameterSchema",
523
523
  "location": {
524
524
  "filePath": "refactoring.main.runtime.ts",
525
525
  "line": 77,
526
- "character": 15
526
+ "character": 5
527
527
  },
528
- "name": "ComponentID",
529
- "componentId": {
530
- "scope": "teambit.component",
531
- "name": "component"
532
- }
533
- },
534
- "isOptional": false,
535
- "isSpread": false
536
- },
537
- {
538
- "__schema": "ParameterSchema",
539
- "location": {
540
- "filePath": "refactoring.main.runtime.ts",
541
- "line": 78,
542
- "character": 5
528
+ "name": "sourceId",
529
+ "type": {
530
+ "__schema": "TypeRefSchema",
531
+ "location": {
532
+ "filePath": "refactoring.main.runtime.ts",
533
+ "line": 77,
534
+ "character": 15
535
+ },
536
+ "name": "ComponentID",
537
+ "componentId": {
538
+ "scope": "teambit.component",
539
+ "name": "component"
540
+ }
541
+ },
542
+ "isOptional": false,
543
+ "isSpread": false
543
544
  },
544
- "name": "targetId",
545
- "type": {
546
- "__schema": "TypeRefSchema",
545
+ {
546
+ "__schema": "ParameterSchema",
547
547
  "location": {
548
548
  "filePath": "refactoring.main.runtime.ts",
549
549
  "line": 78,
550
- "character": 15
550
+ "character": 5
551
551
  },
552
- "name": "ComponentID",
553
- "componentId": {
554
- "scope": "teambit.component",
555
- "name": "component"
556
- }
552
+ "name": "targetId",
553
+ "type": {
554
+ "__schema": "TypeRefSchema",
555
+ "location": {
556
+ "filePath": "refactoring.main.runtime.ts",
557
+ "line": 78,
558
+ "character": 15
559
+ },
560
+ "name": "ComponentID",
561
+ "componentId": {
562
+ "scope": "teambit.component",
563
+ "name": "component"
564
+ }
565
+ },
566
+ "isOptional": false,
567
+ "isSpread": false
568
+ }
569
+ ],
570
+ "returnType": {
571
+ "__schema": "TypeRefSchema",
572
+ "location": {
573
+ "filePath": "refactoring.main.runtime.ts",
574
+ "line": 76,
575
+ "character": 3
557
576
  },
558
- "isOptional": false,
559
- "isSpread": false
560
- }
561
- ],
562
- "returnType": {
563
- "__schema": "TypeRefSchema",
577
+ "name": "MultipleStringsReplacement"
578
+ },
579
+ "modifiers": []
580
+ },
581
+ {
582
+ "__schema": "FunctionLikeSchema",
564
583
  "location": {
565
584
  "filePath": "refactoring.main.runtime.ts",
566
- "line": 76,
585
+ "line": 96,
567
586
  "character": 3
568
587
  },
569
- "name": "MultipleStringsReplacement"
570
- },
571
- "modifiers": []
572
- },
573
- {
574
- "__schema": "FunctionLikeSchema",
575
- "location": {
576
- "filePath": "refactoring.main.runtime.ts",
577
- "line": 96,
578
- "character": 3
579
- },
580
- "signature": "(method) RefactoringMain.refactorVariableAndClassesUsingAST(component: Component, sourceId: ComponentID, targetId: ComponentID): Promise<void>",
581
- "name": "refactorVariableAndClassesUsingAST",
582
- "params": [
583
- {
584
- "__schema": "ParameterSchema",
585
- "location": {
586
- "filePath": "refactoring.main.runtime.ts",
587
- "line": 96,
588
- "character": 44
589
- },
590
- "name": "component",
591
- "type": {
592
- "__schema": "TypeRefSchema",
588
+ "signature": "(method) RefactoringMain.refactorVariableAndClassesUsingAST(component: Component, sourceId: ComponentID, targetId: ComponentID): Promise<void>",
589
+ "name": "refactorVariableAndClassesUsingAST",
590
+ "params": [
591
+ {
592
+ "__schema": "ParameterSchema",
593
593
  "location": {
594
594
  "filePath": "refactoring.main.runtime.ts",
595
595
  "line": 96,
596
- "character": 55
596
+ "character": 44
597
597
  },
598
- "name": "Component",
599
- "componentId": {
600
- "scope": "teambit.component",
601
- "name": "component"
602
- }
603
- },
604
- "isOptional": false,
605
- "isSpread": false
606
- },
607
- {
608
- "__schema": "ParameterSchema",
609
- "location": {
610
- "filePath": "refactoring.main.runtime.ts",
611
- "line": 96,
612
- "character": 66
598
+ "name": "component",
599
+ "type": {
600
+ "__schema": "TypeRefSchema",
601
+ "location": {
602
+ "filePath": "refactoring.main.runtime.ts",
603
+ "line": 96,
604
+ "character": 55
605
+ },
606
+ "name": "Component",
607
+ "componentId": {
608
+ "scope": "teambit.component",
609
+ "name": "component"
610
+ }
611
+ },
612
+ "isOptional": false,
613
+ "isSpread": false
613
614
  },
614
- "name": "sourceId",
615
- "type": {
616
- "__schema": "TypeRefSchema",
615
+ {
616
+ "__schema": "ParameterSchema",
617
617
  "location": {
618
618
  "filePath": "refactoring.main.runtime.ts",
619
619
  "line": 96,
620
- "character": 76
620
+ "character": 66
621
621
  },
622
- "name": "ComponentID",
623
- "componentId": {
624
- "scope": "teambit.component",
625
- "name": "component"
626
- }
627
- },
628
- "isOptional": false,
629
- "isSpread": false
630
- },
631
- {
632
- "__schema": "ParameterSchema",
633
- "location": {
634
- "filePath": "refactoring.main.runtime.ts",
635
- "line": 96,
636
- "character": 89
622
+ "name": "sourceId",
623
+ "type": {
624
+ "__schema": "TypeRefSchema",
625
+ "location": {
626
+ "filePath": "refactoring.main.runtime.ts",
627
+ "line": 96,
628
+ "character": 76
629
+ },
630
+ "name": "ComponentID",
631
+ "componentId": {
632
+ "scope": "teambit.component",
633
+ "name": "component"
634
+ }
635
+ },
636
+ "isOptional": false,
637
+ "isSpread": false
637
638
  },
638
- "name": "targetId",
639
- "type": {
640
- "__schema": "TypeRefSchema",
639
+ {
640
+ "__schema": "ParameterSchema",
641
641
  "location": {
642
642
  "filePath": "refactoring.main.runtime.ts",
643
643
  "line": 96,
644
- "character": 99
644
+ "character": 89
645
645
  },
646
- "name": "ComponentID",
647
- "componentId": {
648
- "scope": "teambit.component",
649
- "name": "component"
650
- }
646
+ "name": "targetId",
647
+ "type": {
648
+ "__schema": "TypeRefSchema",
649
+ "location": {
650
+ "filePath": "refactoring.main.runtime.ts",
651
+ "line": 96,
652
+ "character": 99
653
+ },
654
+ "name": "ComponentID",
655
+ "componentId": {
656
+ "scope": "teambit.component",
657
+ "name": "component"
658
+ }
659
+ },
660
+ "isOptional": false,
661
+ "isSpread": false
662
+ }
663
+ ],
664
+ "returnType": {
665
+ "__schema": "InferenceTypeSchema",
666
+ "location": {
667
+ "filePath": "refactoring.main.runtime.ts",
668
+ "line": 96,
669
+ "character": 3
651
670
  },
652
- "isOptional": false,
653
- "isSpread": false
654
- }
655
- ],
656
- "returnType": {
657
- "__schema": "InferenceTypeSchema",
671
+ "type": "Promise<void>"
672
+ },
673
+ "modifiers": [
674
+ "async"
675
+ ]
676
+ },
677
+ {
678
+ "__schema": "FunctionLikeSchema",
658
679
  "location": {
659
680
  "filePath": "refactoring.main.runtime.ts",
660
- "line": 96,
681
+ "line": 150,
661
682
  "character": 3
662
683
  },
663
- "type": "Promise<void>"
664
- },
665
- "modifiers": [
666
- "async"
667
- ]
668
- },
669
- {
670
- "__schema": "FunctionLikeSchema",
671
- "location": {
672
- "filePath": "refactoring.main.runtime.ts",
673
- "line": 150,
674
- "character": 3
675
- },
676
- "signature": "(method) RefactoringMain.refactorFilenames(component: Component, sourceId: ComponentID, targetId: ComponentID): void",
677
- "name": "refactorFilenames",
678
- "params": [
679
- {
680
- "__schema": "ParameterSchema",
681
- "location": {
682
- "filePath": "refactoring.main.runtime.ts",
683
- "line": 150,
684
- "character": 21
685
- },
686
- "name": "component",
687
- "type": {
688
- "__schema": "TypeRefSchema",
684
+ "signature": "(method) RefactoringMain.refactorFilenames(component: Component, sourceId: ComponentID, targetId: ComponentID): void",
685
+ "name": "refactorFilenames",
686
+ "params": [
687
+ {
688
+ "__schema": "ParameterSchema",
689
689
  "location": {
690
690
  "filePath": "refactoring.main.runtime.ts",
691
691
  "line": 150,
692
- "character": 32
692
+ "character": 21
693
693
  },
694
- "name": "Component",
695
- "componentId": {
696
- "scope": "teambit.component",
697
- "name": "component"
698
- }
694
+ "name": "component",
695
+ "type": {
696
+ "__schema": "TypeRefSchema",
697
+ "location": {
698
+ "filePath": "refactoring.main.runtime.ts",
699
+ "line": 150,
700
+ "character": 32
701
+ },
702
+ "name": "Component",
703
+ "componentId": {
704
+ "scope": "teambit.component",
705
+ "name": "component"
706
+ }
707
+ },
708
+ "isOptional": false,
709
+ "isSpread": false
699
710
  },
700
- "isOptional": false,
701
- "isSpread": false
702
- },
703
- {
704
- "__schema": "ParameterSchema",
705
- "location": {
706
- "filePath": "refactoring.main.runtime.ts",
707
- "line": 150,
708
- "character": 43
711
+ {
712
+ "__schema": "ParameterSchema",
713
+ "location": {
714
+ "filePath": "refactoring.main.runtime.ts",
715
+ "line": 150,
716
+ "character": 43
717
+ },
718
+ "name": "sourceId",
719
+ "type": {
720
+ "__schema": "TypeRefSchema",
721
+ "location": {
722
+ "filePath": "refactoring.main.runtime.ts",
723
+ "line": 150,
724
+ "character": 53
725
+ },
726
+ "name": "ComponentID",
727
+ "componentId": {
728
+ "scope": "teambit.component",
729
+ "name": "component"
730
+ }
731
+ },
732
+ "isOptional": false,
733
+ "isSpread": false
709
734
  },
710
- "name": "sourceId",
711
- "type": {
712
- "__schema": "TypeRefSchema",
735
+ {
736
+ "__schema": "ParameterSchema",
713
737
  "location": {
714
738
  "filePath": "refactoring.main.runtime.ts",
715
739
  "line": 150,
716
- "character": 53
740
+ "character": 66
717
741
  },
718
- "name": "ComponentID",
719
- "componentId": {
720
- "scope": "teambit.component",
721
- "name": "component"
722
- }
723
- },
724
- "isOptional": false,
725
- "isSpread": false
726
- },
727
- {
728
- "__schema": "ParameterSchema",
742
+ "name": "targetId",
743
+ "type": {
744
+ "__schema": "TypeRefSchema",
745
+ "location": {
746
+ "filePath": "refactoring.main.runtime.ts",
747
+ "line": 150,
748
+ "character": 76
749
+ },
750
+ "name": "ComponentID",
751
+ "componentId": {
752
+ "scope": "teambit.component",
753
+ "name": "component"
754
+ }
755
+ },
756
+ "isOptional": false,
757
+ "isSpread": false
758
+ }
759
+ ],
760
+ "returnType": {
761
+ "__schema": "InferenceTypeSchema",
729
762
  "location": {
730
763
  "filePath": "refactoring.main.runtime.ts",
731
764
  "line": 150,
732
- "character": 66
733
- },
734
- "name": "targetId",
735
- "type": {
736
- "__schema": "TypeRefSchema",
737
- "location": {
738
- "filePath": "refactoring.main.runtime.ts",
739
- "line": 150,
740
- "character": 76
741
- },
742
- "name": "ComponentID",
743
- "componentId": {
744
- "scope": "teambit.component",
745
- "name": "component"
746
- }
765
+ "character": 3
747
766
  },
748
- "isOptional": false,
749
- "isSpread": false
750
- }
751
- ],
752
- "returnType": {
753
- "__schema": "InferenceTypeSchema",
754
- "location": {
755
- "filePath": "refactoring.main.runtime.ts",
756
- "line": 150,
757
- "character": 3
767
+ "type": "void"
758
768
  },
759
- "type": "void"
760
- },
761
- "modifiers": []
762
- },
763
- {
764
- "__schema": "FunctionLikeSchema",
765
- "location": {
766
- "filePath": "refactoring.main.runtime.ts",
767
- "line": 162,
768
- "character": 3
769
+ "modifiers": []
769
770
  },
770
- "doc": {
771
- "__schema": "DocSchema",
771
+ {
772
+ "__schema": "FunctionLikeSchema",
772
773
  "location": {
773
774
  "filePath": "refactoring.main.runtime.ts",
774
- "line": 158,
775
+ "line": 162,
775
776
  "character": 3
776
777
  },
777
- "raw": "/**\n * rename multiple packages dependencies.\n * this method changes the source code of the component, but doesn't write to the filesystem.\n */",
778
- "comment": "rename multiple packages dependencies.\nthis method changes the source code of the component, but doesn't write to the filesystem."
779
- },
780
- "signature": "(method) RefactoringMain.replaceMultipleStrings(components: Component[], stringsToReplace?: MultipleStringsReplacement, transformers?: SourceFileTransformer[], shouldAvoidPackageNames?: boolean): Promise<{\n changedComponents: Component[];\n}>",
781
- "name": "replaceMultipleStrings",
782
- "params": [
783
- {
784
- "__schema": "ParameterSchema",
778
+ "doc": {
779
+ "__schema": "DocSchema",
785
780
  "location": {
786
781
  "filePath": "refactoring.main.runtime.ts",
787
- "line": 163,
788
- "character": 5
782
+ "line": 158,
783
+ "character": 3
789
784
  },
790
- "name": "components",
791
- "type": {
792
- "__schema": "TypeArraySchema",
785
+ "raw": "/**\n * rename multiple packages dependencies.\n * this method changes the source code of the component, but doesn't write to the filesystem.\n */",
786
+ "comment": "rename multiple packages dependencies.\nthis method changes the source code of the component, but doesn't write to the filesystem."
787
+ },
788
+ "signature": "(method) RefactoringMain.replaceMultipleStrings(components: Component[], stringsToReplace?: MultipleStringsReplacement, transformers?: SourceFileTransformer[], shouldAvoidPackageNames?: boolean): Promise<{\n changedComponents: Component[];\n}>",
789
+ "name": "replaceMultipleStrings",
790
+ "params": [
791
+ {
792
+ "__schema": "ParameterSchema",
793
793
  "location": {
794
794
  "filePath": "refactoring.main.runtime.ts",
795
795
  "line": 163,
796
- "character": 17
796
+ "character": 5
797
797
  },
798
+ "name": "components",
798
799
  "type": {
799
- "__schema": "TypeRefSchema",
800
+ "__schema": "TypeArraySchema",
800
801
  "location": {
801
802
  "filePath": "refactoring.main.runtime.ts",
802
803
  "line": 163,
803
804
  "character": 17
804
805
  },
805
- "name": "Component",
806
- "componentId": {
807
- "scope": "teambit.component",
808
- "name": "component"
806
+ "type": {
807
+ "__schema": "TypeRefSchema",
808
+ "location": {
809
+ "filePath": "refactoring.main.runtime.ts",
810
+ "line": 163,
811
+ "character": 17
812
+ },
813
+ "name": "Component",
814
+ "componentId": {
815
+ "scope": "teambit.component",
816
+ "name": "component"
817
+ }
809
818
  }
810
- }
811
- },
812
- "isOptional": false,
813
- "isSpread": false
814
- },
815
- {
816
- "__schema": "ParameterSchema",
817
- "location": {
818
- "filePath": "refactoring.main.runtime.ts",
819
- "line": 164,
820
- "character": 5
819
+ },
820
+ "isOptional": false,
821
+ "isSpread": false
821
822
  },
822
- "name": "stringsToReplace",
823
- "type": {
824
- "__schema": "TypeRefSchema",
823
+ {
824
+ "__schema": "ParameterSchema",
825
825
  "location": {
826
826
  "filePath": "refactoring.main.runtime.ts",
827
827
  "line": 164,
828
- "character": 23
828
+ "character": 5
829
829
  },
830
- "name": "MultipleStringsReplacement"
831
- },
832
- "isOptional": true,
833
- "defaultValue": "[]",
834
- "isSpread": false
835
- },
836
- {
837
- "__schema": "ParameterSchema",
838
- "location": {
839
- "filePath": "refactoring.main.runtime.ts",
840
- "line": 165,
841
- "character": 5
830
+ "name": "stringsToReplace",
831
+ "type": {
832
+ "__schema": "TypeRefSchema",
833
+ "location": {
834
+ "filePath": "refactoring.main.runtime.ts",
835
+ "line": 164,
836
+ "character": 23
837
+ },
838
+ "name": "MultipleStringsReplacement"
839
+ },
840
+ "isOptional": true,
841
+ "defaultValue": "[]",
842
+ "isSpread": false
842
843
  },
843
- "name": "transformers",
844
- "type": {
845
- "__schema": "TypeArraySchema",
844
+ {
845
+ "__schema": "ParameterSchema",
846
846
  "location": {
847
847
  "filePath": "refactoring.main.runtime.ts",
848
848
  "line": 165,
849
- "character": 20
849
+ "character": 5
850
850
  },
851
+ "name": "transformers",
851
852
  "type": {
852
- "__schema": "TypeRefSchema",
853
+ "__schema": "TypeArraySchema",
853
854
  "location": {
854
855
  "filePath": "refactoring.main.runtime.ts",
855
856
  "line": 165,
856
857
  "character": 20
857
858
  },
858
- "name": "SourceFileTransformer",
859
- "componentId": {
860
- "scope": "teambit.typescript",
861
- "name": "typescript"
859
+ "type": {
860
+ "__schema": "TypeRefSchema",
861
+ "location": {
862
+ "filePath": "refactoring.main.runtime.ts",
863
+ "line": 165,
864
+ "character": 20
865
+ },
866
+ "name": "SourceFileTransformer",
867
+ "componentId": {
868
+ "scope": "teambit.typescript",
869
+ "name": "typescript"
870
+ }
862
871
  }
863
- }
864
- },
865
- "isOptional": true,
866
- "isSpread": false
867
- },
868
- {
869
- "__schema": "ParameterSchema",
870
- "location": {
871
- "filePath": "refactoring.main.runtime.ts",
872
- "line": 166,
873
- "character": 5
872
+ },
873
+ "isOptional": true,
874
+ "isSpread": false
874
875
  },
875
- "name": "shouldAvoidPackageNames",
876
- "type": {
877
- "__schema": "InferenceTypeSchema",
876
+ {
877
+ "__schema": "ParameterSchema",
878
878
  "location": {
879
879
  "filePath": "refactoring.main.runtime.ts",
880
880
  "line": 166,
881
881
  "character": 5
882
882
  },
883
- "type": "boolean"
884
- },
885
- "isOptional": true,
886
- "defaultValue": "false",
887
- "isSpread": false
888
- }
889
- ],
890
- "returnType": {
891
- "__schema": "TypeRefSchema",
892
- "location": {
893
- "filePath": "refactoring.main.runtime.ts",
894
- "line": 167,
895
- "character": 6
896
- },
897
- "name": "Promise",
898
- "typeArgs": [
899
- {
900
- "__schema": "TypeLiteralSchema",
901
- "location": {
902
- "filePath": "refactoring.main.runtime.ts",
903
- "line": 167,
904
- "character": 14
883
+ "name": "shouldAvoidPackageNames",
884
+ "type": {
885
+ "__schema": "InferenceTypeSchema",
886
+ "location": {
887
+ "filePath": "refactoring.main.runtime.ts",
888
+ "line": 166,
889
+ "character": 5
890
+ },
891
+ "type": "boolean"
905
892
  },
906
- "members": [
907
- {
908
- "__schema": "VariableLikeSchema",
909
- "location": {
910
- "filePath": "refactoring.main.runtime.ts",
911
- "line": 168,
912
- "character": 5
913
- },
914
- "signature": "(property) changedComponents: Component[]",
915
- "name": "changedComponents",
916
- "type": {
917
- "__schema": "TypeArraySchema",
893
+ "isOptional": true,
894
+ "defaultValue": "false",
895
+ "isSpread": false
896
+ }
897
+ ],
898
+ "returnType": {
899
+ "__schema": "TypeRefSchema",
900
+ "location": {
901
+ "filePath": "refactoring.main.runtime.ts",
902
+ "line": 167,
903
+ "character": 6
904
+ },
905
+ "name": "Promise",
906
+ "typeArgs": [
907
+ {
908
+ "__schema": "TypeLiteralSchema",
909
+ "location": {
910
+ "filePath": "refactoring.main.runtime.ts",
911
+ "line": 167,
912
+ "character": 14
913
+ },
914
+ "members": [
915
+ {
916
+ "__schema": "VariableLikeSchema",
918
917
  "location": {
919
918
  "filePath": "refactoring.main.runtime.ts",
920
919
  "line": 168,
921
- "character": 24
920
+ "character": 5
922
921
  },
922
+ "signature": "(property) changedComponents: Component[]",
923
+ "name": "changedComponents",
923
924
  "type": {
924
- "__schema": "TypeRefSchema",
925
+ "__schema": "TypeArraySchema",
925
926
  "location": {
926
927
  "filePath": "refactoring.main.runtime.ts",
927
928
  "line": 168,
928
929
  "character": 24
929
930
  },
930
- "name": "Component",
931
- "componentId": {
932
- "scope": "teambit.component",
933
- "name": "component"
931
+ "type": {
932
+ "__schema": "TypeRefSchema",
933
+ "location": {
934
+ "filePath": "refactoring.main.runtime.ts",
935
+ "line": 168,
936
+ "character": 24
937
+ },
938
+ "name": "Component",
939
+ "componentId": {
940
+ "scope": "teambit.component",
941
+ "name": "component"
942
+ }
934
943
  }
935
- }
936
- },
937
- "isOptional": false
938
- }
939
- ]
940
- }
944
+ },
945
+ "isOptional": false
946
+ }
947
+ ]
948
+ }
949
+ ]
950
+ },
951
+ "modifiers": [
952
+ "async"
941
953
  ]
942
954
  },
943
- "modifiers": [
944
- "async"
945
- ]
946
- },
947
- {
948
- "__schema": "VariableLikeSchema",
949
- "location": {
950
- "filePath": "refactoring.main.runtime.ts",
951
- "line": 313,
952
- "character": 3
953
- },
954
- "signature": "(property) RefactoringMain.slots: never[]",
955
- "name": "slots",
956
- "type": {
957
- "__schema": "InferenceTypeSchema",
955
+ {
956
+ "__schema": "VariableLikeSchema",
958
957
  "location": {
959
958
  "filePath": "refactoring.main.runtime.ts",
960
959
  "line": 313,
961
960
  "character": 3
962
961
  },
963
- "type": "never[]"
964
- },
965
- "isOptional": true,
966
- "defaultValue": "[]"
967
- },
968
- {
969
- "__schema": "VariableLikeSchema",
970
- "location": {
971
- "filePath": "refactoring.main.runtime.ts",
972
- "line": 314,
973
- "character": 3
962
+ "signature": "(property) RefactoringMain.slots: never[]",
963
+ "name": "slots",
964
+ "type": {
965
+ "__schema": "InferenceTypeSchema",
966
+ "location": {
967
+ "filePath": "refactoring.main.runtime.ts",
968
+ "line": 313,
969
+ "character": 3
970
+ },
971
+ "type": "never[]"
972
+ },
973
+ "isOptional": true,
974
+ "defaultValue": "[]"
974
975
  },
975
- "signature": "(property) RefactoringMain.dependencies: Aspect[]",
976
- "name": "dependencies",
977
- "type": {
978
- "__schema": "InferenceTypeSchema",
976
+ {
977
+ "__schema": "VariableLikeSchema",
979
978
  "location": {
980
979
  "filePath": "refactoring.main.runtime.ts",
981
980
  "line": 314,
982
981
  "character": 3
983
982
  },
984
- "type": "Aspect[]"
985
- },
986
- "isOptional": true,
987
- "defaultValue": "[ComponentAspect, PkgAspect, CLIAspect, EnvsAspect]"
988
- },
989
- {
990
- "__schema": "VariableLikeSchema",
991
- "location": {
992
- "filePath": "refactoring.main.runtime.ts",
993
- "line": 315,
994
- "character": 3
983
+ "signature": "(property) RefactoringMain.dependencies: Aspect[]",
984
+ "name": "dependencies",
985
+ "type": {
986
+ "__schema": "InferenceTypeSchema",
987
+ "location": {
988
+ "filePath": "refactoring.main.runtime.ts",
989
+ "line": 314,
990
+ "character": 3
991
+ },
992
+ "type": "Aspect[]"
993
+ },
994
+ "isOptional": true,
995
+ "defaultValue": "[ComponentAspect, PkgAspect, CLIAspect, EnvsAspect]"
995
996
  },
996
- "signature": "(property) RefactoringMain.runtime: RuntimeDefinition",
997
- "name": "runtime",
998
- "type": {
999
- "__schema": "InferenceTypeSchema",
997
+ {
998
+ "__schema": "VariableLikeSchema",
1000
999
  "location": {
1001
1000
  "filePath": "refactoring.main.runtime.ts",
1002
1001
  "line": 315,
1003
1002
  "character": 3
1004
1003
  },
1005
- "type": "RuntimeDefinition"
1006
- },
1007
- "isOptional": true,
1008
- "defaultValue": "MainRuntime"
1009
- },
1010
- {
1011
- "__schema": "FunctionLikeSchema",
1012
- "location": {
1013
- "filePath": "refactoring.main.runtime.ts",
1014
- "line": 316,
1015
- "character": 3
1016
- },
1017
- "signature": "(method) RefactoringMain.provider([componentMain, pkg, cli, envMain]: [ComponentMain, PkgMain, CLIMain, EnvsMain]): Promise<RefactoringMain>",
1018
- "name": "provider",
1019
- "params": [
1020
- {
1021
- "__schema": "ParameterSchema",
1004
+ "signature": "(property) RefactoringMain.runtime: RuntimeDefinition",
1005
+ "name": "runtime",
1006
+ "type": {
1007
+ "__schema": "InferenceTypeSchema",
1022
1008
  "location": {
1023
1009
  "filePath": "refactoring.main.runtime.ts",
1024
- "line": 316,
1025
- "character": 25
1010
+ "line": 315,
1011
+ "character": 3
1026
1012
  },
1027
- "name": "[ componentMain, pkg, cli, envMain ]",
1028
- "type": {
1029
- "__schema": "TupleTypeSchema",
1013
+ "type": "RuntimeDefinition"
1014
+ },
1015
+ "isOptional": true,
1016
+ "defaultValue": "MainRuntime"
1017
+ },
1018
+ {
1019
+ "__schema": "FunctionLikeSchema",
1020
+ "location": {
1021
+ "filePath": "refactoring.main.runtime.ts",
1022
+ "line": 316,
1023
+ "character": 3
1024
+ },
1025
+ "signature": "(method) RefactoringMain.provider([componentMain, pkg, cli, envMain]: [ComponentMain, PkgMain, CLIMain, EnvsMain]): Promise<RefactoringMain>",
1026
+ "name": "provider",
1027
+ "params": [
1028
+ {
1029
+ "__schema": "ParameterSchema",
1030
1030
  "location": {
1031
1031
  "filePath": "refactoring.main.runtime.ts",
1032
1032
  "line": 316,
1033
- "character": 61
1033
+ "character": 25
1034
1034
  },
1035
- "elements": [
1036
- {
1037
- "__schema": "TypeRefSchema",
1038
- "location": {
1039
- "filePath": "refactoring.main.runtime.ts",
1040
- "line": 316,
1041
- "character": 62
1042
- },
1043
- "name": "ComponentMain",
1044
- "componentId": {
1045
- "scope": "teambit.component",
1046
- "name": "component"
1047
- }
1035
+ "name": "[ componentMain, pkg, cli, envMain ]",
1036
+ "type": {
1037
+ "__schema": "TupleTypeSchema",
1038
+ "location": {
1039
+ "filePath": "refactoring.main.runtime.ts",
1040
+ "line": 316,
1041
+ "character": 61
1048
1042
  },
1049
- {
1050
- "__schema": "TypeRefSchema",
1051
- "location": {
1052
- "filePath": "refactoring.main.runtime.ts",
1053
- "line": 316,
1054
- "character": 77
1043
+ "elements": [
1044
+ {
1045
+ "__schema": "TypeRefSchema",
1046
+ "location": {
1047
+ "filePath": "refactoring.main.runtime.ts",
1048
+ "line": 316,
1049
+ "character": 62
1050
+ },
1051
+ "name": "ComponentMain",
1052
+ "componentId": {
1053
+ "scope": "teambit.component",
1054
+ "name": "component"
1055
+ }
1055
1056
  },
1056
- "name": "PkgMain",
1057
- "componentId": {
1058
- "scope": "teambit.pkg",
1059
- "name": "pkg"
1060
- }
1061
- },
1062
- {
1063
- "__schema": "TypeRefSchema",
1064
- "location": {
1065
- "filePath": "refactoring.main.runtime.ts",
1066
- "line": 316,
1067
- "character": 86
1057
+ {
1058
+ "__schema": "TypeRefSchema",
1059
+ "location": {
1060
+ "filePath": "refactoring.main.runtime.ts",
1061
+ "line": 316,
1062
+ "character": 77
1063
+ },
1064
+ "name": "PkgMain",
1065
+ "componentId": {
1066
+ "scope": "teambit.pkg",
1067
+ "name": "pkg"
1068
+ }
1068
1069
  },
1069
- "name": "CLIMain",
1070
- "componentId": {
1071
- "scope": "teambit.harmony",
1072
- "name": "cli"
1073
- }
1074
- },
1075
- {
1076
- "__schema": "TypeRefSchema",
1077
- "location": {
1078
- "filePath": "refactoring.main.runtime.ts",
1079
- "line": 316,
1080
- "character": 95
1070
+ {
1071
+ "__schema": "TypeRefSchema",
1072
+ "location": {
1073
+ "filePath": "refactoring.main.runtime.ts",
1074
+ "line": 316,
1075
+ "character": 86
1076
+ },
1077
+ "name": "CLIMain",
1078
+ "componentId": {
1079
+ "scope": "teambit.harmony",
1080
+ "name": "cli"
1081
+ }
1081
1082
  },
1082
- "name": "EnvsMain",
1083
- "componentId": {
1084
- "scope": "teambit.envs",
1085
- "name": "envs"
1083
+ {
1084
+ "__schema": "TypeRefSchema",
1085
+ "location": {
1086
+ "filePath": "refactoring.main.runtime.ts",
1087
+ "line": 316,
1088
+ "character": 95
1089
+ },
1090
+ "name": "EnvsMain",
1091
+ "componentId": {
1092
+ "scope": "teambit.envs",
1093
+ "name": "envs"
1094
+ }
1086
1095
  }
1087
- }
1088
- ]
1096
+ ]
1097
+ },
1098
+ "isOptional": false,
1099
+ "isSpread": false
1100
+ }
1101
+ ],
1102
+ "returnType": {
1103
+ "__schema": "InferenceTypeSchema",
1104
+ "location": {
1105
+ "filePath": "refactoring.main.runtime.ts",
1106
+ "line": 316,
1107
+ "character": 3
1089
1108
  },
1090
- "isOptional": false,
1091
- "isSpread": false
1092
- }
1093
- ],
1094
- "returnType": {
1095
- "__schema": "InferenceTypeSchema",
1096
- "location": {
1097
- "filePath": "refactoring.main.runtime.ts",
1098
- "line": 316,
1099
- "character": 3
1109
+ "type": "Promise<RefactoringMain>"
1100
1110
  },
1101
- "type": "Promise<RefactoringMain>"
1102
- },
1103
- "modifiers": [
1104
- "static",
1105
- "async"
1106
- ]
1107
- }
1108
- ],
1109
- "extendsNodes": [],
1110
- "implementNodes": []
1111
+ "modifiers": [
1112
+ "static",
1113
+ "async"
1114
+ ]
1115
+ }
1116
+ ],
1117
+ "extendsNodes": [],
1118
+ "implementNodes": []
1119
+ }
1111
1120
  },
1112
1121
  {
1113
- "__schema": "TypeSchema",
1122
+ "__schema": "ExportSchema",
1114
1123
  "location": {
1115
- "filePath": "refactoring.main.runtime.ts",
1116
- "line": 27,
1117
- "character": 1
1124
+ "filePath": "index.ts",
1125
+ "line": 3,
1126
+ "character": 32
1118
1127
  },
1119
- "signature": "type MultipleStringsReplacement = {\n oldStr: string;\n newStr: string;\n}[]",
1120
1128
  "name": "MultipleStringsReplacement",
1121
- "type": {
1122
- "__schema": "TypeRefSchema",
1129
+ "exportNode": {
1130
+ "__schema": "TypeSchema",
1123
1131
  "location": {
1124
1132
  "filePath": "refactoring.main.runtime.ts",
1125
1133
  "line": 27,
1126
- "character": 42
1134
+ "character": 1
1127
1135
  },
1128
- "name": "Array",
1129
- "typeArgs": [
1130
- {
1131
- "__schema": "TypeLiteralSchema",
1132
- "location": {
1133
- "filePath": "refactoring.main.runtime.ts",
1134
- "line": 27,
1135
- "character": 48
1136
- },
1137
- "members": [
1138
- {
1139
- "__schema": "VariableLikeSchema",
1140
- "location": {
1141
- "filePath": "refactoring.main.runtime.ts",
1142
- "line": 27,
1143
- "character": 50
1144
- },
1145
- "signature": "(property) oldStr: string",
1146
- "name": "oldStr",
1147
- "type": {
1148
- "__schema": "KeywordTypeSchema",
1136
+ "signature": "type MultipleStringsReplacement = {\n oldStr: string;\n newStr: string;\n}[]",
1137
+ "name": "MultipleStringsReplacement",
1138
+ "type": {
1139
+ "__schema": "TypeRefSchema",
1140
+ "location": {
1141
+ "filePath": "refactoring.main.runtime.ts",
1142
+ "line": 27,
1143
+ "character": 42
1144
+ },
1145
+ "name": "Array",
1146
+ "typeArgs": [
1147
+ {
1148
+ "__schema": "TypeLiteralSchema",
1149
+ "location": {
1150
+ "filePath": "refactoring.main.runtime.ts",
1151
+ "line": 27,
1152
+ "character": 48
1153
+ },
1154
+ "members": [
1155
+ {
1156
+ "__schema": "VariableLikeSchema",
1149
1157
  "location": {
1150
1158
  "filePath": "refactoring.main.runtime.ts",
1151
1159
  "line": 27,
1152
- "character": 58
1160
+ "character": 50
1153
1161
  },
1154
- "name": "string"
1155
- },
1156
- "isOptional": false
1157
- },
1158
- {
1159
- "__schema": "VariableLikeSchema",
1160
- "location": {
1161
- "filePath": "refactoring.main.runtime.ts",
1162
- "line": 27,
1163
- "character": 66
1162
+ "signature": "(property) oldStr: string",
1163
+ "name": "oldStr",
1164
+ "type": {
1165
+ "__schema": "KeywordTypeSchema",
1166
+ "location": {
1167
+ "filePath": "refactoring.main.runtime.ts",
1168
+ "line": 27,
1169
+ "character": 58
1170
+ },
1171
+ "name": "string"
1172
+ },
1173
+ "isOptional": false
1164
1174
  },
1165
- "signature": "(property) newStr: string",
1166
- "name": "newStr",
1167
- "type": {
1168
- "__schema": "KeywordTypeSchema",
1175
+ {
1176
+ "__schema": "VariableLikeSchema",
1169
1177
  "location": {
1170
1178
  "filePath": "refactoring.main.runtime.ts",
1171
1179
  "line": 27,
1172
- "character": 74
1180
+ "character": 66
1173
1181
  },
1174
- "name": "string"
1175
- },
1176
- "isOptional": false
1177
- }
1178
- ]
1179
- }
1180
- ]
1182
+ "signature": "(property) newStr: string",
1183
+ "name": "newStr",
1184
+ "type": {
1185
+ "__schema": "KeywordTypeSchema",
1186
+ "location": {
1187
+ "filePath": "refactoring.main.runtime.ts",
1188
+ "line": 27,
1189
+ "character": 74
1190
+ },
1191
+ "name": "string"
1192
+ },
1193
+ "isOptional": false
1194
+ }
1195
+ ]
1196
+ }
1197
+ ]
1198
+ }
1181
1199
  }
1182
1200
  },
1183
1201
  {
@@ -1191,30 +1209,39 @@
1191
1209
  "type": "Identifier"
1192
1210
  },
1193
1211
  {
1194
- "__schema": "VariableLikeSchema",
1212
+ "__schema": "ExportSchema",
1195
1213
  "location": {
1196
- "filePath": "refactoring.aspect.ts",
1197
- "line": 3,
1198
- "character": 14
1214
+ "filePath": "index.ts",
1215
+ "line": 5,
1216
+ "character": 10
1199
1217
  },
1200
- "signature": "const RefactoringAspect: Aspect",
1201
1218
  "name": "RefactoringAspect",
1202
- "type": {
1203
- "__schema": "TypeRefSchema",
1219
+ "exportNode": {
1220
+ "__schema": "VariableLikeSchema",
1204
1221
  "location": {
1205
1222
  "filePath": "refactoring.aspect.ts",
1206
1223
  "line": 3,
1207
1224
  "character": 14
1208
1225
  },
1209
- "name": "Aspect",
1210
- "componentId": {
1211
- "scope": "teambit.harmony",
1212
- "name": "harmony",
1213
- "version": "0.4.6"
1214
- }
1215
- },
1216
- "isOptional": false,
1217
- "defaultValue": "Aspect.create({\n id: 'teambit.component/refactoring',\n})"
1226
+ "signature": "const RefactoringAspect: Aspect",
1227
+ "name": "RefactoringAspect",
1228
+ "type": {
1229
+ "__schema": "TypeRefSchema",
1230
+ "location": {
1231
+ "filePath": "refactoring.aspect.ts",
1232
+ "line": 3,
1233
+ "character": 14
1234
+ },
1235
+ "name": "Aspect",
1236
+ "componentId": {
1237
+ "scope": "teambit.harmony",
1238
+ "name": "harmony",
1239
+ "version": "0.4.6"
1240
+ }
1241
+ },
1242
+ "isOptional": false,
1243
+ "defaultValue": "Aspect.create({\n id: 'teambit.component/refactoring',\n})"
1244
+ }
1218
1245
  }
1219
1246
  ],
1220
1247
  "internals": []
@@ -2450,7 +2477,7 @@
2450
2477
  "componentId": {
2451
2478
  "scope": "teambit.component",
2452
2479
  "name": "refactoring",
2453
- "version": "1.0.257"
2480
+ "version": "1.0.259"
2454
2481
  },
2455
2482
  "taggedModuleExports": []
2456
2483
  }