@teambit/isolator 1.0.311 → 1.0.313

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.
@@ -1243,7 +1243,7 @@
1243
1243
  "_legacy": {
1244
1244
  "scope": "teambit.component",
1245
1245
  "name": "isolator",
1246
- "version": "1.0.311"
1246
+ "version": "1.0.313"
1247
1247
  },
1248
1248
  "_scope": "teambit.component"
1249
1249
  }
@@ -2472,7 +2472,7 @@
2472
2472
  "_legacy": {
2473
2473
  "scope": "teambit.component",
2474
2474
  "name": "isolator",
2475
- "version": "1.0.311"
2475
+ "version": "1.0.313"
2476
2476
  },
2477
2477
  "_scope": "teambit.component"
2478
2478
  }
@@ -2758,7 +2758,7 @@
2758
2758
  "_legacy": {
2759
2759
  "scope": "teambit.component",
2760
2760
  "name": "isolator",
2761
- "version": "1.0.311"
2761
+ "version": "1.0.313"
2762
2762
  },
2763
2763
  "_scope": "teambit.component"
2764
2764
  }
@@ -2787,7 +2787,7 @@
2787
2787
  "_legacy": {
2788
2788
  "scope": "teambit.component",
2789
2789
  "name": "isolator",
2790
- "version": "1.0.311"
2790
+ "version": "1.0.313"
2791
2791
  },
2792
2792
  "_scope": "teambit.component"
2793
2793
  }
@@ -5587,7 +5587,7 @@
5587
5587
  "_legacy": {
5588
5588
  "scope": "teambit.component",
5589
5589
  "name": "isolator",
5590
- "version": "1.0.311"
5590
+ "version": "1.0.313"
5591
5591
  },
5592
5592
  "_scope": "teambit.component"
5593
5593
  }
@@ -5901,362 +5901,247 @@
5901
5901
  {
5902
5902
  "__schema": "ModuleSchema",
5903
5903
  "location": {
5904
- "filePath": "capsule/container.ts",
5904
+ "filePath": "capsule/capsule.ts",
5905
5905
  "line": 1,
5906
5906
  "character": 1
5907
5907
  },
5908
5908
  "exports": [
5909
5909
  {
5910
- "__schema": "InterfaceSchema",
5910
+ "__schema": "ClassSchema",
5911
5911
  "location": {
5912
- "filePath": "capsule/container.ts",
5913
- "line": 12,
5912
+ "filePath": "capsule/capsule.ts",
5913
+ "line": 13,
5914
5914
  "character": 1
5915
5915
  },
5916
- "signature": "interface BitExecOption",
5917
- "name": "BitExecOption",
5916
+ "signature": "class Capsule",
5917
+ "name": "Capsule",
5918
5918
  "members": [
5919
5919
  {
5920
- "__schema": "VariableLikeSchema",
5921
- "location": {
5922
- "filePath": "capsule/container.ts",
5923
- "line": 13,
5924
- "character": 3
5925
- },
5926
- "signature": "(property) BitExecOption.cwd: string",
5927
- "name": "cwd",
5928
- "type": {
5929
- "__schema": "KeywordTypeSchema",
5930
- "location": {
5931
- "filePath": "capsule/container.ts",
5932
- "line": 13,
5933
- "character": 8
5934
- },
5935
- "name": "string"
5936
- },
5937
- "isOptional": false
5938
- },
5939
- {
5940
- "__schema": "VariableLikeSchema",
5920
+ "__schema": "ConstructorSchema",
5941
5921
  "location": {
5942
- "filePath": "capsule/container.ts",
5943
- "line": 14,
5922
+ "filePath": "capsule/capsule.ts",
5923
+ "line": 15,
5944
5924
  "character": 3
5945
5925
  },
5946
- "signature": "(property) BitExecOption.stdio?: number | Stream | \"pipe\" | \"ignore\" | \"inherit\" | \"ipc\" | undefined",
5947
- "name": "stdio",
5948
- "type": {
5949
- "__schema": "TypeUnionSchema",
5950
- "location": {
5951
- "filePath": "capsule/container.ts",
5952
- "line": 14,
5953
- "character": 11
5954
- },
5955
- "types": [
5956
- {
5957
- "__schema": "LiteralTypeSchema",
5958
- "location": {
5959
- "filePath": "capsule/container.ts",
5960
- "line": 14,
5961
- "character": 11
5962
- },
5963
- "name": "'pipe'"
5926
+ "signature": "constructor Capsule(container: FsContainer, fs: NodeFS, console: Console, state: State, component: Component): Capsule",
5927
+ "name": "constructor",
5928
+ "params": [
5929
+ {
5930
+ "__schema": "ParameterSchema",
5931
+ "location": {
5932
+ "filePath": "capsule/capsule.ts",
5933
+ "line": 19,
5934
+ "character": 5
5964
5935
  },
5965
- {
5966
- "__schema": "LiteralTypeSchema",
5936
+ "name": "container",
5937
+ "type": {
5938
+ "__schema": "TypeRefSchema",
5967
5939
  "location": {
5968
- "filePath": "capsule/container.ts",
5969
- "line": 14,
5970
- "character": 20
5940
+ "filePath": "capsule/capsule.ts",
5941
+ "line": 19,
5942
+ "character": 26
5971
5943
  },
5972
- "name": "'ipc'"
5944
+ "name": "FsContainer"
5973
5945
  },
5974
- {
5975
- "__schema": "LiteralTypeSchema",
5976
- "location": {
5977
- "filePath": "capsule/container.ts",
5978
- "line": 14,
5979
- "character": 28
5980
- },
5981
- "name": "'ignore'"
5946
+ "isOptional": false,
5947
+ "isSpread": false
5948
+ },
5949
+ {
5950
+ "__schema": "ParameterSchema",
5951
+ "location": {
5952
+ "filePath": "capsule/capsule.ts",
5953
+ "line": 23,
5954
+ "character": 5
5982
5955
  },
5983
- {
5984
- "__schema": "LiteralTypeSchema",
5956
+ "name": "fs",
5957
+ "type": {
5958
+ "__schema": "TypeRefSchema",
5985
5959
  "location": {
5986
- "filePath": "capsule/container.ts",
5987
- "line": 14,
5988
- "character": 39
5960
+ "filePath": "capsule/capsule.ts",
5961
+ "line": 23,
5962
+ "character": 18
5989
5963
  },
5990
- "name": "'inherit'"
5964
+ "name": "NodeFS",
5965
+ "packageName": "@teambit/any-fs"
5991
5966
  },
5992
- {
5967
+ "isOptional": false,
5968
+ "isSpread": false
5969
+ },
5970
+ {
5971
+ "__schema": "ParameterSchema",
5972
+ "location": {
5973
+ "filePath": "capsule/capsule.ts",
5974
+ "line": 27,
5975
+ "character": 5
5976
+ },
5977
+ "name": "console",
5978
+ "type": {
5993
5979
  "__schema": "TypeRefSchema",
5994
5980
  "location": {
5995
- "filePath": "capsule/container.ts",
5996
- "line": 14,
5997
- "character": 51
5981
+ "filePath": "capsule/capsule.ts",
5982
+ "line": 27,
5983
+ "character": 23
5998
5984
  },
5999
- "name": "Stream",
6000
- "packageName": "stream"
5985
+ "name": "Console",
5986
+ "packageName": "@teambit/capsule"
6001
5987
  },
6002
- {
6003
- "__schema": "KeywordTypeSchema",
5988
+ "isOptional": true,
5989
+ "defaultValue": "new Console()",
5990
+ "isSpread": false
5991
+ },
5992
+ {
5993
+ "__schema": "ParameterSchema",
5994
+ "location": {
5995
+ "filePath": "capsule/capsule.ts",
5996
+ "line": 31,
5997
+ "character": 5
5998
+ },
5999
+ "name": "state",
6000
+ "type": {
6001
+ "__schema": "TypeRefSchema",
6004
6002
  "location": {
6005
- "filePath": "capsule/container.ts",
6006
- "line": 14,
6007
- "character": 60
6003
+ "filePath": "capsule/capsule.ts",
6004
+ "line": 31,
6005
+ "character": 21
6008
6006
  },
6009
- "name": "number"
6007
+ "name": "State",
6008
+ "packageName": "@teambit/capsule"
6010
6009
  },
6011
- {
6012
- "__schema": "KeywordTypeSchema",
6010
+ "isOptional": false,
6011
+ "isSpread": false
6012
+ },
6013
+ {
6014
+ "__schema": "ParameterSchema",
6015
+ "location": {
6016
+ "filePath": "capsule/capsule.ts",
6017
+ "line": 32,
6018
+ "character": 5
6019
+ },
6020
+ "name": "component",
6021
+ "type": {
6022
+ "__schema": "TypeRefSchema",
6013
6023
  "location": {
6014
- "filePath": "capsule/container.ts",
6015
- "line": 14,
6016
- "character": 69
6024
+ "filePath": "capsule/capsule.ts",
6025
+ "line": 32,
6026
+ "character": 25
6017
6027
  },
6018
- "name": "undefined"
6019
- }
6020
- ]
6028
+ "name": "Component",
6029
+ "componentId": {
6030
+ "scope": "teambit.component",
6031
+ "name": "component"
6032
+ }
6033
+ },
6034
+ "isOptional": false,
6035
+ "isSpread": false
6036
+ }
6037
+ ],
6038
+ "returnType": {
6039
+ "__schema": "ThisTypeSchema",
6040
+ "location": {
6041
+ "filePath": "capsule/capsule.ts",
6042
+ "line": 13,
6043
+ "character": 1
6044
+ },
6045
+ "name": "Capsule"
6021
6046
  },
6022
- "isOptional": true
6023
- }
6024
- ],
6025
- "extendsNodes": [
6047
+ "modifiers": []
6048
+ },
6026
6049
  {
6027
- "__schema": "ExpressionWithTypeArgumentsSchema",
6050
+ "__schema": "GetAccessorSchema",
6028
6051
  "location": {
6029
- "filePath": "capsule/container.ts",
6030
- "line": 12,
6031
- "character": 40
6052
+ "filePath": "capsule/capsule.ts",
6053
+ "line": 41,
6054
+ "character": 3
6032
6055
  },
6033
- "name": "extends ExecOptions",
6034
- "typeArgs": [],
6035
- "expression": {
6036
- "__schema": "TypeRefSchema",
6056
+ "signature": "(getter) Capsule.wrkDir: string",
6057
+ "name": "wrkDir",
6058
+ "type": {
6059
+ "__schema": "KeywordTypeSchema",
6037
6060
  "location": {
6038
- "filePath": "capsule/container.ts",
6039
- "line": 12,
6040
- "character": 40
6061
+ "filePath": "capsule/capsule.ts",
6062
+ "line": 41,
6063
+ "character": 17
6041
6064
  },
6042
- "name": "ExecOptions",
6043
- "componentId": {
6044
- "_legacy": {
6045
- "scope": "teambit.component",
6046
- "name": "isolator",
6047
- "version": "1.0.311"
6048
- },
6049
- "_scope": "teambit.component"
6050
- }
6065
+ "name": "string"
6051
6066
  }
6052
- }
6053
- ]
6054
- },
6055
- {
6056
- "__schema": "InterfaceSchema",
6057
- "location": {
6058
- "filePath": "capsule/container.ts",
6059
- "line": 16,
6060
- "character": 1
6061
- },
6062
- "signature": "interface BitContainerConfig",
6063
- "name": "BitContainerConfig",
6064
- "members": [
6067
+ },
6065
6068
  {
6066
- "__schema": "VariableLikeSchema",
6069
+ "__schema": "GetAccessorSchema",
6067
6070
  "location": {
6068
- "filePath": "capsule/container.ts",
6069
- "line": 17,
6071
+ "filePath": "capsule/capsule.ts",
6072
+ "line": 45,
6070
6073
  "character": 3
6071
6074
  },
6072
- "signature": "(property) BitContainerConfig.other?: string | undefined",
6073
- "name": "other",
6075
+ "signature": "(getter) Capsule.path: string",
6076
+ "name": "path",
6074
6077
  "type": {
6075
6078
  "__schema": "KeywordTypeSchema",
6076
6079
  "location": {
6077
- "filePath": "capsule/container.ts",
6078
- "line": 17,
6079
- "character": 11
6080
+ "filePath": "capsule/capsule.ts",
6081
+ "line": 45,
6082
+ "character": 15
6080
6083
  },
6081
6084
  "name": "string"
6082
- },
6083
- "isOptional": true
6084
- }
6085
- ],
6086
- "extendsNodes": [
6087
- {
6088
- "__schema": "ExpressionWithTypeArgumentsSchema",
6089
- "location": {
6090
- "filePath": "capsule/container.ts",
6091
- "line": 16,
6092
- "character": 45
6093
- },
6094
- "name": "extends ContainerFactoryOptions",
6095
- "typeArgs": [],
6096
- "expression": {
6097
- "__schema": "TypeRefSchema",
6098
- "location": {
6099
- "filePath": "capsule/container.ts",
6100
- "line": 16,
6101
- "character": 45
6102
- },
6103
- "name": "ContainerFactoryOptions",
6104
- "componentId": {
6105
- "_legacy": {
6106
- "scope": "teambit.component",
6107
- "name": "isolator",
6108
- "version": "1.0.311"
6109
- },
6110
- "_scope": "teambit.component"
6111
- }
6112
6085
  }
6113
- }
6114
- ]
6115
- },
6116
- {
6117
- "__schema": "ClassSchema",
6118
- "location": {
6119
- "filePath": "capsule/container.ts",
6120
- "line": 20,
6121
- "character": 1
6122
- },
6123
- "signature": "class FsContainer",
6124
- "name": "FsContainer",
6125
- "members": [
6126
- {
6127
- "__schema": "VariableLikeSchema",
6128
- "location": {
6129
- "filePath": "capsule/container.ts",
6130
- "line": 21,
6131
- "character": 3
6132
- },
6133
- "signature": "(property) FsContainer.id: string",
6134
- "name": "id",
6135
- "type": {
6136
- "__schema": "InferenceTypeSchema",
6137
- "location": {
6138
- "filePath": "capsule/container.ts",
6139
- "line": 21,
6140
- "character": 3
6141
- },
6142
- "type": "string"
6143
- },
6144
- "isOptional": true,
6145
- "defaultValue": "'FS Container'"
6146
6086
  },
6147
6087
  {
6148
- "__schema": "VariableLikeSchema",
6088
+ "__schema": "FunctionLikeSchema",
6149
6089
  "location": {
6150
- "filePath": "capsule/container.ts",
6151
- "line": 23,
6090
+ "filePath": "capsule/capsule.ts",
6091
+ "line": 49,
6152
6092
  "character": 3
6153
6093
  },
6154
- "signature": "(property) FsContainer.fs: NodeFS",
6155
- "name": "fs",
6156
- "type": {
6094
+ "signature": "(method) Capsule.start(): Promise<any>",
6095
+ "name": "start",
6096
+ "params": [],
6097
+ "returnType": {
6157
6098
  "__schema": "TypeRefSchema",
6158
6099
  "location": {
6159
- "filePath": "capsule/container.ts",
6160
- "line": 23,
6161
- "character": 3
6100
+ "filePath": "capsule/capsule.ts",
6101
+ "line": 49,
6102
+ "character": 12
6162
6103
  },
6163
- "name": "NodeFS",
6164
- "packageName": "@teambit/any-fs"
6165
- },
6166
- "isOptional": true,
6167
- "defaultValue": "new NodeFS(this.wrkDir)"
6168
- },
6169
- {
6170
- "__schema": "ConstructorSchema",
6171
- "location": {
6172
- "filePath": "capsule/container.ts",
6173
- "line": 25,
6174
- "character": 3
6175
- },
6176
- "signature": "constructor FsContainer(wrkDir: string): FsContainer",
6177
- "name": "constructor",
6178
- "params": [
6179
- {
6180
- "__schema": "ParameterSchema",
6181
- "location": {
6182
- "filePath": "capsule/container.ts",
6183
- "line": 25,
6184
- "character": 15
6185
- },
6186
- "name": "wrkDir",
6187
- "type": {
6104
+ "name": "Promise",
6105
+ "typeArgs": [
6106
+ {
6188
6107
  "__schema": "KeywordTypeSchema",
6189
6108
  "location": {
6190
- "filePath": "capsule/container.ts",
6191
- "line": 25,
6192
- "character": 32
6109
+ "filePath": "capsule/capsule.ts",
6110
+ "line": 49,
6111
+ "character": 20
6193
6112
  },
6194
- "name": "string"
6195
- },
6196
- "isOptional": false,
6197
- "isSpread": false
6198
- }
6199
- ],
6200
- "returnType": {
6201
- "__schema": "ThisTypeSchema",
6202
- "location": {
6203
- "filePath": "capsule/container.ts",
6204
- "line": 20,
6205
- "character": 1
6206
- },
6207
- "name": "FsContainer"
6113
+ "name": "any"
6114
+ }
6115
+ ]
6208
6116
  },
6209
6117
  "modifiers": []
6210
6118
  },
6211
6119
  {
6212
6120
  "__schema": "FunctionLikeSchema",
6213
6121
  "location": {
6214
- "filePath": "capsule/container.ts",
6215
- "line": 28,
6216
- "character": 3
6217
- },
6218
- "signature": "(method) FsContainer.getPath(): string",
6219
- "name": "getPath",
6220
- "params": [],
6221
- "returnType": {
6222
- "__schema": "InferenceTypeSchema",
6223
- "location": {
6224
- "filePath": "capsule/container.ts",
6225
- "line": 28,
6226
- "character": 3
6227
- },
6228
- "type": "string"
6229
- },
6230
- "modifiers": [
6231
- "public"
6232
- ]
6233
- },
6234
- {
6235
- "__schema": "FunctionLikeSchema",
6236
- "location": {
6237
- "filePath": "capsule/container.ts",
6238
- "line": 36,
6122
+ "filePath": "capsule/capsule.ts",
6123
+ "line": 53,
6239
6124
  "character": 3
6240
6125
  },
6241
- "signature": "(method) FsContainer.outputFile(file: any, data: any, options: any): Promise<void>",
6242
- "name": "outputFile",
6126
+ "signature": "(method) Capsule.execNode(executable: string, args: any, exec: ContainerExec): Promise<ContainerExec>",
6127
+ "name": "execNode",
6243
6128
  "params": [
6244
6129
  {
6245
6130
  "__schema": "ParameterSchema",
6246
6131
  "location": {
6247
- "filePath": "capsule/container.ts",
6248
- "line": 36,
6249
- "character": 14
6132
+ "filePath": "capsule/capsule.ts",
6133
+ "line": 53,
6134
+ "character": 18
6250
6135
  },
6251
- "name": "file",
6136
+ "name": "executable",
6252
6137
  "type": {
6253
- "__schema": "InferenceTypeSchema",
6138
+ "__schema": "KeywordTypeSchema",
6254
6139
  "location": {
6255
- "filePath": "capsule/container.ts",
6256
- "line": 36,
6257
- "character": 14
6140
+ "filePath": "capsule/capsule.ts",
6141
+ "line": 53,
6142
+ "character": 30
6258
6143
  },
6259
- "type": "any"
6144
+ "name": "string"
6260
6145
  },
6261
6146
  "isOptional": false,
6262
6147
  "isSpread": false
@@ -6264,19 +6149,19 @@
6264
6149
  {
6265
6150
  "__schema": "ParameterSchema",
6266
6151
  "location": {
6267
- "filePath": "capsule/container.ts",
6268
- "line": 36,
6269
- "character": 20
6152
+ "filePath": "capsule/capsule.ts",
6153
+ "line": 53,
6154
+ "character": 38
6270
6155
  },
6271
- "name": "data",
6156
+ "name": "args",
6272
6157
  "type": {
6273
- "__schema": "InferenceTypeSchema",
6158
+ "__schema": "KeywordTypeSchema",
6274
6159
  "location": {
6275
- "filePath": "capsule/container.ts",
6276
- "line": 36,
6277
- "character": 20
6160
+ "filePath": "capsule/capsule.ts",
6161
+ "line": 53,
6162
+ "character": 44
6278
6163
  },
6279
- "type": "any"
6164
+ "name": "any"
6280
6165
  },
6281
6166
  "isOptional": false,
6282
6167
  "isSpread": false
@@ -6284,19 +6169,19 @@
6284
6169
  {
6285
6170
  "__schema": "ParameterSchema",
6286
6171
  "location": {
6287
- "filePath": "capsule/container.ts",
6288
- "line": 36,
6289
- "character": 26
6172
+ "filePath": "capsule/capsule.ts",
6173
+ "line": 53,
6174
+ "character": 49
6290
6175
  },
6291
- "name": "options",
6176
+ "name": "exec",
6292
6177
  "type": {
6293
- "__schema": "InferenceTypeSchema",
6178
+ "__schema": "TypeRefSchema",
6294
6179
  "location": {
6295
- "filePath": "capsule/container.ts",
6296
- "line": 36,
6297
- "character": 26
6180
+ "filePath": "capsule/capsule.ts",
6181
+ "line": 53,
6182
+ "character": 55
6298
6183
  },
6299
- "type": "any"
6184
+ "name": "ContainerExec"
6300
6185
  },
6301
6186
  "isOptional": false,
6302
6187
  "isSpread": false
@@ -6305,91 +6190,106 @@
6305
6190
  "returnType": {
6306
6191
  "__schema": "InferenceTypeSchema",
6307
6192
  "location": {
6308
- "filePath": "capsule/container.ts",
6309
- "line": 36,
6193
+ "filePath": "capsule/capsule.ts",
6194
+ "line": 53,
6310
6195
  "character": 3
6311
6196
  },
6312
- "type": "Promise<void>"
6197
+ "type": "Promise<ContainerExec>"
6313
6198
  },
6314
- "modifiers": []
6199
+ "modifiers": [
6200
+ "async"
6201
+ ]
6315
6202
  },
6316
6203
  {
6317
6204
  "__schema": "FunctionLikeSchema",
6318
6205
  "location": {
6319
- "filePath": "capsule/container.ts",
6320
- "line": 42,
6206
+ "filePath": "capsule/capsule.ts",
6207
+ "line": 63,
6321
6208
  "character": 3
6322
6209
  },
6323
- "signature": "(method) FsContainer.removePath(dir: string): Promise<any>",
6324
- "name": "removePath",
6210
+ "signature": "(method) Capsule.typedExec(opts: BitExecOption, exec?: ContainerExec): Promise<ContainerExec>",
6211
+ "name": "typedExec",
6325
6212
  "params": [
6326
6213
  {
6327
6214
  "__schema": "ParameterSchema",
6328
6215
  "location": {
6329
- "filePath": "capsule/container.ts",
6330
- "line": 42,
6331
- "character": 14
6216
+ "filePath": "capsule/capsule.ts",
6217
+ "line": 63,
6218
+ "character": 19
6332
6219
  },
6333
- "name": "dir",
6220
+ "name": "opts",
6334
6221
  "type": {
6335
- "__schema": "KeywordTypeSchema",
6222
+ "__schema": "TypeRefSchema",
6336
6223
  "location": {
6337
- "filePath": "capsule/container.ts",
6338
- "line": 42,
6339
- "character": 19
6224
+ "filePath": "capsule/capsule.ts",
6225
+ "line": 63,
6226
+ "character": 25
6340
6227
  },
6341
- "name": "string"
6228
+ "name": "BitExecOption",
6229
+ "internalFilePath": "capsule/container.ts"
6342
6230
  },
6343
6231
  "isOptional": false,
6344
6232
  "isSpread": false
6233
+ },
6234
+ {
6235
+ "__schema": "ParameterSchema",
6236
+ "location": {
6237
+ "filePath": "capsule/capsule.ts",
6238
+ "line": 63,
6239
+ "character": 40
6240
+ },
6241
+ "name": "exec",
6242
+ "type": {
6243
+ "__schema": "InferenceTypeSchema",
6244
+ "location": {
6245
+ "filePath": "capsule/capsule.ts",
6246
+ "line": 63,
6247
+ "character": 40
6248
+ },
6249
+ "type": "ContainerExec"
6250
+ },
6251
+ "isOptional": true,
6252
+ "defaultValue": "new ContainerExec()",
6253
+ "isSpread": false
6345
6254
  }
6346
6255
  ],
6347
6256
  "returnType": {
6348
- "__schema": "TypeRefSchema",
6257
+ "__schema": "InferenceTypeSchema",
6349
6258
  "location": {
6350
- "filePath": "capsule/container.ts",
6351
- "line": 42,
6352
- "character": 28
6259
+ "filePath": "capsule/capsule.ts",
6260
+ "line": 63,
6261
+ "character": 3
6353
6262
  },
6354
- "name": "Promise",
6355
- "typeArgs": [
6356
- {
6357
- "__schema": "KeywordTypeSchema",
6358
- "location": {
6359
- "filePath": "capsule/container.ts",
6360
- "line": 42,
6361
- "character": 36
6362
- },
6363
- "name": "any"
6364
- }
6365
- ]
6263
+ "type": "Promise<ContainerExec>"
6366
6264
  },
6367
- "modifiers": []
6265
+ "modifiers": [
6266
+ "async"
6267
+ ]
6368
6268
  },
6369
6269
  {
6370
6270
  "__schema": "FunctionLikeSchema",
6371
6271
  "location": {
6372
- "filePath": "capsule/container.ts",
6373
- "line": 47,
6272
+ "filePath": "capsule/capsule.ts",
6273
+ "line": 67,
6374
6274
  "character": 3
6375
6275
  },
6376
- "signature": "(method) FsContainer.symlink(src: string, dest: string): Promise<any>",
6377
- "name": "symlink",
6276
+ "signature": "(method) Capsule.outputFile(file: string, data: any, options?: any): Promise<any>",
6277
+ "name": "outputFile",
6378
6278
  "params": [
6379
6279
  {
6380
6280
  "__schema": "ParameterSchema",
6381
6281
  "location": {
6382
- "filePath": "capsule/container.ts",
6383
- "line": 47,
6384
- "character": 17
6282
+ "filePath": "capsule/capsule.ts",
6283
+ "line": 67,
6284
+ "character": 14
6385
6285
  },
6386
- "name": "src",
6286
+ "name": "file",
6387
6287
  "type": {
6388
6288
  "__schema": "KeywordTypeSchema",
6389
6289
  "location": {
6390
- "filePath": "capsule/container.ts",
6391
- "line": 47,
6392
- "character": 22
6290
+ "filePath": "capsule/capsule.ts",
6291
+ "line": 67,
6292
+ "character": 20
6393
6293
  },
6394
6294
  "name": "string"
6395
6295
  },
@@ -6399,152 +6299,165 @@
6399
6299
  {
6400
6300
  "__schema": "ParameterSchema",
6401
6301
  "location": {
6402
- "filePath": "capsule/container.ts",
6403
- "line": 47,
6404
- "character": 30
6302
+ "filePath": "capsule/capsule.ts",
6303
+ "line": 67,
6304
+ "character": 28
6405
6305
  },
6406
- "name": "dest",
6306
+ "name": "data",
6407
6307
  "type": {
6408
6308
  "__schema": "KeywordTypeSchema",
6409
6309
  "location": {
6410
- "filePath": "capsule/container.ts",
6411
- "line": 47,
6412
- "character": 36
6310
+ "filePath": "capsule/capsule.ts",
6311
+ "line": 67,
6312
+ "character": 34
6413
6313
  },
6414
- "name": "string"
6314
+ "name": "any"
6415
6315
  },
6416
6316
  "isOptional": false,
6417
6317
  "isSpread": false
6318
+ },
6319
+ {
6320
+ "__schema": "ParameterSchema",
6321
+ "location": {
6322
+ "filePath": "capsule/capsule.ts",
6323
+ "line": 67,
6324
+ "character": 39
6325
+ },
6326
+ "name": "options",
6327
+ "type": {
6328
+ "__schema": "KeywordTypeSchema",
6329
+ "location": {
6330
+ "filePath": "capsule/capsule.ts",
6331
+ "line": 67,
6332
+ "character": 49
6333
+ },
6334
+ "name": "any"
6335
+ },
6336
+ "isOptional": true,
6337
+ "isSpread": false
6418
6338
  }
6419
6339
  ],
6420
6340
  "returnType": {
6421
6341
  "__schema": "TypeRefSchema",
6422
6342
  "location": {
6423
- "filePath": "capsule/container.ts",
6424
- "line": 47,
6425
- "character": 45
6343
+ "filePath": "capsule/capsule.ts",
6344
+ "line": 67,
6345
+ "character": 55
6426
6346
  },
6427
6347
  "name": "Promise",
6428
6348
  "typeArgs": [
6429
6349
  {
6430
6350
  "__schema": "KeywordTypeSchema",
6431
6351
  "location": {
6432
- "filePath": "capsule/container.ts",
6433
- "line": 47,
6434
- "character": 53
6352
+ "filePath": "capsule/capsule.ts",
6353
+ "line": 67,
6354
+ "character": 63
6435
6355
  },
6436
6356
  "name": "any"
6437
6357
  }
6438
6358
  ]
6439
6359
  },
6440
- "modifiers": [
6441
- "async"
6442
- ]
6360
+ "modifiers": []
6443
6361
  },
6444
6362
  {
6445
6363
  "__schema": "FunctionLikeSchema",
6446
6364
  "location": {
6447
- "filePath": "capsule/container.ts",
6448
- "line": 54,
6365
+ "filePath": "capsule/capsule.ts",
6366
+ "line": 71,
6449
6367
  "character": 3
6450
6368
  },
6451
- "signature": "(method) FsContainer.exec(execOptions: BitExecOption, exec?: ContainerExec): Promise<ContainerExec>",
6452
- "name": "exec",
6369
+ "signature": "(method) Capsule.removePath(dir: string): Promise<any>",
6370
+ "name": "removePath",
6453
6371
  "params": [
6454
6372
  {
6455
6373
  "__schema": "ParameterSchema",
6456
6374
  "location": {
6457
- "filePath": "capsule/container.ts",
6458
- "line": 54,
6375
+ "filePath": "capsule/capsule.ts",
6376
+ "line": 71,
6459
6377
  "character": 14
6460
6378
  },
6461
- "name": "execOptions",
6379
+ "name": "dir",
6462
6380
  "type": {
6463
- "__schema": "TypeRefSchema",
6381
+ "__schema": "KeywordTypeSchema",
6464
6382
  "location": {
6465
- "filePath": "capsule/container.ts",
6466
- "line": 54,
6467
- "character": 27
6383
+ "filePath": "capsule/capsule.ts",
6384
+ "line": 71,
6385
+ "character": 19
6468
6386
  },
6469
- "name": "BitExecOption",
6470
- "internalFilePath": "capsule/container.ts"
6387
+ "name": "string"
6471
6388
  },
6472
6389
  "isOptional": false,
6473
6390
  "isSpread": false
6474
- },
6475
- {
6476
- "__schema": "ParameterSchema",
6477
- "location": {
6478
- "filePath": "capsule/container.ts",
6479
- "line": 54,
6480
- "character": 42
6481
- },
6482
- "name": "exec",
6483
- "type": {
6484
- "__schema": "InferenceTypeSchema",
6485
- "location": {
6486
- "filePath": "capsule/container.ts",
6487
- "line": 54,
6488
- "character": 42
6489
- },
6490
- "type": "ContainerExec"
6491
- },
6492
- "isOptional": true,
6493
- "defaultValue": "new ContainerExec()",
6494
- "isSpread": false
6495
6391
  }
6496
6392
  ],
6497
6393
  "returnType": {
6498
6394
  "__schema": "TypeRefSchema",
6499
6395
  "location": {
6500
- "filePath": "capsule/container.ts",
6501
- "line": 54,
6502
- "character": 71
6396
+ "filePath": "capsule/capsule.ts",
6397
+ "line": 71,
6398
+ "character": 28
6503
6399
  },
6504
6400
  "name": "Promise",
6505
6401
  "typeArgs": [
6506
6402
  {
6507
- "__schema": "TypeRefSchema",
6403
+ "__schema": "KeywordTypeSchema",
6508
6404
  "location": {
6509
- "filePath": "capsule/container.ts",
6510
- "line": 54,
6511
- "character": 79
6405
+ "filePath": "capsule/capsule.ts",
6406
+ "line": 71,
6407
+ "character": 36
6512
6408
  },
6513
- "name": "ContainerExec"
6409
+ "name": "any"
6514
6410
  }
6515
6411
  ]
6516
6412
  },
6517
- "modifiers": [
6518
- "async"
6519
- ]
6413
+ "modifiers": []
6520
6414
  },
6521
6415
  {
6522
6416
  "__schema": "FunctionLikeSchema",
6523
6417
  "location": {
6524
- "filePath": "capsule/container.ts",
6525
- "line": 82,
6418
+ "filePath": "capsule/capsule.ts",
6419
+ "line": 75,
6526
6420
  "character": 3
6527
6421
  },
6528
- "signature": "(method) FsContainer.execP(execOptions: BitExecOption): Promise<string>",
6529
- "name": "execP",
6422
+ "signature": "(method) Capsule.symlink(src: string, dest: string): Promise<any>",
6423
+ "name": "symlink",
6530
6424
  "params": [
6531
6425
  {
6532
6426
  "__schema": "ParameterSchema",
6533
6427
  "location": {
6534
- "filePath": "capsule/container.ts",
6535
- "line": 82,
6536
- "character": 15
6428
+ "filePath": "capsule/capsule.ts",
6429
+ "line": 75,
6430
+ "character": 11
6537
6431
  },
6538
- "name": "execOptions",
6432
+ "name": "src",
6539
6433
  "type": {
6540
- "__schema": "TypeRefSchema",
6434
+ "__schema": "KeywordTypeSchema",
6541
6435
  "location": {
6542
- "filePath": "capsule/container.ts",
6543
- "line": 82,
6544
- "character": 28
6436
+ "filePath": "capsule/capsule.ts",
6437
+ "line": 75,
6438
+ "character": 16
6545
6439
  },
6546
- "name": "BitExecOption",
6547
- "internalFilePath": "capsule/container.ts"
6440
+ "name": "string"
6441
+ },
6442
+ "isOptional": false,
6443
+ "isSpread": false
6444
+ },
6445
+ {
6446
+ "__schema": "ParameterSchema",
6447
+ "location": {
6448
+ "filePath": "capsule/capsule.ts",
6449
+ "line": 75,
6450
+ "character": 24
6451
+ },
6452
+ "name": "dest",
6453
+ "type": {
6454
+ "__schema": "KeywordTypeSchema",
6455
+ "location": {
6456
+ "filePath": "capsule/capsule.ts",
6457
+ "line": 75,
6458
+ "character": 30
6459
+ },
6460
+ "name": "string"
6548
6461
  },
6549
6462
  "isOptional": false,
6550
6463
  "isSpread": false
@@ -6553,45 +6466,132 @@
6553
6466
  "returnType": {
6554
6467
  "__schema": "TypeRefSchema",
6555
6468
  "location": {
6556
- "filePath": "capsule/container.ts",
6557
- "line": 82,
6558
- "character": 44
6469
+ "filePath": "capsule/capsule.ts",
6470
+ "line": 75,
6471
+ "character": 39
6559
6472
  },
6560
6473
  "name": "Promise",
6561
6474
  "typeArgs": [
6562
6475
  {
6563
6476
  "__schema": "KeywordTypeSchema",
6564
6477
  "location": {
6565
- "filePath": "capsule/container.ts",
6566
- "line": 82,
6567
- "character": 52
6478
+ "filePath": "capsule/capsule.ts",
6479
+ "line": 75,
6480
+ "character": 47
6568
6481
  },
6569
- "name": "string"
6482
+ "name": "any"
6570
6483
  }
6571
6484
  ]
6572
6485
  },
6573
- "modifiers": [
6574
- "async"
6575
- ]
6486
+ "modifiers": []
6576
6487
  },
6577
6488
  {
6578
6489
  "__schema": "FunctionLikeSchema",
6579
6490
  "location": {
6580
- "filePath": "capsule/container.ts",
6581
- "line": 96,
6491
+ "filePath": "capsule/capsule.ts",
6492
+ "line": 80,
6582
6493
  "character": 3
6583
6494
  },
6584
- "signature": "(method) FsContainer.terminal(): Promise<execa.ExecaReturnValue<string>>",
6585
- "name": "terminal",
6586
- "params": [],
6495
+ "signature": "(method) Capsule.execute(cmd: string, options?: Record<string, any> | null | undefined): Promise<unknown>",
6496
+ "name": "execute",
6497
+ "params": [
6498
+ {
6499
+ "__schema": "ParameterSchema",
6500
+ "location": {
6501
+ "filePath": "capsule/capsule.ts",
6502
+ "line": 80,
6503
+ "character": 17
6504
+ },
6505
+ "name": "cmd",
6506
+ "type": {
6507
+ "__schema": "KeywordTypeSchema",
6508
+ "location": {
6509
+ "filePath": "capsule/capsule.ts",
6510
+ "line": 80,
6511
+ "character": 22
6512
+ },
6513
+ "name": "string"
6514
+ },
6515
+ "isOptional": false,
6516
+ "isSpread": false
6517
+ },
6518
+ {
6519
+ "__schema": "ParameterSchema",
6520
+ "location": {
6521
+ "filePath": "capsule/capsule.ts",
6522
+ "line": 80,
6523
+ "character": 30
6524
+ },
6525
+ "name": "options",
6526
+ "type": {
6527
+ "__schema": "TypeUnionSchema",
6528
+ "location": {
6529
+ "filePath": "capsule/capsule.ts",
6530
+ "line": 80,
6531
+ "character": 40
6532
+ },
6533
+ "types": [
6534
+ {
6535
+ "__schema": "TypeRefSchema",
6536
+ "location": {
6537
+ "filePath": "capsule/capsule.ts",
6538
+ "line": 80,
6539
+ "character": 40
6540
+ },
6541
+ "name": "Record",
6542
+ "typeArgs": [
6543
+ {
6544
+ "__schema": "KeywordTypeSchema",
6545
+ "location": {
6546
+ "filePath": "capsule/capsule.ts",
6547
+ "line": 80,
6548
+ "character": 47
6549
+ },
6550
+ "name": "string"
6551
+ },
6552
+ {
6553
+ "__schema": "KeywordTypeSchema",
6554
+ "location": {
6555
+ "filePath": "capsule/capsule.ts",
6556
+ "line": 80,
6557
+ "character": 55
6558
+ },
6559
+ "name": "any"
6560
+ }
6561
+ ]
6562
+ },
6563
+ {
6564
+ "__schema": "LiteralTypeSchema",
6565
+ "location": {
6566
+ "filePath": "capsule/capsule.ts",
6567
+ "line": 80,
6568
+ "character": 62
6569
+ },
6570
+ "name": "null"
6571
+ },
6572
+ {
6573
+ "__schema": "KeywordTypeSchema",
6574
+ "location": {
6575
+ "filePath": "capsule/capsule.ts",
6576
+ "line": 80,
6577
+ "character": 69
6578
+ },
6579
+ "name": "undefined"
6580
+ }
6581
+ ]
6582
+ },
6583
+ "isOptional": true,
6584
+ "isSpread": false
6585
+ }
6586
+ ],
6587
6587
  "returnType": {
6588
6588
  "__schema": "InferenceTypeSchema",
6589
6589
  "location": {
6590
- "filePath": "capsule/container.ts",
6591
- "line": 96,
6590
+ "filePath": "capsule/capsule.ts",
6591
+ "line": 80,
6592
6592
  "character": 3
6593
6593
  },
6594
- "type": "Promise<execa.ExecaReturnValue<string>>"
6594
+ "type": "Promise<unknown>"
6595
6595
  },
6596
6596
  "modifiers": [
6597
6597
  "async"
@@ -6600,593 +6600,830 @@
6600
6600
  {
6601
6601
  "__schema": "FunctionLikeSchema",
6602
6602
  "location": {
6603
- "filePath": "capsule/container.ts",
6604
- "line": 101,
6603
+ "filePath": "capsule/capsule.ts",
6604
+ "line": 112,
6605
6605
  "character": 3
6606
6606
  },
6607
- "signature": "(method) FsContainer.start(): Promise<void>",
6608
- "name": "start",
6609
- "params": [],
6610
- "returnType": {
6611
- "__schema": "TypeRefSchema",
6607
+ "doc": {
6608
+ "__schema": "DocSchema",
6612
6609
  "location": {
6613
- "filePath": "capsule/container.ts",
6614
- "line": 101,
6615
- "character": 12
6610
+ "filePath": "capsule/capsule.ts",
6611
+ "line": 105,
6612
+ "character": 3
6616
6613
  },
6617
- "name": "Promise",
6618
- "typeArgs": [
6614
+ "raw": "/**\n * @todo: fix.\n * it skips the capsule fs because for some reason `capsule.fs.promises.readdir` doesn't work\n * the same as `capsule.fs.readdir` and it doesn't have the capsule dir as pwd.\n *\n * returns the paths inside the capsule\n */",
6615
+ "comment": "",
6616
+ "tags": [
6619
6617
  {
6620
- "__schema": "KeywordTypeSchema",
6618
+ "__schema": "TagSchema",
6621
6619
  "location": {
6622
- "filePath": "capsule/container.ts",
6623
- "line": 101,
6624
- "character": 20
6620
+ "filePath": "capsule/capsule.ts",
6621
+ "line": 106,
6622
+ "character": 6
6625
6623
  },
6626
- "name": "void"
6624
+ "tagName": "todo",
6625
+ "comment": ": fix.\nit skips the capsule fs because for some reason `capsule.fs.promises.readdir` doesn't work\nthe same as `capsule.fs.readdir` and it doesn't have the capsule dir as pwd.\n\nreturns the paths inside the capsule"
6627
6626
  }
6628
6627
  ]
6629
6628
  },
6630
- "modifiers": []
6631
- },
6632
- {
6633
- "__schema": "FunctionLikeSchema",
6634
- "location": {
6635
- "filePath": "capsule/container.ts",
6636
- "line": 105,
6637
- "character": 3
6638
- },
6639
- "signature": "(method) FsContainer.inspect(): Promise<ContainerStatus>",
6640
- "name": "inspect",
6641
- "params": [],
6642
- "returnType": {
6643
- "__schema": "TypeRefSchema",
6644
- "location": {
6645
- "filePath": "capsule/container.ts",
6646
- "line": 105,
6647
- "character": 20
6629
+ "signature": "(method) Capsule.getAllFilesPaths(dir?: string, options?: {\n ignore?: string[];\n}): any",
6630
+ "name": "getAllFilesPaths",
6631
+ "params": [
6632
+ {
6633
+ "__schema": "ParameterSchema",
6634
+ "location": {
6635
+ "filePath": "capsule/capsule.ts",
6636
+ "line": 112,
6637
+ "character": 20
6638
+ },
6639
+ "name": "dir",
6640
+ "type": {
6641
+ "__schema": "InferenceTypeSchema",
6642
+ "location": {
6643
+ "filePath": "capsule/capsule.ts",
6644
+ "line": 112,
6645
+ "character": 20
6646
+ },
6647
+ "type": "string"
6648
+ },
6649
+ "isOptional": true,
6650
+ "defaultValue": "'.'",
6651
+ "isSpread": false
6648
6652
  },
6649
- "name": "Promise",
6650
- "typeArgs": [
6651
- {
6652
- "__schema": "TypeRefSchema",
6653
+ {
6654
+ "__schema": "ParameterSchema",
6655
+ "location": {
6656
+ "filePath": "capsule/capsule.ts",
6657
+ "line": 112,
6658
+ "character": 31
6659
+ },
6660
+ "name": "options",
6661
+ "type": {
6662
+ "__schema": "TypeLiteralSchema",
6653
6663
  "location": {
6654
- "filePath": "capsule/container.ts",
6655
- "line": 105,
6656
- "character": 28
6664
+ "filePath": "capsule/capsule.ts",
6665
+ "line": 112,
6666
+ "character": 40
6657
6667
  },
6658
- "name": "ContainerStatus",
6659
- "packageName": "@teambit/capsule"
6660
- }
6661
- ]
6662
- },
6663
- "modifiers": [
6664
- "async"
6665
- ]
6666
- },
6667
- {
6668
- "__schema": "FunctionLikeSchema",
6669
- "location": {
6670
- "filePath": "capsule/container.ts",
6671
- "line": 108,
6672
- "character": 3
6673
- },
6674
- "signature": "(method) FsContainer.pause(): Promise<void>",
6675
- "name": "pause",
6676
- "params": [],
6668
+ "members": [
6669
+ {
6670
+ "__schema": "VariableLikeSchema",
6671
+ "location": {
6672
+ "filePath": "capsule/capsule.ts",
6673
+ "line": 112,
6674
+ "character": 42
6675
+ },
6676
+ "signature": "(property) ignore?: string[] | undefined",
6677
+ "name": "ignore",
6678
+ "type": {
6679
+ "__schema": "TypeArraySchema",
6680
+ "location": {
6681
+ "filePath": "capsule/capsule.ts",
6682
+ "line": 112,
6683
+ "character": 51
6684
+ },
6685
+ "type": {
6686
+ "__schema": "KeywordTypeSchema",
6687
+ "location": {
6688
+ "filePath": "capsule/capsule.ts",
6689
+ "line": 112,
6690
+ "character": 51
6691
+ },
6692
+ "name": "string"
6693
+ }
6694
+ },
6695
+ "isOptional": true
6696
+ }
6697
+ ]
6698
+ },
6699
+ "isOptional": true,
6700
+ "defaultValue": "{}",
6701
+ "isSpread": false
6702
+ }
6703
+ ],
6677
6704
  "returnType": {
6678
- "__schema": "TypeRefSchema",
6705
+ "__schema": "InferenceTypeSchema",
6679
6706
  "location": {
6680
- "filePath": "capsule/container.ts",
6681
- "line": 108,
6682
- "character": 18
6707
+ "filePath": "capsule/capsule.ts",
6708
+ "line": 112,
6709
+ "character": 3
6683
6710
  },
6684
- "name": "Promise",
6685
- "typeArgs": [
6686
- {
6687
- "__schema": "KeywordTypeSchema",
6688
- "location": {
6689
- "filePath": "capsule/container.ts",
6690
- "line": 108,
6691
- "character": 26
6692
- },
6693
- "name": "void"
6694
- }
6695
- ]
6711
+ "type": "any"
6696
6712
  },
6697
- "modifiers": [
6698
- "async"
6699
- ]
6713
+ "modifiers": []
6700
6714
  },
6701
6715
  {
6702
6716
  "__schema": "FunctionLikeSchema",
6703
6717
  "location": {
6704
- "filePath": "capsule/container.ts",
6705
- "line": 111,
6718
+ "filePath": "capsule/capsule.ts",
6719
+ "line": 117,
6706
6720
  "character": 3
6707
6721
  },
6708
- "signature": "(method) FsContainer.resume(): Promise<void>",
6709
- "name": "resume",
6710
- "params": [],
6722
+ "signature": "(method) Capsule.getCapsuleDirName(component: Component, config?: {\n alwaysNew?: boolean;\n name?: string;\n}): string",
6723
+ "name": "getCapsuleDirName",
6724
+ "params": [
6725
+ {
6726
+ "__schema": "ParameterSchema",
6727
+ "location": {
6728
+ "filePath": "capsule/capsule.ts",
6729
+ "line": 117,
6730
+ "character": 28
6731
+ },
6732
+ "name": "component",
6733
+ "type": {
6734
+ "__schema": "TypeRefSchema",
6735
+ "location": {
6736
+ "filePath": "capsule/capsule.ts",
6737
+ "line": 117,
6738
+ "character": 39
6739
+ },
6740
+ "name": "Component",
6741
+ "componentId": {
6742
+ "scope": "teambit.component",
6743
+ "name": "component"
6744
+ }
6745
+ },
6746
+ "isOptional": false,
6747
+ "isSpread": false
6748
+ },
6749
+ {
6750
+ "__schema": "ParameterSchema",
6751
+ "location": {
6752
+ "filePath": "capsule/capsule.ts",
6753
+ "line": 117,
6754
+ "character": 50
6755
+ },
6756
+ "name": "config",
6757
+ "type": {
6758
+ "__schema": "TypeLiteralSchema",
6759
+ "location": {
6760
+ "filePath": "capsule/capsule.ts",
6761
+ "line": 117,
6762
+ "character": 58
6763
+ },
6764
+ "members": [
6765
+ {
6766
+ "__schema": "VariableLikeSchema",
6767
+ "location": {
6768
+ "filePath": "capsule/capsule.ts",
6769
+ "line": 117,
6770
+ "character": 60
6771
+ },
6772
+ "signature": "(property) alwaysNew?: boolean | undefined",
6773
+ "name": "alwaysNew",
6774
+ "type": {
6775
+ "__schema": "KeywordTypeSchema",
6776
+ "location": {
6777
+ "filePath": "capsule/capsule.ts",
6778
+ "line": 117,
6779
+ "character": 72
6780
+ },
6781
+ "name": "boolean"
6782
+ },
6783
+ "isOptional": true
6784
+ },
6785
+ {
6786
+ "__schema": "VariableLikeSchema",
6787
+ "location": {
6788
+ "filePath": "capsule/capsule.ts",
6789
+ "line": 117,
6790
+ "character": 81
6791
+ },
6792
+ "signature": "(property) name?: string | undefined",
6793
+ "name": "name",
6794
+ "type": {
6795
+ "__schema": "KeywordTypeSchema",
6796
+ "location": {
6797
+ "filePath": "capsule/capsule.ts",
6798
+ "line": 117,
6799
+ "character": 88
6800
+ },
6801
+ "name": "string"
6802
+ },
6803
+ "isOptional": true
6804
+ }
6805
+ ]
6806
+ },
6807
+ "isOptional": true,
6808
+ "defaultValue": "{}",
6809
+ "isSpread": false
6810
+ }
6811
+ ],
6711
6812
  "returnType": {
6712
- "__schema": "TypeRefSchema",
6813
+ "__schema": "InferenceTypeSchema",
6713
6814
  "location": {
6714
- "filePath": "capsule/container.ts",
6715
- "line": 111,
6716
- "character": 19
6815
+ "filePath": "capsule/capsule.ts",
6816
+ "line": 117,
6817
+ "character": 3
6717
6818
  },
6718
- "name": "Promise",
6719
- "typeArgs": [
6720
- {
6721
- "__schema": "KeywordTypeSchema",
6722
- "location": {
6723
- "filePath": "capsule/container.ts",
6724
- "line": 111,
6725
- "character": 27
6726
- },
6727
- "name": "void"
6728
- }
6729
- ]
6819
+ "type": "string"
6730
6820
  },
6731
6821
  "modifiers": [
6732
- "async"
6822
+ "static"
6733
6823
  ]
6734
6824
  },
6735
6825
  {
6736
6826
  "__schema": "FunctionLikeSchema",
6737
6827
  "location": {
6738
- "filePath": "capsule/container.ts",
6739
- "line": 115,
6828
+ "filePath": "capsule/capsule.ts",
6829
+ "line": 121,
6740
6830
  "character": 3
6741
6831
  },
6742
- "signature": "(method) FsContainer.stop(ttl?: number | undefined): Promise<void>",
6743
- "name": "stop",
6832
+ "signature": "(method) Capsule.getCapsuleRootDir(component: Component, baseDir: string, config?: {\n alwaysNew?: boolean;\n name?: string;\n}): string",
6833
+ "name": "getCapsuleRootDir",
6744
6834
  "params": [
6745
6835
  {
6746
6836
  "__schema": "ParameterSchema",
6747
6837
  "location": {
6748
- "filePath": "capsule/container.ts",
6749
- "line": 115,
6750
- "character": 8
6838
+ "filePath": "capsule/capsule.ts",
6839
+ "line": 121,
6840
+ "character": 28
6751
6841
  },
6752
- "name": "ttl",
6842
+ "name": "component",
6753
6843
  "type": {
6754
- "__schema": "TypeUnionSchema",
6844
+ "__schema": "TypeRefSchema",
6755
6845
  "location": {
6756
- "filePath": "capsule/container.ts",
6757
- "line": 115,
6758
- "character": 14
6846
+ "filePath": "capsule/capsule.ts",
6847
+ "line": 121,
6848
+ "character": 39
6759
6849
  },
6760
- "types": [
6850
+ "name": "Component",
6851
+ "componentId": {
6852
+ "scope": "teambit.component",
6853
+ "name": "component"
6854
+ }
6855
+ },
6856
+ "isOptional": false,
6857
+ "isSpread": false
6858
+ },
6859
+ {
6860
+ "__schema": "ParameterSchema",
6861
+ "location": {
6862
+ "filePath": "capsule/capsule.ts",
6863
+ "line": 121,
6864
+ "character": 50
6865
+ },
6866
+ "name": "baseDir",
6867
+ "type": {
6868
+ "__schema": "KeywordTypeSchema",
6869
+ "location": {
6870
+ "filePath": "capsule/capsule.ts",
6871
+ "line": 121,
6872
+ "character": 59
6873
+ },
6874
+ "name": "string"
6875
+ },
6876
+ "isOptional": false,
6877
+ "isSpread": false
6878
+ },
6879
+ {
6880
+ "__schema": "ParameterSchema",
6881
+ "location": {
6882
+ "filePath": "capsule/capsule.ts",
6883
+ "line": 121,
6884
+ "character": 67
6885
+ },
6886
+ "name": "config",
6887
+ "type": {
6888
+ "__schema": "TypeLiteralSchema",
6889
+ "location": {
6890
+ "filePath": "capsule/capsule.ts",
6891
+ "line": 121,
6892
+ "character": 75
6893
+ },
6894
+ "members": [
6761
6895
  {
6762
- "__schema": "KeywordTypeSchema",
6896
+ "__schema": "VariableLikeSchema",
6763
6897
  "location": {
6764
- "filePath": "capsule/container.ts",
6765
- "line": 115,
6766
- "character": 14
6898
+ "filePath": "capsule/capsule.ts",
6899
+ "line": 121,
6900
+ "character": 77
6767
6901
  },
6768
- "name": "number"
6902
+ "signature": "(property) alwaysNew?: boolean | undefined",
6903
+ "name": "alwaysNew",
6904
+ "type": {
6905
+ "__schema": "KeywordTypeSchema",
6906
+ "location": {
6907
+ "filePath": "capsule/capsule.ts",
6908
+ "line": 121,
6909
+ "character": 89
6910
+ },
6911
+ "name": "boolean"
6912
+ },
6913
+ "isOptional": true
6769
6914
  },
6770
6915
  {
6771
- "__schema": "KeywordTypeSchema",
6916
+ "__schema": "VariableLikeSchema",
6772
6917
  "location": {
6773
- "filePath": "capsule/container.ts",
6774
- "line": 115,
6775
- "character": 23
6918
+ "filePath": "capsule/capsule.ts",
6919
+ "line": 121,
6920
+ "character": 98
6776
6921
  },
6777
- "name": "undefined"
6922
+ "signature": "(property) name?: string | undefined",
6923
+ "name": "name",
6924
+ "type": {
6925
+ "__schema": "KeywordTypeSchema",
6926
+ "location": {
6927
+ "filePath": "capsule/capsule.ts",
6928
+ "line": 121,
6929
+ "character": 105
6930
+ },
6931
+ "name": "string"
6932
+ },
6933
+ "isOptional": true
6778
6934
  }
6779
6935
  ]
6780
6936
  },
6781
6937
  "isOptional": true,
6938
+ "defaultValue": "{}",
6782
6939
  "isSpread": false
6783
6940
  }
6784
6941
  ],
6785
6942
  "returnType": {
6786
- "__schema": "TypeRefSchema",
6943
+ "__schema": "InferenceTypeSchema",
6787
6944
  "location": {
6788
- "filePath": "capsule/container.ts",
6789
- "line": 115,
6790
- "character": 35
6945
+ "filePath": "capsule/capsule.ts",
6946
+ "line": 121,
6947
+ "character": 3
6791
6948
  },
6792
- "name": "Promise",
6793
- "typeArgs": [
6794
- {
6795
- "__schema": "KeywordTypeSchema",
6796
- "location": {
6797
- "filePath": "capsule/container.ts",
6798
- "line": 115,
6799
- "character": 43
6800
- },
6801
- "name": "void"
6802
- }
6803
- ]
6949
+ "type": "string"
6804
6950
  },
6805
- "modifiers": []
6951
+ "modifiers": [
6952
+ "static"
6953
+ ]
6806
6954
  },
6807
6955
  {
6808
6956
  "__schema": "FunctionLikeSchema",
6809
6957
  "location": {
6810
- "filePath": "capsule/container.ts",
6811
- "line": 118,
6958
+ "filePath": "capsule/capsule.ts",
6959
+ "line": 125,
6812
6960
  "character": 3
6813
6961
  },
6814
- "signature": "(method) FsContainer.destroy(): Promise<void>",
6815
- "name": "destroy",
6816
- "params": [],
6962
+ "signature": "(method) Capsule.createFromComponent(component: Component, baseDir: string, config?: {\n alwaysNew?: boolean;\n}): Promise<Capsule>",
6963
+ "name": "createFromComponent",
6964
+ "params": [
6965
+ {
6966
+ "__schema": "ParameterSchema",
6967
+ "location": {
6968
+ "filePath": "capsule/capsule.ts",
6969
+ "line": 126,
6970
+ "character": 5
6971
+ },
6972
+ "name": "component",
6973
+ "type": {
6974
+ "__schema": "TypeRefSchema",
6975
+ "location": {
6976
+ "filePath": "capsule/capsule.ts",
6977
+ "line": 126,
6978
+ "character": 16
6979
+ },
6980
+ "name": "Component",
6981
+ "componentId": {
6982
+ "scope": "teambit.component",
6983
+ "name": "component"
6984
+ }
6985
+ },
6986
+ "isOptional": false,
6987
+ "isSpread": false
6988
+ },
6989
+ {
6990
+ "__schema": "ParameterSchema",
6991
+ "location": {
6992
+ "filePath": "capsule/capsule.ts",
6993
+ "line": 127,
6994
+ "character": 5
6995
+ },
6996
+ "name": "baseDir",
6997
+ "type": {
6998
+ "__schema": "KeywordTypeSchema",
6999
+ "location": {
7000
+ "filePath": "capsule/capsule.ts",
7001
+ "line": 127,
7002
+ "character": 14
7003
+ },
7004
+ "name": "string"
7005
+ },
7006
+ "isOptional": false,
7007
+ "isSpread": false
7008
+ },
7009
+ {
7010
+ "__schema": "ParameterSchema",
7011
+ "location": {
7012
+ "filePath": "capsule/capsule.ts",
7013
+ "line": 128,
7014
+ "character": 5
7015
+ },
7016
+ "name": "config",
7017
+ "type": {
7018
+ "__schema": "TypeLiteralSchema",
7019
+ "location": {
7020
+ "filePath": "capsule/capsule.ts",
7021
+ "line": 128,
7022
+ "character": 13
7023
+ },
7024
+ "members": [
7025
+ {
7026
+ "__schema": "VariableLikeSchema",
7027
+ "location": {
7028
+ "filePath": "capsule/capsule.ts",
7029
+ "line": 128,
7030
+ "character": 15
7031
+ },
7032
+ "signature": "(property) alwaysNew?: boolean | undefined",
7033
+ "name": "alwaysNew",
7034
+ "type": {
7035
+ "__schema": "KeywordTypeSchema",
7036
+ "location": {
7037
+ "filePath": "capsule/capsule.ts",
7038
+ "line": 128,
7039
+ "character": 27
7040
+ },
7041
+ "name": "boolean"
7042
+ },
7043
+ "isOptional": true
7044
+ }
7045
+ ]
7046
+ },
7047
+ "isOptional": true,
7048
+ "defaultValue": "{}",
7049
+ "isSpread": false
7050
+ }
7051
+ ],
6817
7052
  "returnType": {
6818
7053
  "__schema": "TypeRefSchema",
6819
7054
  "location": {
6820
- "filePath": "capsule/container.ts",
6821
- "line": 118,
6822
- "character": 20
7055
+ "filePath": "capsule/capsule.ts",
7056
+ "line": 129,
7057
+ "character": 6
6823
7058
  },
6824
7059
  "name": "Promise",
6825
7060
  "typeArgs": [
6826
7061
  {
6827
- "__schema": "KeywordTypeSchema",
7062
+ "__schema": "TypeRefSchema",
6828
7063
  "location": {
6829
- "filePath": "capsule/container.ts",
6830
- "line": 118,
6831
- "character": 28
7064
+ "filePath": "capsule/capsule.ts",
7065
+ "line": 129,
7066
+ "character": 14
6832
7067
  },
6833
- "name": "void"
7068
+ "name": "Capsule"
6834
7069
  }
6835
7070
  ]
6836
7071
  },
6837
7072
  "modifiers": [
7073
+ "static",
6838
7074
  "async"
6839
7075
  ]
6840
- },
7076
+ }
7077
+ ],
7078
+ "extendsNodes": [
6841
7079
  {
6842
- "__schema": "FunctionLikeSchema",
7080
+ "__schema": "ExpressionWithTypeArgumentsSchema",
7081
+ "location": {
7082
+ "filePath": "capsule/capsule.ts",
7083
+ "line": 13,
7084
+ "character": 38
7085
+ },
7086
+ "name": "extends CapsuleTemplate<Exec, NodeFS>",
7087
+ "typeArgs": [
7088
+ {
7089
+ "__schema": "TypeRefSchema",
7090
+ "location": {
7091
+ "filePath": "capsule/capsule.ts",
7092
+ "line": 13,
7093
+ "character": 54
7094
+ },
7095
+ "name": "Exec",
7096
+ "packageName": "@teambit/capsule"
7097
+ },
7098
+ {
7099
+ "__schema": "TypeRefSchema",
7100
+ "location": {
7101
+ "filePath": "capsule/capsule.ts",
7102
+ "line": 13,
7103
+ "character": 60
7104
+ },
7105
+ "name": "NodeFS",
7106
+ "packageName": "@teambit/any-fs"
7107
+ }
7108
+ ],
7109
+ "expression": {
7110
+ "__schema": "TypeRefSchema",
7111
+ "location": {
7112
+ "filePath": "capsule/capsule.ts",
7113
+ "line": 13,
7114
+ "character": 38
7115
+ },
7116
+ "name": "CapsuleTemplate<T",
7117
+ "componentId": {
7118
+ "_legacy": {
7119
+ "scope": "teambit.component",
7120
+ "name": "isolator",
7121
+ "version": "1.0.313"
7122
+ },
7123
+ "_scope": "teambit.component"
7124
+ }
7125
+ }
7126
+ }
7127
+ ],
7128
+ "implementNodes": []
7129
+ }
7130
+ ],
7131
+ "internals": []
7132
+ },
7133
+ {
7134
+ "__schema": "ModuleSchema",
7135
+ "location": {
7136
+ "filePath": "capsule/container.ts",
7137
+ "line": 1,
7138
+ "character": 1
7139
+ },
7140
+ "exports": [
7141
+ {
7142
+ "__schema": "InterfaceSchema",
7143
+ "location": {
7144
+ "filePath": "capsule/container.ts",
7145
+ "line": 12,
7146
+ "character": 1
7147
+ },
7148
+ "signature": "interface BitExecOption",
7149
+ "name": "BitExecOption",
7150
+ "members": [
7151
+ {
7152
+ "__schema": "VariableLikeSchema",
6843
7153
  "location": {
6844
7154
  "filePath": "capsule/container.ts",
6845
- "line": 121,
7155
+ "line": 13,
6846
7156
  "character": 3
6847
7157
  },
6848
- "signature": "(method) FsContainer.log(): Promise<Exec>",
6849
- "name": "log",
6850
- "params": [],
6851
- "returnType": {
6852
- "__schema": "TypeRefSchema",
7158
+ "signature": "(property) BitExecOption.cwd: string",
7159
+ "name": "cwd",
7160
+ "type": {
7161
+ "__schema": "KeywordTypeSchema",
6853
7162
  "location": {
6854
7163
  "filePath": "capsule/container.ts",
6855
- "line": 121,
6856
- "character": 10
7164
+ "line": 13,
7165
+ "character": 8
6857
7166
  },
6858
- "name": "Promise",
6859
- "typeArgs": [
6860
- {
6861
- "__schema": "TypeRefSchema",
6862
- "location": {
6863
- "filePath": "capsule/container.ts",
6864
- "line": 121,
6865
- "character": 18
6866
- },
6867
- "name": "Exec",
6868
- "packageName": "@teambit/capsule"
6869
- }
6870
- ]
7167
+ "name": "string"
6871
7168
  },
6872
- "modifiers": []
7169
+ "isOptional": false
6873
7170
  },
6874
7171
  {
6875
- "__schema": "FunctionLikeSchema",
7172
+ "__schema": "VariableLikeSchema",
6876
7173
  "location": {
6877
7174
  "filePath": "capsule/container.ts",
6878
- "line": 124,
7175
+ "line": 14,
6879
7176
  "character": 3
6880
7177
  },
6881
- "signature": "(method) FsContainer.on(event: string, fn: (data: any) => void): void",
6882
- "name": "on",
6883
- "params": [
6884
- {
6885
- "__schema": "ParameterSchema",
6886
- "location": {
6887
- "filePath": "capsule/container.ts",
6888
- "line": 124,
6889
- "character": 6
7178
+ "signature": "(property) BitExecOption.stdio?: number | Stream | \"pipe\" | \"ignore\" | \"inherit\" | \"ipc\" | undefined",
7179
+ "name": "stdio",
7180
+ "type": {
7181
+ "__schema": "TypeUnionSchema",
7182
+ "location": {
7183
+ "filePath": "capsule/container.ts",
7184
+ "line": 14,
7185
+ "character": 11
7186
+ },
7187
+ "types": [
7188
+ {
7189
+ "__schema": "LiteralTypeSchema",
7190
+ "location": {
7191
+ "filePath": "capsule/container.ts",
7192
+ "line": 14,
7193
+ "character": 11
7194
+ },
7195
+ "name": "'pipe'"
6890
7196
  },
6891
- "name": "event",
6892
- "type": {
6893
- "__schema": "KeywordTypeSchema",
7197
+ {
7198
+ "__schema": "LiteralTypeSchema",
6894
7199
  "location": {
6895
7200
  "filePath": "capsule/container.ts",
6896
- "line": 124,
6897
- "character": 13
7201
+ "line": 14,
7202
+ "character": 20
6898
7203
  },
6899
- "name": "string"
7204
+ "name": "'ipc'"
6900
7205
  },
6901
- "isOptional": false,
6902
- "isSpread": false
6903
- },
6904
- {
6905
- "__schema": "ParameterSchema",
6906
- "location": {
6907
- "filePath": "capsule/container.ts",
6908
- "line": 124,
6909
- "character": 21
7206
+ {
7207
+ "__schema": "LiteralTypeSchema",
7208
+ "location": {
7209
+ "filePath": "capsule/container.ts",
7210
+ "line": 14,
7211
+ "character": 28
7212
+ },
7213
+ "name": "'ignore'"
6910
7214
  },
6911
- "name": "fn",
6912
- "type": {
6913
- "__schema": "FunctionLikeSchema",
7215
+ {
7216
+ "__schema": "LiteralTypeSchema",
6914
7217
  "location": {
6915
7218
  "filePath": "capsule/container.ts",
6916
- "line": 124,
6917
- "character": 25
7219
+ "line": 14,
7220
+ "character": 39
6918
7221
  },
6919
- "signature": "(data: any): void",
6920
- "name": "",
6921
- "params": [
6922
- {
6923
- "__schema": "ParameterSchema",
6924
- "location": {
6925
- "filePath": "capsule/container.ts",
6926
- "line": 124,
6927
- "character": 26
6928
- },
6929
- "name": "data",
6930
- "type": {
6931
- "__schema": "KeywordTypeSchema",
6932
- "location": {
6933
- "filePath": "capsule/container.ts",
6934
- "line": 124,
6935
- "character": 32
6936
- },
6937
- "name": "any"
6938
- },
6939
- "isOptional": false,
6940
- "isSpread": false
6941
- }
6942
- ],
6943
- "returnType": {
6944
- "__schema": "KeywordTypeSchema",
6945
- "location": {
6946
- "filePath": "capsule/container.ts",
6947
- "line": 124,
6948
- "character": 40
6949
- },
6950
- "name": "void"
7222
+ "name": "'inherit'"
7223
+ },
7224
+ {
7225
+ "__schema": "TypeRefSchema",
7226
+ "location": {
7227
+ "filePath": "capsule/container.ts",
7228
+ "line": 14,
7229
+ "character": 51
6951
7230
  },
6952
- "modifiers": []
7231
+ "name": "Stream",
7232
+ "packageName": "stream"
6953
7233
  },
6954
- "isOptional": false,
6955
- "isSpread": false
6956
- }
6957
- ],
6958
- "returnType": {
6959
- "__schema": "KeywordTypeSchema",
6960
- "location": {
6961
- "filePath": "capsule/container.ts",
6962
- "line": 124,
6963
- "character": 47
6964
- },
6965
- "name": "void"
7234
+ {
7235
+ "__schema": "KeywordTypeSchema",
7236
+ "location": {
7237
+ "filePath": "capsule/container.ts",
7238
+ "line": 14,
7239
+ "character": 60
7240
+ },
7241
+ "name": "number"
7242
+ },
7243
+ {
7244
+ "__schema": "KeywordTypeSchema",
7245
+ "location": {
7246
+ "filePath": "capsule/container.ts",
7247
+ "line": 14,
7248
+ "character": 69
7249
+ },
7250
+ "name": "undefined"
7251
+ }
7252
+ ]
6966
7253
  },
6967
- "modifiers": []
7254
+ "isOptional": true
6968
7255
  }
6969
7256
  ],
6970
- "extendsNodes": [],
6971
- "implementNodes": [
7257
+ "extendsNodes": [
6972
7258
  {
6973
7259
  "__schema": "ExpressionWithTypeArgumentsSchema",
6974
7260
  "location": {
6975
7261
  "filePath": "capsule/container.ts",
6976
- "line": 20,
6977
- "character": 45
7262
+ "line": 12,
7263
+ "character": 40
6978
7264
  },
6979
- "name": "implements Container<Exec, AnyFS>",
6980
- "typeArgs": [
6981
- {
6982
- "__schema": "TypeRefSchema",
6983
- "location": {
6984
- "filePath": "capsule/container.ts",
6985
- "line": 20,
6986
- "character": 55
6987
- },
6988
- "name": "Exec",
6989
- "packageName": "@teambit/capsule"
6990
- },
6991
- {
6992
- "__schema": "TypeRefSchema",
6993
- "location": {
6994
- "filePath": "capsule/container.ts",
6995
- "line": 20,
6996
- "character": 61
6997
- },
6998
- "name": "AnyFS",
6999
- "packageName": "@teambit/any-fs"
7000
- }
7001
- ],
7265
+ "name": "extends ExecOptions",
7266
+ "typeArgs": [],
7002
7267
  "expression": {
7003
7268
  "__schema": "TypeRefSchema",
7004
7269
  "location": {
7005
7270
  "filePath": "capsule/container.ts",
7006
- "line": 20,
7007
- "character": 45
7271
+ "line": 12,
7272
+ "character": 40
7008
7273
  },
7009
- "name": "Container<T",
7274
+ "name": "ExecOptions",
7010
7275
  "componentId": {
7011
7276
  "_legacy": {
7012
7277
  "scope": "teambit.component",
7013
7278
  "name": "isolator",
7014
- "version": "1.0.311"
7279
+ "version": "1.0.313"
7015
7280
  },
7016
7281
  "_scope": "teambit.component"
7017
7282
  }
7018
7283
  }
7019
7284
  }
7020
7285
  ]
7021
- }
7022
- ],
7023
- "internals": [
7286
+ },
7024
7287
  {
7025
- "__schema": "ModuleSchema",
7288
+ "__schema": "InterfaceSchema",
7026
7289
  "location": {
7027
7290
  "filePath": "capsule/container.ts",
7028
- "line": 10,
7291
+ "line": 16,
7029
7292
  "character": 1
7030
7293
  },
7031
- "exports": [
7294
+ "signature": "interface BitContainerConfig",
7295
+ "name": "BitContainerConfig",
7296
+ "members": [
7032
7297
  {
7033
7298
  "__schema": "VariableLikeSchema",
7034
7299
  "location": {
7035
7300
  "filePath": "capsule/container.ts",
7036
- "line": 10,
7037
- "character": 7
7301
+ "line": 17,
7302
+ "character": 3
7038
7303
  },
7039
- "signature": "const debug: any",
7040
- "name": "debug",
7304
+ "signature": "(property) BitContainerConfig.other?: string | undefined",
7305
+ "name": "other",
7041
7306
  "type": {
7042
- "__schema": "InferenceTypeSchema",
7307
+ "__schema": "KeywordTypeSchema",
7043
7308
  "location": {
7044
7309
  "filePath": "capsule/container.ts",
7045
- "line": 10,
7046
- "character": 7
7310
+ "line": 17,
7311
+ "character": 11
7047
7312
  },
7048
- "type": "any"
7313
+ "name": "string"
7049
7314
  },
7050
- "isOptional": false,
7051
- "defaultValue": "require('debug')('fs-container')"
7315
+ "isOptional": true
7052
7316
  }
7053
7317
  ],
7054
- "internals": []
7055
- }
7056
- ]
7057
- },
7058
- {
7059
- "__schema": "ModuleSchema",
7060
- "location": {
7061
- "filePath": "capsule/capsule.ts",
7062
- "line": 1,
7063
- "character": 1
7064
- },
7065
- "exports": [
7318
+ "extendsNodes": [
7319
+ {
7320
+ "__schema": "ExpressionWithTypeArgumentsSchema",
7321
+ "location": {
7322
+ "filePath": "capsule/container.ts",
7323
+ "line": 16,
7324
+ "character": 45
7325
+ },
7326
+ "name": "extends ContainerFactoryOptions",
7327
+ "typeArgs": [],
7328
+ "expression": {
7329
+ "__schema": "TypeRefSchema",
7330
+ "location": {
7331
+ "filePath": "capsule/container.ts",
7332
+ "line": 16,
7333
+ "character": 45
7334
+ },
7335
+ "name": "ContainerFactoryOptions",
7336
+ "componentId": {
7337
+ "_legacy": {
7338
+ "scope": "teambit.component",
7339
+ "name": "isolator",
7340
+ "version": "1.0.313"
7341
+ },
7342
+ "_scope": "teambit.component"
7343
+ }
7344
+ }
7345
+ }
7346
+ ]
7347
+ },
7066
7348
  {
7067
7349
  "__schema": "ClassSchema",
7068
7350
  "location": {
7069
- "filePath": "capsule/capsule.ts",
7070
- "line": 13,
7351
+ "filePath": "capsule/container.ts",
7352
+ "line": 20,
7071
7353
  "character": 1
7072
7354
  },
7073
- "signature": "class Capsule",
7074
- "name": "Capsule",
7355
+ "signature": "class FsContainer",
7356
+ "name": "FsContainer",
7075
7357
  "members": [
7076
7358
  {
7077
- "__schema": "ConstructorSchema",
7359
+ "__schema": "VariableLikeSchema",
7078
7360
  "location": {
7079
- "filePath": "capsule/capsule.ts",
7080
- "line": 15,
7361
+ "filePath": "capsule/container.ts",
7362
+ "line": 21,
7081
7363
  "character": 3
7082
7364
  },
7083
- "signature": "constructor Capsule(container: FsContainer, fs: NodeFS, console: Console, state: State, component: Component): Capsule",
7084
- "name": "constructor",
7085
- "params": [
7086
- {
7087
- "__schema": "ParameterSchema",
7088
- "location": {
7089
- "filePath": "capsule/capsule.ts",
7090
- "line": 19,
7091
- "character": 5
7092
- },
7093
- "name": "container",
7094
- "type": {
7095
- "__schema": "TypeRefSchema",
7096
- "location": {
7097
- "filePath": "capsule/capsule.ts",
7098
- "line": 19,
7099
- "character": 26
7100
- },
7101
- "name": "FsContainer"
7102
- },
7103
- "isOptional": false,
7104
- "isSpread": false
7105
- },
7106
- {
7107
- "__schema": "ParameterSchema",
7108
- "location": {
7109
- "filePath": "capsule/capsule.ts",
7110
- "line": 23,
7111
- "character": 5
7112
- },
7113
- "name": "fs",
7114
- "type": {
7115
- "__schema": "TypeRefSchema",
7116
- "location": {
7117
- "filePath": "capsule/capsule.ts",
7118
- "line": 23,
7119
- "character": 18
7120
- },
7121
- "name": "NodeFS",
7122
- "packageName": "@teambit/any-fs"
7123
- },
7124
- "isOptional": false,
7125
- "isSpread": false
7126
- },
7127
- {
7128
- "__schema": "ParameterSchema",
7129
- "location": {
7130
- "filePath": "capsule/capsule.ts",
7131
- "line": 27,
7132
- "character": 5
7133
- },
7134
- "name": "console",
7135
- "type": {
7136
- "__schema": "TypeRefSchema",
7137
- "location": {
7138
- "filePath": "capsule/capsule.ts",
7139
- "line": 27,
7140
- "character": 23
7141
- },
7142
- "name": "Console",
7143
- "packageName": "@teambit/capsule"
7144
- },
7145
- "isOptional": true,
7146
- "defaultValue": "new Console()",
7147
- "isSpread": false
7365
+ "signature": "(property) FsContainer.id: string",
7366
+ "name": "id",
7367
+ "type": {
7368
+ "__schema": "InferenceTypeSchema",
7369
+ "location": {
7370
+ "filePath": "capsule/container.ts",
7371
+ "line": 21,
7372
+ "character": 3
7148
7373
  },
7149
- {
7150
- "__schema": "ParameterSchema",
7151
- "location": {
7152
- "filePath": "capsule/capsule.ts",
7153
- "line": 31,
7154
- "character": 5
7155
- },
7156
- "name": "state",
7157
- "type": {
7158
- "__schema": "TypeRefSchema",
7159
- "location": {
7160
- "filePath": "capsule/capsule.ts",
7161
- "line": 31,
7162
- "character": 21
7163
- },
7164
- "name": "State",
7165
- "packageName": "@teambit/capsule"
7166
- },
7167
- "isOptional": false,
7168
- "isSpread": false
7374
+ "type": "string"
7375
+ },
7376
+ "isOptional": true,
7377
+ "defaultValue": "'FS Container'"
7378
+ },
7379
+ {
7380
+ "__schema": "VariableLikeSchema",
7381
+ "location": {
7382
+ "filePath": "capsule/container.ts",
7383
+ "line": 23,
7384
+ "character": 3
7385
+ },
7386
+ "signature": "(property) FsContainer.fs: NodeFS",
7387
+ "name": "fs",
7388
+ "type": {
7389
+ "__schema": "TypeRefSchema",
7390
+ "location": {
7391
+ "filePath": "capsule/container.ts",
7392
+ "line": 23,
7393
+ "character": 3
7169
7394
  },
7395
+ "name": "NodeFS",
7396
+ "packageName": "@teambit/any-fs"
7397
+ },
7398
+ "isOptional": true,
7399
+ "defaultValue": "new NodeFS(this.wrkDir)"
7400
+ },
7401
+ {
7402
+ "__schema": "ConstructorSchema",
7403
+ "location": {
7404
+ "filePath": "capsule/container.ts",
7405
+ "line": 25,
7406
+ "character": 3
7407
+ },
7408
+ "signature": "constructor FsContainer(wrkDir: string): FsContainer",
7409
+ "name": "constructor",
7410
+ "params": [
7170
7411
  {
7171
7412
  "__schema": "ParameterSchema",
7172
7413
  "location": {
7173
- "filePath": "capsule/capsule.ts",
7174
- "line": 32,
7175
- "character": 5
7414
+ "filePath": "capsule/container.ts",
7415
+ "line": 25,
7416
+ "character": 15
7176
7417
  },
7177
- "name": "component",
7418
+ "name": "wrkDir",
7178
7419
  "type": {
7179
- "__schema": "TypeRefSchema",
7420
+ "__schema": "KeywordTypeSchema",
7180
7421
  "location": {
7181
- "filePath": "capsule/capsule.ts",
7182
- "line": 32,
7183
- "character": 25
7422
+ "filePath": "capsule/container.ts",
7423
+ "line": 25,
7424
+ "character": 32
7184
7425
  },
7185
- "name": "Component",
7186
- "componentId": {
7187
- "scope": "teambit.component",
7188
- "name": "component"
7189
- }
7426
+ "name": "string"
7190
7427
  },
7191
7428
  "isOptional": false,
7192
7429
  "isSpread": false
@@ -7195,110 +7432,63 @@
7195
7432
  "returnType": {
7196
7433
  "__schema": "ThisTypeSchema",
7197
7434
  "location": {
7198
- "filePath": "capsule/capsule.ts",
7199
- "line": 13,
7435
+ "filePath": "capsule/container.ts",
7436
+ "line": 20,
7200
7437
  "character": 1
7201
7438
  },
7202
- "name": "Capsule"
7439
+ "name": "FsContainer"
7203
7440
  },
7204
7441
  "modifiers": []
7205
7442
  },
7206
- {
7207
- "__schema": "GetAccessorSchema",
7208
- "location": {
7209
- "filePath": "capsule/capsule.ts",
7210
- "line": 41,
7211
- "character": 3
7212
- },
7213
- "signature": "(getter) Capsule.wrkDir: string",
7214
- "name": "wrkDir",
7215
- "type": {
7216
- "__schema": "KeywordTypeSchema",
7217
- "location": {
7218
- "filePath": "capsule/capsule.ts",
7219
- "line": 41,
7220
- "character": 17
7221
- },
7222
- "name": "string"
7223
- }
7224
- },
7225
- {
7226
- "__schema": "GetAccessorSchema",
7227
- "location": {
7228
- "filePath": "capsule/capsule.ts",
7229
- "line": 45,
7230
- "character": 3
7231
- },
7232
- "signature": "(getter) Capsule.path: string",
7233
- "name": "path",
7234
- "type": {
7235
- "__schema": "KeywordTypeSchema",
7236
- "location": {
7237
- "filePath": "capsule/capsule.ts",
7238
- "line": 45,
7239
- "character": 15
7240
- },
7241
- "name": "string"
7242
- }
7243
- },
7244
7443
  {
7245
7444
  "__schema": "FunctionLikeSchema",
7246
7445
  "location": {
7247
- "filePath": "capsule/capsule.ts",
7248
- "line": 49,
7446
+ "filePath": "capsule/container.ts",
7447
+ "line": 28,
7249
7448
  "character": 3
7250
7449
  },
7251
- "signature": "(method) Capsule.start(): Promise<any>",
7252
- "name": "start",
7450
+ "signature": "(method) FsContainer.getPath(): string",
7451
+ "name": "getPath",
7253
7452
  "params": [],
7254
7453
  "returnType": {
7255
- "__schema": "TypeRefSchema",
7454
+ "__schema": "InferenceTypeSchema",
7256
7455
  "location": {
7257
- "filePath": "capsule/capsule.ts",
7258
- "line": 49,
7259
- "character": 12
7456
+ "filePath": "capsule/container.ts",
7457
+ "line": 28,
7458
+ "character": 3
7260
7459
  },
7261
- "name": "Promise",
7262
- "typeArgs": [
7263
- {
7264
- "__schema": "KeywordTypeSchema",
7265
- "location": {
7266
- "filePath": "capsule/capsule.ts",
7267
- "line": 49,
7268
- "character": 20
7269
- },
7270
- "name": "any"
7271
- }
7272
- ]
7460
+ "type": "string"
7273
7461
  },
7274
- "modifiers": []
7462
+ "modifiers": [
7463
+ "public"
7464
+ ]
7275
7465
  },
7276
7466
  {
7277
7467
  "__schema": "FunctionLikeSchema",
7278
7468
  "location": {
7279
- "filePath": "capsule/capsule.ts",
7280
- "line": 53,
7469
+ "filePath": "capsule/container.ts",
7470
+ "line": 36,
7281
7471
  "character": 3
7282
7472
  },
7283
- "signature": "(method) Capsule.execNode(executable: string, args: any, exec: ContainerExec): Promise<ContainerExec>",
7284
- "name": "execNode",
7473
+ "signature": "(method) FsContainer.outputFile(file: any, data: any, options: any): Promise<void>",
7474
+ "name": "outputFile",
7285
7475
  "params": [
7286
7476
  {
7287
7477
  "__schema": "ParameterSchema",
7288
7478
  "location": {
7289
- "filePath": "capsule/capsule.ts",
7290
- "line": 53,
7291
- "character": 18
7479
+ "filePath": "capsule/container.ts",
7480
+ "line": 36,
7481
+ "character": 14
7292
7482
  },
7293
- "name": "executable",
7483
+ "name": "file",
7294
7484
  "type": {
7295
- "__schema": "KeywordTypeSchema",
7485
+ "__schema": "InferenceTypeSchema",
7296
7486
  "location": {
7297
- "filePath": "capsule/capsule.ts",
7298
- "line": 53,
7299
- "character": 30
7487
+ "filePath": "capsule/container.ts",
7488
+ "line": 36,
7489
+ "character": 14
7300
7490
  },
7301
- "name": "string"
7491
+ "type": "any"
7302
7492
  },
7303
7493
  "isOptional": false,
7304
7494
  "isSpread": false
@@ -7306,19 +7496,19 @@
7306
7496
  {
7307
7497
  "__schema": "ParameterSchema",
7308
7498
  "location": {
7309
- "filePath": "capsule/capsule.ts",
7310
- "line": 53,
7311
- "character": 38
7499
+ "filePath": "capsule/container.ts",
7500
+ "line": 36,
7501
+ "character": 20
7312
7502
  },
7313
- "name": "args",
7503
+ "name": "data",
7314
7504
  "type": {
7315
- "__schema": "KeywordTypeSchema",
7505
+ "__schema": "InferenceTypeSchema",
7316
7506
  "location": {
7317
- "filePath": "capsule/capsule.ts",
7318
- "line": 53,
7319
- "character": 44
7507
+ "filePath": "capsule/container.ts",
7508
+ "line": 36,
7509
+ "character": 20
7320
7510
  },
7321
- "name": "any"
7511
+ "type": "any"
7322
7512
  },
7323
7513
  "isOptional": false,
7324
7514
  "isSpread": false
@@ -7326,19 +7516,19 @@
7326
7516
  {
7327
7517
  "__schema": "ParameterSchema",
7328
7518
  "location": {
7329
- "filePath": "capsule/capsule.ts",
7330
- "line": 53,
7331
- "character": 49
7519
+ "filePath": "capsule/container.ts",
7520
+ "line": 36,
7521
+ "character": 26
7332
7522
  },
7333
- "name": "exec",
7523
+ "name": "options",
7334
7524
  "type": {
7335
- "__schema": "TypeRefSchema",
7525
+ "__schema": "InferenceTypeSchema",
7336
7526
  "location": {
7337
- "filePath": "capsule/capsule.ts",
7338
- "line": 53,
7339
- "character": 55
7527
+ "filePath": "capsule/container.ts",
7528
+ "line": 36,
7529
+ "character": 26
7340
7530
  },
7341
- "name": "ContainerExec"
7531
+ "type": "any"
7342
7532
  },
7343
7533
  "isOptional": false,
7344
7534
  "isSpread": false
@@ -7347,43 +7537,93 @@
7347
7537
  "returnType": {
7348
7538
  "__schema": "InferenceTypeSchema",
7349
7539
  "location": {
7350
- "filePath": "capsule/capsule.ts",
7351
- "line": 53,
7540
+ "filePath": "capsule/container.ts",
7541
+ "line": 36,
7352
7542
  "character": 3
7353
7543
  },
7354
- "type": "Promise<ContainerExec>"
7544
+ "type": "Promise<void>"
7355
7545
  },
7356
- "modifiers": [
7357
- "async"
7358
- ]
7546
+ "modifiers": []
7359
7547
  },
7360
7548
  {
7361
7549
  "__schema": "FunctionLikeSchema",
7362
7550
  "location": {
7363
- "filePath": "capsule/capsule.ts",
7364
- "line": 63,
7551
+ "filePath": "capsule/container.ts",
7552
+ "line": 42,
7365
7553
  "character": 3
7366
7554
  },
7367
- "signature": "(method) Capsule.typedExec(opts: BitExecOption, exec?: ContainerExec): Promise<ContainerExec>",
7368
- "name": "typedExec",
7555
+ "signature": "(method) FsContainer.removePath(dir: string): Promise<any>",
7556
+ "name": "removePath",
7369
7557
  "params": [
7370
7558
  {
7371
7559
  "__schema": "ParameterSchema",
7372
7560
  "location": {
7373
- "filePath": "capsule/capsule.ts",
7374
- "line": 63,
7375
- "character": 19
7561
+ "filePath": "capsule/container.ts",
7562
+ "line": 42,
7563
+ "character": 14
7376
7564
  },
7377
- "name": "opts",
7565
+ "name": "dir",
7378
7566
  "type": {
7379
- "__schema": "TypeRefSchema",
7567
+ "__schema": "KeywordTypeSchema",
7568
+ "location": {
7569
+ "filePath": "capsule/container.ts",
7570
+ "line": 42,
7571
+ "character": 19
7572
+ },
7573
+ "name": "string"
7574
+ },
7575
+ "isOptional": false,
7576
+ "isSpread": false
7577
+ }
7578
+ ],
7579
+ "returnType": {
7580
+ "__schema": "TypeRefSchema",
7581
+ "location": {
7582
+ "filePath": "capsule/container.ts",
7583
+ "line": 42,
7584
+ "character": 28
7585
+ },
7586
+ "name": "Promise",
7587
+ "typeArgs": [
7588
+ {
7589
+ "__schema": "KeywordTypeSchema",
7590
+ "location": {
7591
+ "filePath": "capsule/container.ts",
7592
+ "line": 42,
7593
+ "character": 36
7594
+ },
7595
+ "name": "any"
7596
+ }
7597
+ ]
7598
+ },
7599
+ "modifiers": []
7600
+ },
7601
+ {
7602
+ "__schema": "FunctionLikeSchema",
7603
+ "location": {
7604
+ "filePath": "capsule/container.ts",
7605
+ "line": 47,
7606
+ "character": 3
7607
+ },
7608
+ "signature": "(method) FsContainer.symlink(src: string, dest: string): Promise<any>",
7609
+ "name": "symlink",
7610
+ "params": [
7611
+ {
7612
+ "__schema": "ParameterSchema",
7613
+ "location": {
7614
+ "filePath": "capsule/container.ts",
7615
+ "line": 47,
7616
+ "character": 17
7617
+ },
7618
+ "name": "src",
7619
+ "type": {
7620
+ "__schema": "KeywordTypeSchema",
7380
7621
  "location": {
7381
- "filePath": "capsule/capsule.ts",
7382
- "line": 63,
7383
- "character": 25
7622
+ "filePath": "capsule/container.ts",
7623
+ "line": 47,
7624
+ "character": 22
7384
7625
  },
7385
- "name": "BitExecOption",
7386
- "internalFilePath": "capsule/container.ts"
7626
+ "name": "string"
7387
7627
  },
7388
7628
  "isOptional": false,
7389
7629
  "isSpread": false
@@ -7391,33 +7631,43 @@
7391
7631
  {
7392
7632
  "__schema": "ParameterSchema",
7393
7633
  "location": {
7394
- "filePath": "capsule/capsule.ts",
7395
- "line": 63,
7396
- "character": 40
7634
+ "filePath": "capsule/container.ts",
7635
+ "line": 47,
7636
+ "character": 30
7397
7637
  },
7398
- "name": "exec",
7638
+ "name": "dest",
7399
7639
  "type": {
7400
- "__schema": "InferenceTypeSchema",
7640
+ "__schema": "KeywordTypeSchema",
7401
7641
  "location": {
7402
- "filePath": "capsule/capsule.ts",
7403
- "line": 63,
7404
- "character": 40
7642
+ "filePath": "capsule/container.ts",
7643
+ "line": 47,
7644
+ "character": 36
7405
7645
  },
7406
- "type": "ContainerExec"
7646
+ "name": "string"
7407
7647
  },
7408
- "isOptional": true,
7409
- "defaultValue": "new ContainerExec()",
7648
+ "isOptional": false,
7410
7649
  "isSpread": false
7411
7650
  }
7412
7651
  ],
7413
7652
  "returnType": {
7414
- "__schema": "InferenceTypeSchema",
7653
+ "__schema": "TypeRefSchema",
7415
7654
  "location": {
7416
- "filePath": "capsule/capsule.ts",
7417
- "line": 63,
7418
- "character": 3
7655
+ "filePath": "capsule/container.ts",
7656
+ "line": 47,
7657
+ "character": 45
7419
7658
  },
7420
- "type": "Promise<ContainerExec>"
7659
+ "name": "Promise",
7660
+ "typeArgs": [
7661
+ {
7662
+ "__schema": "KeywordTypeSchema",
7663
+ "location": {
7664
+ "filePath": "capsule/container.ts",
7665
+ "line": 47,
7666
+ "character": 53
7667
+ },
7668
+ "name": "any"
7669
+ }
7670
+ ]
7421
7671
  },
7422
7672
  "modifiers": [
7423
7673
  "async"
@@ -7426,49 +7676,30 @@
7426
7676
  {
7427
7677
  "__schema": "FunctionLikeSchema",
7428
7678
  "location": {
7429
- "filePath": "capsule/capsule.ts",
7430
- "line": 67,
7679
+ "filePath": "capsule/container.ts",
7680
+ "line": 54,
7431
7681
  "character": 3
7432
7682
  },
7433
- "signature": "(method) Capsule.outputFile(file: string, data: any, options?: any): Promise<any>",
7434
- "name": "outputFile",
7683
+ "signature": "(method) FsContainer.exec(execOptions: BitExecOption, exec?: ContainerExec): Promise<ContainerExec>",
7684
+ "name": "exec",
7435
7685
  "params": [
7436
7686
  {
7437
7687
  "__schema": "ParameterSchema",
7438
7688
  "location": {
7439
- "filePath": "capsule/capsule.ts",
7440
- "line": 67,
7689
+ "filePath": "capsule/container.ts",
7690
+ "line": 54,
7441
7691
  "character": 14
7442
7692
  },
7443
- "name": "file",
7444
- "type": {
7445
- "__schema": "KeywordTypeSchema",
7446
- "location": {
7447
- "filePath": "capsule/capsule.ts",
7448
- "line": 67,
7449
- "character": 20
7450
- },
7451
- "name": "string"
7452
- },
7453
- "isOptional": false,
7454
- "isSpread": false
7455
- },
7456
- {
7457
- "__schema": "ParameterSchema",
7458
- "location": {
7459
- "filePath": "capsule/capsule.ts",
7460
- "line": 67,
7461
- "character": 28
7462
- },
7463
- "name": "data",
7693
+ "name": "execOptions",
7464
7694
  "type": {
7465
- "__schema": "KeywordTypeSchema",
7695
+ "__schema": "TypeRefSchema",
7466
7696
  "location": {
7467
- "filePath": "capsule/capsule.ts",
7468
- "line": 67,
7469
- "character": 34
7697
+ "filePath": "capsule/container.ts",
7698
+ "line": 54,
7699
+ "character": 27
7470
7700
  },
7471
- "name": "any"
7701
+ "name": "BitExecOption",
7702
+ "internalFilePath": "capsule/container.ts"
7472
7703
  },
7473
7704
  "isOptional": false,
7474
7705
  "isSpread": false
@@ -7476,72 +7707,76 @@
7476
7707
  {
7477
7708
  "__schema": "ParameterSchema",
7478
7709
  "location": {
7479
- "filePath": "capsule/capsule.ts",
7480
- "line": 67,
7481
- "character": 39
7710
+ "filePath": "capsule/container.ts",
7711
+ "line": 54,
7712
+ "character": 42
7482
7713
  },
7483
- "name": "options",
7714
+ "name": "exec",
7484
7715
  "type": {
7485
- "__schema": "KeywordTypeSchema",
7716
+ "__schema": "InferenceTypeSchema",
7486
7717
  "location": {
7487
- "filePath": "capsule/capsule.ts",
7488
- "line": 67,
7489
- "character": 49
7718
+ "filePath": "capsule/container.ts",
7719
+ "line": 54,
7720
+ "character": 42
7490
7721
  },
7491
- "name": "any"
7722
+ "type": "ContainerExec"
7492
7723
  },
7493
7724
  "isOptional": true,
7725
+ "defaultValue": "new ContainerExec()",
7494
7726
  "isSpread": false
7495
7727
  }
7496
7728
  ],
7497
7729
  "returnType": {
7498
7730
  "__schema": "TypeRefSchema",
7499
7731
  "location": {
7500
- "filePath": "capsule/capsule.ts",
7501
- "line": 67,
7502
- "character": 55
7732
+ "filePath": "capsule/container.ts",
7733
+ "line": 54,
7734
+ "character": 71
7503
7735
  },
7504
7736
  "name": "Promise",
7505
7737
  "typeArgs": [
7506
7738
  {
7507
- "__schema": "KeywordTypeSchema",
7739
+ "__schema": "TypeRefSchema",
7508
7740
  "location": {
7509
- "filePath": "capsule/capsule.ts",
7510
- "line": 67,
7511
- "character": 63
7741
+ "filePath": "capsule/container.ts",
7742
+ "line": 54,
7743
+ "character": 79
7512
7744
  },
7513
- "name": "any"
7745
+ "name": "ContainerExec"
7514
7746
  }
7515
7747
  ]
7516
7748
  },
7517
- "modifiers": []
7749
+ "modifiers": [
7750
+ "async"
7751
+ ]
7518
7752
  },
7519
7753
  {
7520
7754
  "__schema": "FunctionLikeSchema",
7521
7755
  "location": {
7522
- "filePath": "capsule/capsule.ts",
7523
- "line": 71,
7756
+ "filePath": "capsule/container.ts",
7757
+ "line": 82,
7524
7758
  "character": 3
7525
7759
  },
7526
- "signature": "(method) Capsule.removePath(dir: string): Promise<any>",
7527
- "name": "removePath",
7760
+ "signature": "(method) FsContainer.execP(execOptions: BitExecOption): Promise<string>",
7761
+ "name": "execP",
7528
7762
  "params": [
7529
7763
  {
7530
7764
  "__schema": "ParameterSchema",
7531
7765
  "location": {
7532
- "filePath": "capsule/capsule.ts",
7533
- "line": 71,
7534
- "character": 14
7766
+ "filePath": "capsule/container.ts",
7767
+ "line": 82,
7768
+ "character": 15
7535
7769
  },
7536
- "name": "dir",
7770
+ "name": "execOptions",
7537
7771
  "type": {
7538
- "__schema": "KeywordTypeSchema",
7772
+ "__schema": "TypeRefSchema",
7539
7773
  "location": {
7540
- "filePath": "capsule/capsule.ts",
7541
- "line": 71,
7542
- "character": 19
7774
+ "filePath": "capsule/container.ts",
7775
+ "line": 82,
7776
+ "character": 28
7543
7777
  },
7544
- "name": "string"
7778
+ "name": "BitExecOption",
7779
+ "internalFilePath": "capsule/container.ts"
7545
7780
  },
7546
7781
  "isOptional": false,
7547
7782
  "isSpread": false
@@ -7550,93 +7785,77 @@
7550
7785
  "returnType": {
7551
7786
  "__schema": "TypeRefSchema",
7552
7787
  "location": {
7553
- "filePath": "capsule/capsule.ts",
7554
- "line": 71,
7555
- "character": 28
7788
+ "filePath": "capsule/container.ts",
7789
+ "line": 82,
7790
+ "character": 44
7556
7791
  },
7557
7792
  "name": "Promise",
7558
7793
  "typeArgs": [
7559
7794
  {
7560
7795
  "__schema": "KeywordTypeSchema",
7561
7796
  "location": {
7562
- "filePath": "capsule/capsule.ts",
7563
- "line": 71,
7564
- "character": 36
7797
+ "filePath": "capsule/container.ts",
7798
+ "line": 82,
7799
+ "character": 52
7565
7800
  },
7566
- "name": "any"
7801
+ "name": "string"
7567
7802
  }
7568
7803
  ]
7569
7804
  },
7570
- "modifiers": []
7805
+ "modifiers": [
7806
+ "async"
7807
+ ]
7571
7808
  },
7572
7809
  {
7573
7810
  "__schema": "FunctionLikeSchema",
7574
7811
  "location": {
7575
- "filePath": "capsule/capsule.ts",
7576
- "line": 75,
7812
+ "filePath": "capsule/container.ts",
7813
+ "line": 96,
7577
7814
  "character": 3
7578
7815
  },
7579
- "signature": "(method) Capsule.symlink(src: string, dest: string): Promise<any>",
7580
- "name": "symlink",
7581
- "params": [
7582
- {
7583
- "__schema": "ParameterSchema",
7584
- "location": {
7585
- "filePath": "capsule/capsule.ts",
7586
- "line": 75,
7587
- "character": 11
7588
- },
7589
- "name": "src",
7590
- "type": {
7591
- "__schema": "KeywordTypeSchema",
7592
- "location": {
7593
- "filePath": "capsule/capsule.ts",
7594
- "line": 75,
7595
- "character": 16
7596
- },
7597
- "name": "string"
7598
- },
7599
- "isOptional": false,
7600
- "isSpread": false
7816
+ "signature": "(method) FsContainer.terminal(): Promise<execa.ExecaReturnValue<string>>",
7817
+ "name": "terminal",
7818
+ "params": [],
7819
+ "returnType": {
7820
+ "__schema": "InferenceTypeSchema",
7821
+ "location": {
7822
+ "filePath": "capsule/container.ts",
7823
+ "line": 96,
7824
+ "character": 3
7601
7825
  },
7602
- {
7603
- "__schema": "ParameterSchema",
7604
- "location": {
7605
- "filePath": "capsule/capsule.ts",
7606
- "line": 75,
7607
- "character": 24
7608
- },
7609
- "name": "dest",
7610
- "type": {
7611
- "__schema": "KeywordTypeSchema",
7612
- "location": {
7613
- "filePath": "capsule/capsule.ts",
7614
- "line": 75,
7615
- "character": 30
7616
- },
7617
- "name": "string"
7618
- },
7619
- "isOptional": false,
7620
- "isSpread": false
7621
- }
7622
- ],
7826
+ "type": "Promise<execa.ExecaReturnValue<string>>"
7827
+ },
7828
+ "modifiers": [
7829
+ "async"
7830
+ ]
7831
+ },
7832
+ {
7833
+ "__schema": "FunctionLikeSchema",
7834
+ "location": {
7835
+ "filePath": "capsule/container.ts",
7836
+ "line": 101,
7837
+ "character": 3
7838
+ },
7839
+ "signature": "(method) FsContainer.start(): Promise<void>",
7840
+ "name": "start",
7841
+ "params": [],
7623
7842
  "returnType": {
7624
7843
  "__schema": "TypeRefSchema",
7625
7844
  "location": {
7626
- "filePath": "capsule/capsule.ts",
7627
- "line": 75,
7628
- "character": 39
7845
+ "filePath": "capsule/container.ts",
7846
+ "line": 101,
7847
+ "character": 12
7629
7848
  },
7630
7849
  "name": "Promise",
7631
7850
  "typeArgs": [
7632
7851
  {
7633
7852
  "__schema": "KeywordTypeSchema",
7634
7853
  "location": {
7635
- "filePath": "capsule/capsule.ts",
7636
- "line": 75,
7637
- "character": 47
7854
+ "filePath": "capsule/container.ts",
7855
+ "line": 101,
7856
+ "character": 20
7638
7857
  },
7639
- "name": "any"
7858
+ "name": "void"
7640
7859
  }
7641
7860
  ]
7642
7861
  },
@@ -7645,110 +7864,33 @@
7645
7864
  {
7646
7865
  "__schema": "FunctionLikeSchema",
7647
7866
  "location": {
7648
- "filePath": "capsule/capsule.ts",
7649
- "line": 80,
7867
+ "filePath": "capsule/container.ts",
7868
+ "line": 105,
7650
7869
  "character": 3
7651
7870
  },
7652
- "signature": "(method) Capsule.execute(cmd: string, options?: Record<string, any> | null | undefined): Promise<unknown>",
7653
- "name": "execute",
7654
- "params": [
7655
- {
7656
- "__schema": "ParameterSchema",
7657
- "location": {
7658
- "filePath": "capsule/capsule.ts",
7659
- "line": 80,
7660
- "character": 17
7661
- },
7662
- "name": "cmd",
7663
- "type": {
7664
- "__schema": "KeywordTypeSchema",
7665
- "location": {
7666
- "filePath": "capsule/capsule.ts",
7667
- "line": 80,
7668
- "character": 22
7669
- },
7670
- "name": "string"
7671
- },
7672
- "isOptional": false,
7673
- "isSpread": false
7674
- },
7675
- {
7676
- "__schema": "ParameterSchema",
7677
- "location": {
7678
- "filePath": "capsule/capsule.ts",
7679
- "line": 80,
7680
- "character": 30
7681
- },
7682
- "name": "options",
7683
- "type": {
7684
- "__schema": "TypeUnionSchema",
7685
- "location": {
7686
- "filePath": "capsule/capsule.ts",
7687
- "line": 80,
7688
- "character": 40
7689
- },
7690
- "types": [
7691
- {
7692
- "__schema": "TypeRefSchema",
7693
- "location": {
7694
- "filePath": "capsule/capsule.ts",
7695
- "line": 80,
7696
- "character": 40
7697
- },
7698
- "name": "Record",
7699
- "typeArgs": [
7700
- {
7701
- "__schema": "KeywordTypeSchema",
7702
- "location": {
7703
- "filePath": "capsule/capsule.ts",
7704
- "line": 80,
7705
- "character": 47
7706
- },
7707
- "name": "string"
7708
- },
7709
- {
7710
- "__schema": "KeywordTypeSchema",
7711
- "location": {
7712
- "filePath": "capsule/capsule.ts",
7713
- "line": 80,
7714
- "character": 55
7715
- },
7716
- "name": "any"
7717
- }
7718
- ]
7719
- },
7720
- {
7721
- "__schema": "LiteralTypeSchema",
7722
- "location": {
7723
- "filePath": "capsule/capsule.ts",
7724
- "line": 80,
7725
- "character": 62
7726
- },
7727
- "name": "null"
7728
- },
7729
- {
7730
- "__schema": "KeywordTypeSchema",
7731
- "location": {
7732
- "filePath": "capsule/capsule.ts",
7733
- "line": 80,
7734
- "character": 69
7735
- },
7736
- "name": "undefined"
7737
- }
7738
- ]
7739
- },
7740
- "isOptional": true,
7741
- "isSpread": false
7742
- }
7743
- ],
7871
+ "signature": "(method) FsContainer.inspect(): Promise<ContainerStatus>",
7872
+ "name": "inspect",
7873
+ "params": [],
7744
7874
  "returnType": {
7745
- "__schema": "InferenceTypeSchema",
7875
+ "__schema": "TypeRefSchema",
7746
7876
  "location": {
7747
- "filePath": "capsule/capsule.ts",
7748
- "line": 80,
7749
- "character": 3
7877
+ "filePath": "capsule/container.ts",
7878
+ "line": 105,
7879
+ "character": 20
7750
7880
  },
7751
- "type": "Promise<unknown>"
7881
+ "name": "Promise",
7882
+ "typeArgs": [
7883
+ {
7884
+ "__schema": "TypeRefSchema",
7885
+ "location": {
7886
+ "filePath": "capsule/container.ts",
7887
+ "line": 105,
7888
+ "character": 28
7889
+ },
7890
+ "name": "ContainerStatus",
7891
+ "packageName": "@teambit/capsule"
7892
+ }
7893
+ ]
7752
7894
  },
7753
7895
  "modifiers": [
7754
7896
  "async"
@@ -7757,406 +7899,234 @@
7757
7899
  {
7758
7900
  "__schema": "FunctionLikeSchema",
7759
7901
  "location": {
7760
- "filePath": "capsule/capsule.ts",
7761
- "line": 112,
7902
+ "filePath": "capsule/container.ts",
7903
+ "line": 108,
7762
7904
  "character": 3
7763
7905
  },
7764
- "doc": {
7765
- "__schema": "DocSchema",
7906
+ "signature": "(method) FsContainer.pause(): Promise<void>",
7907
+ "name": "pause",
7908
+ "params": [],
7909
+ "returnType": {
7910
+ "__schema": "TypeRefSchema",
7766
7911
  "location": {
7767
- "filePath": "capsule/capsule.ts",
7768
- "line": 105,
7769
- "character": 3
7912
+ "filePath": "capsule/container.ts",
7913
+ "line": 108,
7914
+ "character": 18
7770
7915
  },
7771
- "raw": "/**\n * @todo: fix.\n * it skips the capsule fs because for some reason `capsule.fs.promises.readdir` doesn't work\n * the same as `capsule.fs.readdir` and it doesn't have the capsule dir as pwd.\n *\n * returns the paths inside the capsule\n */",
7772
- "comment": "",
7773
- "tags": [
7916
+ "name": "Promise",
7917
+ "typeArgs": [
7774
7918
  {
7775
- "__schema": "TagSchema",
7919
+ "__schema": "KeywordTypeSchema",
7776
7920
  "location": {
7777
- "filePath": "capsule/capsule.ts",
7778
- "line": 106,
7779
- "character": 6
7921
+ "filePath": "capsule/container.ts",
7922
+ "line": 108,
7923
+ "character": 26
7780
7924
  },
7781
- "tagName": "todo",
7782
- "comment": ": fix.\nit skips the capsule fs because for some reason `capsule.fs.promises.readdir` doesn't work\nthe same as `capsule.fs.readdir` and it doesn't have the capsule dir as pwd.\n\nreturns the paths inside the capsule"
7925
+ "name": "void"
7783
7926
  }
7784
7927
  ]
7785
7928
  },
7786
- "signature": "(method) Capsule.getAllFilesPaths(dir?: string, options?: {\n ignore?: string[];\n}): any",
7787
- "name": "getAllFilesPaths",
7788
- "params": [
7789
- {
7790
- "__schema": "ParameterSchema",
7791
- "location": {
7792
- "filePath": "capsule/capsule.ts",
7793
- "line": 112,
7794
- "character": 20
7795
- },
7796
- "name": "dir",
7797
- "type": {
7798
- "__schema": "InferenceTypeSchema",
7799
- "location": {
7800
- "filePath": "capsule/capsule.ts",
7801
- "line": 112,
7802
- "character": 20
7803
- },
7804
- "type": "string"
7805
- },
7806
- "isOptional": true,
7807
- "defaultValue": "'.'",
7808
- "isSpread": false
7809
- },
7810
- {
7811
- "__schema": "ParameterSchema",
7812
- "location": {
7813
- "filePath": "capsule/capsule.ts",
7814
- "line": 112,
7815
- "character": 31
7816
- },
7817
- "name": "options",
7818
- "type": {
7819
- "__schema": "TypeLiteralSchema",
7820
- "location": {
7821
- "filePath": "capsule/capsule.ts",
7822
- "line": 112,
7823
- "character": 40
7824
- },
7825
- "members": [
7826
- {
7827
- "__schema": "VariableLikeSchema",
7828
- "location": {
7829
- "filePath": "capsule/capsule.ts",
7830
- "line": 112,
7831
- "character": 42
7832
- },
7833
- "signature": "(property) ignore?: string[] | undefined",
7834
- "name": "ignore",
7835
- "type": {
7836
- "__schema": "TypeArraySchema",
7837
- "location": {
7838
- "filePath": "capsule/capsule.ts",
7839
- "line": 112,
7840
- "character": 51
7841
- },
7842
- "type": {
7843
- "__schema": "KeywordTypeSchema",
7844
- "location": {
7845
- "filePath": "capsule/capsule.ts",
7846
- "line": 112,
7847
- "character": 51
7848
- },
7849
- "name": "string"
7850
- }
7851
- },
7852
- "isOptional": true
7853
- }
7854
- ]
7855
- },
7856
- "isOptional": true,
7857
- "defaultValue": "{}",
7858
- "isSpread": false
7859
- }
7860
- ],
7929
+ "modifiers": [
7930
+ "async"
7931
+ ]
7932
+ },
7933
+ {
7934
+ "__schema": "FunctionLikeSchema",
7935
+ "location": {
7936
+ "filePath": "capsule/container.ts",
7937
+ "line": 111,
7938
+ "character": 3
7939
+ },
7940
+ "signature": "(method) FsContainer.resume(): Promise<void>",
7941
+ "name": "resume",
7942
+ "params": [],
7861
7943
  "returnType": {
7862
- "__schema": "InferenceTypeSchema",
7944
+ "__schema": "TypeRefSchema",
7863
7945
  "location": {
7864
- "filePath": "capsule/capsule.ts",
7865
- "line": 112,
7866
- "character": 3
7946
+ "filePath": "capsule/container.ts",
7947
+ "line": 111,
7948
+ "character": 19
7867
7949
  },
7868
- "type": "any"
7950
+ "name": "Promise",
7951
+ "typeArgs": [
7952
+ {
7953
+ "__schema": "KeywordTypeSchema",
7954
+ "location": {
7955
+ "filePath": "capsule/container.ts",
7956
+ "line": 111,
7957
+ "character": 27
7958
+ },
7959
+ "name": "void"
7960
+ }
7961
+ ]
7869
7962
  },
7870
- "modifiers": []
7963
+ "modifiers": [
7964
+ "async"
7965
+ ]
7871
7966
  },
7872
7967
  {
7873
7968
  "__schema": "FunctionLikeSchema",
7874
7969
  "location": {
7875
- "filePath": "capsule/capsule.ts",
7876
- "line": 117,
7970
+ "filePath": "capsule/container.ts",
7971
+ "line": 115,
7877
7972
  "character": 3
7878
7973
  },
7879
- "signature": "(method) Capsule.getCapsuleDirName(component: Component, config?: {\n alwaysNew?: boolean;\n name?: string;\n}): string",
7880
- "name": "getCapsuleDirName",
7974
+ "signature": "(method) FsContainer.stop(ttl?: number | undefined): Promise<void>",
7975
+ "name": "stop",
7881
7976
  "params": [
7882
7977
  {
7883
7978
  "__schema": "ParameterSchema",
7884
7979
  "location": {
7885
- "filePath": "capsule/capsule.ts",
7886
- "line": 117,
7887
- "character": 28
7888
- },
7889
- "name": "component",
7890
- "type": {
7891
- "__schema": "TypeRefSchema",
7892
- "location": {
7893
- "filePath": "capsule/capsule.ts",
7894
- "line": 117,
7895
- "character": 39
7896
- },
7897
- "name": "Component",
7898
- "componentId": {
7899
- "scope": "teambit.component",
7900
- "name": "component"
7901
- }
7902
- },
7903
- "isOptional": false,
7904
- "isSpread": false
7905
- },
7906
- {
7907
- "__schema": "ParameterSchema",
7908
- "location": {
7909
- "filePath": "capsule/capsule.ts",
7910
- "line": 117,
7911
- "character": 50
7980
+ "filePath": "capsule/container.ts",
7981
+ "line": 115,
7982
+ "character": 8
7912
7983
  },
7913
- "name": "config",
7984
+ "name": "ttl",
7914
7985
  "type": {
7915
- "__schema": "TypeLiteralSchema",
7986
+ "__schema": "TypeUnionSchema",
7916
7987
  "location": {
7917
- "filePath": "capsule/capsule.ts",
7918
- "line": 117,
7919
- "character": 58
7988
+ "filePath": "capsule/container.ts",
7989
+ "line": 115,
7990
+ "character": 14
7920
7991
  },
7921
- "members": [
7992
+ "types": [
7922
7993
  {
7923
- "__schema": "VariableLikeSchema",
7994
+ "__schema": "KeywordTypeSchema",
7924
7995
  "location": {
7925
- "filePath": "capsule/capsule.ts",
7926
- "line": 117,
7927
- "character": 60
7928
- },
7929
- "signature": "(property) alwaysNew?: boolean | undefined",
7930
- "name": "alwaysNew",
7931
- "type": {
7932
- "__schema": "KeywordTypeSchema",
7933
- "location": {
7934
- "filePath": "capsule/capsule.ts",
7935
- "line": 117,
7936
- "character": 72
7937
- },
7938
- "name": "boolean"
7996
+ "filePath": "capsule/container.ts",
7997
+ "line": 115,
7998
+ "character": 14
7939
7999
  },
7940
- "isOptional": true
8000
+ "name": "number"
7941
8001
  },
7942
8002
  {
7943
- "__schema": "VariableLikeSchema",
8003
+ "__schema": "KeywordTypeSchema",
7944
8004
  "location": {
7945
- "filePath": "capsule/capsule.ts",
7946
- "line": 117,
7947
- "character": 81
7948
- },
7949
- "signature": "(property) name?: string | undefined",
7950
- "name": "name",
7951
- "type": {
7952
- "__schema": "KeywordTypeSchema",
7953
- "location": {
7954
- "filePath": "capsule/capsule.ts",
7955
- "line": 117,
7956
- "character": 88
7957
- },
7958
- "name": "string"
8005
+ "filePath": "capsule/container.ts",
8006
+ "line": 115,
8007
+ "character": 23
7959
8008
  },
7960
- "isOptional": true
8009
+ "name": "undefined"
7961
8010
  }
7962
8011
  ]
7963
8012
  },
7964
8013
  "isOptional": true,
7965
- "defaultValue": "{}",
7966
8014
  "isSpread": false
7967
8015
  }
7968
8016
  ],
7969
8017
  "returnType": {
7970
- "__schema": "InferenceTypeSchema",
8018
+ "__schema": "TypeRefSchema",
7971
8019
  "location": {
7972
- "filePath": "capsule/capsule.ts",
7973
- "line": 117,
7974
- "character": 3
8020
+ "filePath": "capsule/container.ts",
8021
+ "line": 115,
8022
+ "character": 35
7975
8023
  },
7976
- "type": "string"
8024
+ "name": "Promise",
8025
+ "typeArgs": [
8026
+ {
8027
+ "__schema": "KeywordTypeSchema",
8028
+ "location": {
8029
+ "filePath": "capsule/container.ts",
8030
+ "line": 115,
8031
+ "character": 43
8032
+ },
8033
+ "name": "void"
8034
+ }
8035
+ ]
7977
8036
  },
7978
- "modifiers": [
7979
- "static"
7980
- ]
8037
+ "modifiers": []
7981
8038
  },
7982
8039
  {
7983
8040
  "__schema": "FunctionLikeSchema",
7984
8041
  "location": {
7985
- "filePath": "capsule/capsule.ts",
7986
- "line": 121,
8042
+ "filePath": "capsule/container.ts",
8043
+ "line": 118,
7987
8044
  "character": 3
7988
- },
7989
- "signature": "(method) Capsule.getCapsuleRootDir(component: Component, baseDir: string, config?: {\n alwaysNew?: boolean;\n name?: string;\n}): string",
7990
- "name": "getCapsuleRootDir",
7991
- "params": [
7992
- {
7993
- "__schema": "ParameterSchema",
7994
- "location": {
7995
- "filePath": "capsule/capsule.ts",
7996
- "line": 121,
7997
- "character": 28
7998
- },
7999
- "name": "component",
8000
- "type": {
8001
- "__schema": "TypeRefSchema",
8002
- "location": {
8003
- "filePath": "capsule/capsule.ts",
8004
- "line": 121,
8005
- "character": 39
8006
- },
8007
- "name": "Component",
8008
- "componentId": {
8009
- "scope": "teambit.component",
8010
- "name": "component"
8011
- }
8012
- },
8013
- "isOptional": false,
8014
- "isSpread": false
8015
- },
8016
- {
8017
- "__schema": "ParameterSchema",
8018
- "location": {
8019
- "filePath": "capsule/capsule.ts",
8020
- "line": 121,
8021
- "character": 50
8022
- },
8023
- "name": "baseDir",
8024
- "type": {
8025
- "__schema": "KeywordTypeSchema",
8026
- "location": {
8027
- "filePath": "capsule/capsule.ts",
8028
- "line": 121,
8029
- "character": 59
8030
- },
8031
- "name": "string"
8032
- },
8033
- "isOptional": false,
8034
- "isSpread": false
8035
- },
8036
- {
8037
- "__schema": "ParameterSchema",
8038
- "location": {
8039
- "filePath": "capsule/capsule.ts",
8040
- "line": 121,
8041
- "character": 67
8042
- },
8043
- "name": "config",
8044
- "type": {
8045
- "__schema": "TypeLiteralSchema",
8046
- "location": {
8047
- "filePath": "capsule/capsule.ts",
8048
- "line": 121,
8049
- "character": 75
8050
- },
8051
- "members": [
8052
- {
8053
- "__schema": "VariableLikeSchema",
8054
- "location": {
8055
- "filePath": "capsule/capsule.ts",
8056
- "line": 121,
8057
- "character": 77
8058
- },
8059
- "signature": "(property) alwaysNew?: boolean | undefined",
8060
- "name": "alwaysNew",
8061
- "type": {
8062
- "__schema": "KeywordTypeSchema",
8063
- "location": {
8064
- "filePath": "capsule/capsule.ts",
8065
- "line": 121,
8066
- "character": 89
8067
- },
8068
- "name": "boolean"
8069
- },
8070
- "isOptional": true
8071
- },
8072
- {
8073
- "__schema": "VariableLikeSchema",
8074
- "location": {
8075
- "filePath": "capsule/capsule.ts",
8076
- "line": 121,
8077
- "character": 98
8078
- },
8079
- "signature": "(property) name?: string | undefined",
8080
- "name": "name",
8081
- "type": {
8082
- "__schema": "KeywordTypeSchema",
8083
- "location": {
8084
- "filePath": "capsule/capsule.ts",
8085
- "line": 121,
8086
- "character": 105
8087
- },
8088
- "name": "string"
8089
- },
8090
- "isOptional": true
8091
- }
8092
- ]
8093
- },
8094
- "isOptional": true,
8095
- "defaultValue": "{}",
8096
- "isSpread": false
8097
- }
8098
- ],
8045
+ },
8046
+ "signature": "(method) FsContainer.destroy(): Promise<void>",
8047
+ "name": "destroy",
8048
+ "params": [],
8099
8049
  "returnType": {
8100
- "__schema": "InferenceTypeSchema",
8050
+ "__schema": "TypeRefSchema",
8101
8051
  "location": {
8102
- "filePath": "capsule/capsule.ts",
8103
- "line": 121,
8104
- "character": 3
8052
+ "filePath": "capsule/container.ts",
8053
+ "line": 118,
8054
+ "character": 20
8105
8055
  },
8106
- "type": "string"
8056
+ "name": "Promise",
8057
+ "typeArgs": [
8058
+ {
8059
+ "__schema": "KeywordTypeSchema",
8060
+ "location": {
8061
+ "filePath": "capsule/container.ts",
8062
+ "line": 118,
8063
+ "character": 28
8064
+ },
8065
+ "name": "void"
8066
+ }
8067
+ ]
8107
8068
  },
8108
8069
  "modifiers": [
8109
- "static"
8070
+ "async"
8110
8071
  ]
8111
8072
  },
8112
8073
  {
8113
8074
  "__schema": "FunctionLikeSchema",
8114
8075
  "location": {
8115
- "filePath": "capsule/capsule.ts",
8116
- "line": 125,
8076
+ "filePath": "capsule/container.ts",
8077
+ "line": 121,
8117
8078
  "character": 3
8118
8079
  },
8119
- "signature": "(method) Capsule.createFromComponent(component: Component, baseDir: string, config?: {\n alwaysNew?: boolean;\n}): Promise<Capsule>",
8120
- "name": "createFromComponent",
8121
- "params": [
8122
- {
8123
- "__schema": "ParameterSchema",
8124
- "location": {
8125
- "filePath": "capsule/capsule.ts",
8126
- "line": 126,
8127
- "character": 5
8128
- },
8129
- "name": "component",
8130
- "type": {
8080
+ "signature": "(method) FsContainer.log(): Promise<Exec>",
8081
+ "name": "log",
8082
+ "params": [],
8083
+ "returnType": {
8084
+ "__schema": "TypeRefSchema",
8085
+ "location": {
8086
+ "filePath": "capsule/container.ts",
8087
+ "line": 121,
8088
+ "character": 10
8089
+ },
8090
+ "name": "Promise",
8091
+ "typeArgs": [
8092
+ {
8131
8093
  "__schema": "TypeRefSchema",
8132
8094
  "location": {
8133
- "filePath": "capsule/capsule.ts",
8134
- "line": 126,
8135
- "character": 16
8095
+ "filePath": "capsule/container.ts",
8096
+ "line": 121,
8097
+ "character": 18
8136
8098
  },
8137
- "name": "Component",
8138
- "componentId": {
8139
- "scope": "teambit.component",
8140
- "name": "component"
8141
- }
8142
- },
8143
- "isOptional": false,
8144
- "isSpread": false
8145
- },
8099
+ "name": "Exec",
8100
+ "packageName": "@teambit/capsule"
8101
+ }
8102
+ ]
8103
+ },
8104
+ "modifiers": []
8105
+ },
8106
+ {
8107
+ "__schema": "FunctionLikeSchema",
8108
+ "location": {
8109
+ "filePath": "capsule/container.ts",
8110
+ "line": 124,
8111
+ "character": 3
8112
+ },
8113
+ "signature": "(method) FsContainer.on(event: string, fn: (data: any) => void): void",
8114
+ "name": "on",
8115
+ "params": [
8146
8116
  {
8147
8117
  "__schema": "ParameterSchema",
8148
8118
  "location": {
8149
- "filePath": "capsule/capsule.ts",
8150
- "line": 127,
8151
- "character": 5
8119
+ "filePath": "capsule/container.ts",
8120
+ "line": 124,
8121
+ "character": 6
8152
8122
  },
8153
- "name": "baseDir",
8123
+ "name": "event",
8154
8124
  "type": {
8155
8125
  "__schema": "KeywordTypeSchema",
8156
8126
  "location": {
8157
- "filePath": "capsule/capsule.ts",
8158
- "line": 127,
8159
- "character": 14
8127
+ "filePath": "capsule/container.ts",
8128
+ "line": 124,
8129
+ "character": 13
8160
8130
  },
8161
8131
  "name": "string"
8162
8132
  },
@@ -8166,88 +8136,86 @@
8166
8136
  {
8167
8137
  "__schema": "ParameterSchema",
8168
8138
  "location": {
8169
- "filePath": "capsule/capsule.ts",
8170
- "line": 128,
8171
- "character": 5
8139
+ "filePath": "capsule/container.ts",
8140
+ "line": 124,
8141
+ "character": 21
8172
8142
  },
8173
- "name": "config",
8143
+ "name": "fn",
8174
8144
  "type": {
8175
- "__schema": "TypeLiteralSchema",
8145
+ "__schema": "FunctionLikeSchema",
8176
8146
  "location": {
8177
- "filePath": "capsule/capsule.ts",
8178
- "line": 128,
8179
- "character": 13
8147
+ "filePath": "capsule/container.ts",
8148
+ "line": 124,
8149
+ "character": 25
8180
8150
  },
8181
- "members": [
8151
+ "signature": "(data: any): void",
8152
+ "name": "",
8153
+ "params": [
8182
8154
  {
8183
- "__schema": "VariableLikeSchema",
8155
+ "__schema": "ParameterSchema",
8184
8156
  "location": {
8185
- "filePath": "capsule/capsule.ts",
8186
- "line": 128,
8187
- "character": 15
8157
+ "filePath": "capsule/container.ts",
8158
+ "line": 124,
8159
+ "character": 26
8188
8160
  },
8189
- "signature": "(property) alwaysNew?: boolean | undefined",
8190
- "name": "alwaysNew",
8161
+ "name": "data",
8191
8162
  "type": {
8192
8163
  "__schema": "KeywordTypeSchema",
8193
8164
  "location": {
8194
- "filePath": "capsule/capsule.ts",
8195
- "line": 128,
8196
- "character": 27
8165
+ "filePath": "capsule/container.ts",
8166
+ "line": 124,
8167
+ "character": 32
8197
8168
  },
8198
- "name": "boolean"
8169
+ "name": "any"
8199
8170
  },
8200
- "isOptional": true
8171
+ "isOptional": false,
8172
+ "isSpread": false
8201
8173
  }
8202
- ]
8174
+ ],
8175
+ "returnType": {
8176
+ "__schema": "KeywordTypeSchema",
8177
+ "location": {
8178
+ "filePath": "capsule/container.ts",
8179
+ "line": 124,
8180
+ "character": 40
8181
+ },
8182
+ "name": "void"
8183
+ },
8184
+ "modifiers": []
8203
8185
  },
8204
- "isOptional": true,
8205
- "defaultValue": "{}",
8186
+ "isOptional": false,
8206
8187
  "isSpread": false
8207
8188
  }
8208
8189
  ],
8209
8190
  "returnType": {
8210
- "__schema": "TypeRefSchema",
8191
+ "__schema": "KeywordTypeSchema",
8211
8192
  "location": {
8212
- "filePath": "capsule/capsule.ts",
8213
- "line": 129,
8214
- "character": 6
8193
+ "filePath": "capsule/container.ts",
8194
+ "line": 124,
8195
+ "character": 47
8215
8196
  },
8216
- "name": "Promise",
8217
- "typeArgs": [
8218
- {
8219
- "__schema": "TypeRefSchema",
8220
- "location": {
8221
- "filePath": "capsule/capsule.ts",
8222
- "line": 129,
8223
- "character": 14
8224
- },
8225
- "name": "Capsule"
8226
- }
8227
- ]
8197
+ "name": "void"
8228
8198
  },
8229
- "modifiers": [
8230
- "static",
8231
- "async"
8232
- ]
8199
+ "modifiers": []
8233
8200
  }
8234
8201
  ],
8235
- "extendsNodes": [
8202
+ "extendsNodes": [],
8203
+ "implementNodes": [
8236
8204
  {
8237
8205
  "__schema": "ExpressionWithTypeArgumentsSchema",
8238
8206
  "location": {
8239
- "filePath": "capsule/capsule.ts",
8240
- "line": 13,
8241
- "character": 38
8207
+ "filePath": "capsule/container.ts",
8208
+ "line": 20,
8209
+ "character": 45
8242
8210
  },
8243
- "name": "extends CapsuleTemplate<Exec, NodeFS>",
8211
+ "name": "implements Container<Exec, AnyFS>",
8244
8212
  "typeArgs": [
8245
8213
  {
8246
8214
  "__schema": "TypeRefSchema",
8247
8215
  "location": {
8248
- "filePath": "capsule/capsule.ts",
8249
- "line": 13,
8250
- "character": 54
8216
+ "filePath": "capsule/container.ts",
8217
+ "line": 20,
8218
+ "character": 55
8251
8219
  },
8252
8220
  "name": "Exec",
8253
8221
  "packageName": "@teambit/capsule"
@@ -8255,37 +8223,69 @@
8255
8223
  {
8256
8224
  "__schema": "TypeRefSchema",
8257
8225
  "location": {
8258
- "filePath": "capsule/capsule.ts",
8259
- "line": 13,
8260
- "character": 60
8226
+ "filePath": "capsule/container.ts",
8227
+ "line": 20,
8228
+ "character": 61
8261
8229
  },
8262
- "name": "NodeFS",
8230
+ "name": "AnyFS",
8263
8231
  "packageName": "@teambit/any-fs"
8264
8232
  }
8265
8233
  ],
8266
8234
  "expression": {
8267
8235
  "__schema": "TypeRefSchema",
8268
8236
  "location": {
8269
- "filePath": "capsule/capsule.ts",
8270
- "line": 13,
8271
- "character": 38
8237
+ "filePath": "capsule/container.ts",
8238
+ "line": 20,
8239
+ "character": 45
8272
8240
  },
8273
- "name": "CapsuleTemplate<T",
8241
+ "name": "Container<T",
8274
8242
  "componentId": {
8275
8243
  "_legacy": {
8276
8244
  "scope": "teambit.component",
8277
8245
  "name": "isolator",
8278
- "version": "1.0.311"
8246
+ "version": "1.0.313"
8279
8247
  },
8280
8248
  "_scope": "teambit.component"
8281
8249
  }
8282
8250
  }
8283
8251
  }
8284
- ],
8285
- "implementNodes": []
8252
+ ]
8286
8253
  }
8287
8254
  ],
8288
- "internals": []
8255
+ "internals": [
8256
+ {
8257
+ "__schema": "ModuleSchema",
8258
+ "location": {
8259
+ "filePath": "capsule/container.ts",
8260
+ "line": 10,
8261
+ "character": 1
8262
+ },
8263
+ "exports": [
8264
+ {
8265
+ "__schema": "VariableLikeSchema",
8266
+ "location": {
8267
+ "filePath": "capsule/container.ts",
8268
+ "line": 10,
8269
+ "character": 7
8270
+ },
8271
+ "signature": "const debug: any",
8272
+ "name": "debug",
8273
+ "type": {
8274
+ "__schema": "InferenceTypeSchema",
8275
+ "location": {
8276
+ "filePath": "capsule/container.ts",
8277
+ "line": 10,
8278
+ "character": 7
8279
+ },
8280
+ "type": "any"
8281
+ },
8282
+ "isOptional": false,
8283
+ "defaultValue": "require('debug')('fs-container')"
8284
+ }
8285
+ ],
8286
+ "internals": []
8287
+ }
8288
+ ]
8289
8289
  },
8290
8290
  {
8291
8291
  "__schema": "ModuleSchema",
@@ -8563,7 +8563,7 @@
8563
8563
  "_legacy": {
8564
8564
  "scope": "teambit.component",
8565
8565
  "name": "isolator",
8566
- "version": "1.0.311"
8566
+ "version": "1.0.313"
8567
8567
  },
8568
8568
  "_scope": "teambit.component"
8569
8569
  }
@@ -8592,7 +8592,7 @@
8592
8592
  "_legacy": {
8593
8593
  "scope": "teambit.component",
8594
8594
  "name": "isolator",
8595
- "version": "1.0.311"
8595
+ "version": "1.0.313"
8596
8596
  },
8597
8597
  "_scope": "teambit.component"
8598
8598
  }
@@ -12276,7 +12276,7 @@
12276
12276
  "_legacy": {
12277
12277
  "scope": "teambit.component",
12278
12278
  "name": "isolator",
12279
- "version": "1.0.311"
12279
+ "version": "1.0.313"
12280
12280
  },
12281
12281
  "_scope": "teambit.component"
12282
12282
  }
@@ -12292,7 +12292,7 @@
12292
12292
  "componentId": {
12293
12293
  "scope": "teambit.component",
12294
12294
  "name": "isolator",
12295
- "version": "1.0.311"
12295
+ "version": "1.0.313"
12296
12296
  },
12297
12297
  "taggedModuleExports": []
12298
12298
  }