@teambit/isolator 1.0.264 → 1.0.266

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