@teambit/workspace-config-files 1.0.310 → 1.0.311

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.
@@ -1,10 +1,10 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <testsuites tests="6" failures="0" errors="0" skipped="0">
3
- <testsuite name="teambit.workspace/workspace-config-files@1.0.310" tests="6" failures="0" errors="0" skipped="0">
3
+ <testsuite name="teambit.workspace/workspace-config-files@1.0.311" tests="6" failures="0" errors="0" skipped="0">
4
4
  <testcase classname="dist/dedup-paths.spec.js" name="should reduce files to minimum necessary"/>
5
5
  <testcase classname="dist/dedup-paths.spec.js" name="should place files in correct folders" time="0.001"/>
6
6
  <testcase classname="dist/dedup-paths.spec.js" name="should reduce files to minimum necessary"/>
7
- <testcase classname="dist/dedup-paths.spec.js" name="should place files in correct folders" time="0.001"/>
7
+ <testcase classname="dist/dedup-paths.spec.js" name="should place files in correct folders"/>
8
8
  <testcase classname="dist/dedup-paths.spec.js" name="should reduce files to minimum necessary"/>
9
9
  <testcase classname="dist/dedup-paths.spec.js" name="should place files in correct folders"/>
10
10
  </testsuite>
@@ -261,7 +261,8 @@
261
261
  "character": 3
262
262
  },
263
263
  "raw": "/**\n * This will check the config.enableWorkspaceConfigWrite before writing the config files.\n */",
264
- "comment": "This will check the config.enableWorkspaceConfigWrite before writing the config files."
264
+ "comment": "This will check the config.enableWorkspaceConfigWrite before writing the config files.",
265
+ "tags": []
265
266
  },
266
267
  "signature": "(method) WorkspaceConfigFilesMain.writeConfigFilesIfEnabled(options?: WriteConfigFilesOptions): Promise<WriteConfigFilesResult | undefined>",
267
268
  "name": "writeConfigFilesIfEnabled",
@@ -1515,7 +1516,8 @@
1515
1516
  "character": 3
1516
1517
  },
1517
1518
  "raw": "/**\n * Id is used for few things:\n * 1. merge/post process different configs files (from different envs) together.\n * 2. filter the config writer by the cli when using --writers flag.\n */",
1518
- "comment": "Id is used for few things:\n1. merge/post process different configs files (from different envs) together.\n2. filter the config writer by the cli when using --writers flag."
1519
+ "comment": "Id is used for few things:\n1. merge/post process different configs files (from different envs) together.\n2. filter the config writer by the cli when using --writers flag.",
1520
+ "tags": []
1519
1521
  },
1520
1522
  "signature": "(property) ConfigWriterEntry.id: string",
1521
1523
  "name": "id",
@@ -1545,7 +1547,8 @@
1545
1547
  "character": 3
1546
1548
  },
1547
1549
  "raw": "/**\n * Name of the config writer.\n * used for outputs and logging.\n */",
1548
- "comment": "Name of the config writer.\nused for outputs and logging."
1550
+ "comment": "Name of the config writer.\nused for outputs and logging.",
1551
+ "tags": []
1549
1552
  },
1550
1553
  "signature": "(property) ConfigWriterEntry.name: string",
1551
1554
  "name": "name",
@@ -1787,7 +1790,8 @@
1787
1790
  "character": 3
1788
1791
  },
1789
1792
  "raw": "/**\n * This will be used to generate an extending file content.\n * For example, the tsconfig.json file will extend the real tsconfig.{hash}.json file (that were coming from the env).\n * That way we can avoid writing the same config file multiple times.\n * It also reduces the risk of the user manually change the config file and then the changes will be lost.\n * This function support returning a file with content with a dsl using `{}` to replace the config file name.\n * for example:\n * content = `{\n * \"extends\": {configFile.name},\n * }`\n */",
1790
- "comment": "This will be used to generate an extending file content.\nFor example, the tsconfig.json file will extend the real tsconfig.{hash}.json file (that were coming from the env).\nThat way we can avoid writing the same config file multiple times.\nIt also reduces the risk of the user manually change the config file and then the changes will be lost.\nThis function support returning a file with content with a dsl using `{}` to replace the config file name.\nfor example:\ncontent = `{\n \"extends\": {configFile.name},\n}`"
1793
+ "comment": "This will be used to generate an extending file content.\nFor example, the tsconfig.json file will extend the real tsconfig.{hash}.json file (that were coming from the env).\nThat way we can avoid writing the same config file multiple times.\nIt also reduces the risk of the user manually change the config file and then the changes will be lost.\nThis function support returning a file with content with a dsl using `{}` to replace the config file name.\nfor example:\ncontent = `{\n \"extends\": {configFile.name},\n}`",
1794
+ "tags": []
1791
1795
  },
1792
1796
  "signature": "(method) ConfigWriterEntry.generateExtendingFile(args: GenerateExtendingConfigFilesArgs): ExtendingConfigFile | undefined",
1793
1797
  "name": "generateExtendingFile",
@@ -2184,7 +2188,8 @@
2184
2188
  "character": 3
2185
2189
  },
2186
2190
  "raw": "/**\n * Name of the config file.\n * supports also using `{hash}` in the name, which will be replaced by the hash of the config file.\n */",
2187
- "comment": "Name of the config file.\nsupports also using `{hash}` in the name, which will be replaced by the hash of the config file."
2191
+ "comment": "Name of the config file.\nsupports also using `{hash}` in the name, which will be replaced by the hash of the config file.",
2192
+ "tags": []
2188
2193
  },
2189
2194
  "signature": "(property) name: string",
2190
2195
  "name": "name",
@@ -2214,7 +2219,8 @@
2214
2219
  "character": 3
2215
2220
  },
2216
2221
  "raw": "/**\n * Content of the config file.\n * I.E the content of the tsconfig.json file.\n */",
2217
- "comment": "Content of the config file.\nI.E the content of the tsconfig.json file."
2222
+ "comment": "Content of the config file.\nI.E the content of the tsconfig.json file.",
2223
+ "tags": []
2218
2224
  },
2219
2225
  "signature": "(property) content: string",
2220
2226
  "name": "content",
@@ -2244,7 +2250,8 @@
2244
2250
  "character": 3
2245
2251
  },
2246
2252
  "raw": "/**\n * Hash of the config file.\n */",
2247
- "comment": "Hash of the config file."
2253
+ "comment": "Hash of the config file.",
2254
+ "tags": []
2248
2255
  },
2249
2256
  "signature": "(property) hash?: string | undefined",
2250
2257
  "name": "hash",
@@ -2363,7 +2370,8 @@
2363
2370
  "character": 3
2364
2371
  },
2365
2372
  "raw": "/**\n * Paths that the file will be written to.\n */",
2366
- "comment": "Paths that the file will be written to."
2373
+ "comment": "Paths that the file will be written to.",
2374
+ "tags": []
2367
2375
  },
2368
2376
  "signature": "(property) paths: string[]",
2369
2377
  "name": "paths",
@@ -2421,7 +2429,8 @@
2421
2429
  "character": 3
2422
2430
  },
2423
2431
  "raw": "/**\n * This is a flag for backward compatibility\n * We used to return string from the post process, so old versions of bit only knows to handle string results\n * while in new version we support getting array of objects\n * we need to know if bit the user is using support the new format or not\n */",
2424
- "comment": "This is a flag for backward compatibility\nWe used to return string from the post process, so old versions of bit only knows to handle string results\nwhile in new version we support getting array of objects\nwe need to know if bit the user is using support the new format or not"
2432
+ "comment": "This is a flag for backward compatibility\nWe used to return string from the post process, so old versions of bit only knows to handle string results\nwhile in new version we support getting array of objects\nwe need to know if bit the user is using support the new format or not",
2433
+ "tags": []
2425
2434
  },
2426
2435
  "signature": "(property) supportSpecificPathChange?: boolean | undefined",
2427
2436
  "name": "supportSpecificPathChange",
@@ -2675,7 +2684,8 @@
2675
2684
  "character": 3
2676
2685
  },
2677
2686
  "raw": "/**\n * return a ConfigWriterList instance.\n */",
2678
- "comment": "return a ConfigWriterList instance."
2687
+ "comment": "return a ConfigWriterList instance.",
2688
+ "tags": []
2679
2689
  },
2680
2690
  "signature": "(method) WorkspaceConfigEnv.workspaceConfig?(): ConfigWriterList",
2681
2691
  "name": "workspaceConfig",
@@ -2718,7 +2728,8 @@
2718
2728
  "character": 1
2719
2729
  },
2720
2730
  "raw": "/**\n * create and maintain config writer list for component dev environments.\n */",
2721
- "comment": "create and maintain config writer list for component dev environments."
2731
+ "comment": "create and maintain config writer list for component dev environments.",
2732
+ "tags": []
2722
2733
  },
2723
2734
  "signature": "class ConfigWriterList",
2724
2735
  "name": "ConfigWriterList",
@@ -2807,7 +2818,8 @@
2807
2818
  "character": 3
2808
2819
  },
2809
2820
  "raw": "/**\n * add writers to the list.\n */",
2810
- "comment": "add writers to the list."
2821
+ "comment": "add writers to the list.",
2822
+ "tags": []
2811
2823
  },
2812
2824
  "signature": "(method) ConfigWriterList.add(writers: ConfigWriterHandler[]): this",
2813
2825
  "name": "add",
@@ -2867,7 +2879,8 @@
2867
2879
  "character": 3
2868
2880
  },
2869
2881
  "raw": "/**\n * remove writers from the list.\n */",
2870
- "comment": "remove writers from the list."
2882
+ "comment": "remove writers from the list.",
2883
+ "tags": []
2871
2884
  },
2872
2885
  "signature": "(method) ConfigWriterList.remove(writerNames: string[]): this",
2873
2886
  "name": "remove",
@@ -2927,7 +2940,8 @@
2927
2940
  "character": 3
2928
2941
  },
2929
2942
  "raw": "/**\n * replace writers in the list.\n */",
2930
- "comment": "replace writers in the list."
2943
+ "comment": "replace writers in the list.",
2944
+ "tags": []
2931
2945
  },
2932
2946
  "signature": "(method) ConfigWriterList.replace(writers: ConfigWriterHandler[]): this",
2933
2947
  "name": "replace",
@@ -3060,7 +3074,8 @@
3060
3074
  "character": 3
3061
3075
  },
3062
3076
  "raw": "/**\n * compute the list.\n */",
3063
- "comment": "compute the list."
3077
+ "comment": "compute the list.",
3078
+ "tags": []
3064
3079
  },
3065
3080
  "signature": "(method) ConfigWriterList.compute(context: EnvContext): ConfigWriterEntry[]",
3066
3081
  "name": "compute",
@@ -3238,7 +3253,8 @@
3238
3253
  "character": 1
3239
3254
  },
3240
3255
  "raw": "/**\n * Configs that can be configured in the workspace.jsonc file\n */",
3241
- "comment": "Configs that can be configured in the workspace.jsonc file"
3256
+ "comment": "Configs that can be configured in the workspace.jsonc file",
3257
+ "tags": []
3242
3258
  },
3243
3259
  "signature": "type WorkspaceConfigFilesAspectConfig = {\n configsRootDir?: string | undefined;\n enableWorkspaceConfigWrite?: boolean | undefined;\n}",
3244
3260
  "name": "WorkspaceConfigFilesAspectConfig",
@@ -4548,7 +4564,8 @@
4548
4564
  "character": 3
4549
4565
  },
4550
4566
  "raw": "/**\n * This will check the config.enableWorkspaceConfigWrite before writing the config files.\n */",
4551
- "comment": "This will check the config.enableWorkspaceConfigWrite before writing the config files."
4567
+ "comment": "This will check the config.enableWorkspaceConfigWrite before writing the config files.",
4568
+ "tags": []
4552
4569
  },
4553
4570
  "signature": "(method) WorkspaceConfigFilesMain.writeConfigFilesIfEnabled(options?: WriteConfigFilesOptions): Promise<WriteConfigFilesResult | undefined>",
4554
4571
  "name": "writeConfigFilesIfEnabled",
@@ -5338,7 +5355,8 @@
5338
5355
  "character": 3
5339
5356
  },
5340
5357
  "raw": "/**\n * Name of the config file.\n * supports also using `{hash}` in the name, which will be replaced by the hash of the config file.\n */",
5341
- "comment": "Name of the config file.\nsupports also using `{hash}` in the name, which will be replaced by the hash of the config file."
5358
+ "comment": "Name of the config file.\nsupports also using `{hash}` in the name, which will be replaced by the hash of the config file.",
5359
+ "tags": []
5342
5360
  },
5343
5361
  "signature": "(property) name: string",
5344
5362
  "name": "name",
@@ -5368,7 +5386,8 @@
5368
5386
  "character": 3
5369
5387
  },
5370
5388
  "raw": "/**\n * Content of the config file.\n * I.E the content of the tsconfig.json file.\n */",
5371
- "comment": "Content of the config file.\nI.E the content of the tsconfig.json file."
5389
+ "comment": "Content of the config file.\nI.E the content of the tsconfig.json file.",
5390
+ "tags": []
5372
5391
  },
5373
5392
  "signature": "(property) content: string",
5374
5393
  "name": "content",
@@ -5398,7 +5417,8 @@
5398
5417
  "character": 3
5399
5418
  },
5400
5419
  "raw": "/**\n * Hash of the config file.\n */",
5401
- "comment": "Hash of the config file."
5420
+ "comment": "Hash of the config file.",
5421
+ "tags": []
5402
5422
  },
5403
5423
  "signature": "(property) hash?: string | undefined",
5404
5424
  "name": "hash",
@@ -5448,7 +5468,8 @@
5448
5468
  "character": 3
5449
5469
  },
5450
5470
  "raw": "/**\n * the config file that this config file extends.\n */",
5451
- "comment": "the config file that this config file extends."
5471
+ "comment": "the config file that this config file extends.",
5472
+ "tags": []
5452
5473
  },
5453
5474
  "signature": "(property) extendingTarget: WrittenConfigFile",
5454
5475
  "name": "extendingTarget",
@@ -5479,7 +5500,8 @@
5479
5500
  "character": 3
5480
5501
  },
5481
5502
  "raw": "/**\n * When replacing the config file name with the actual path of the config file, use absolute paths.\n */",
5482
- "comment": "When replacing the config file name with the actual path of the config file, use absolute paths."
5503
+ "comment": "When replacing the config file name with the actual path of the config file, use absolute paths.",
5504
+ "tags": []
5483
5505
  },
5484
5506
  "signature": "(property) useAbsPaths?: boolean | undefined",
5485
5507
  "name": "useAbsPaths",
@@ -5628,7 +5650,8 @@
5628
5650
  "character": 3
5629
5651
  },
5630
5652
  "raw": "/**\n * Paths that the file will be written to.\n */",
5631
- "comment": "Paths that the file will be written to."
5653
+ "comment": "Paths that the file will be written to.",
5654
+ "tags": []
5632
5655
  },
5633
5656
  "signature": "(property) paths: string[]",
5634
5657
  "name": "paths",
@@ -5686,7 +5709,8 @@
5686
5709
  "character": 3
5687
5710
  },
5688
5711
  "raw": "/**\n * This is a flag for backward compatibility\n * We used to return string from the post process, so old versions of bit only knows to handle string results\n * while in new version we support getting array of objects\n * we need to know if bit the user is using support the new format or not\n */",
5689
- "comment": "This is a flag for backward compatibility\nWe used to return string from the post process, so old versions of bit only knows to handle string results\nwhile in new version we support getting array of objects\nwe need to know if bit the user is using support the new format or not"
5712
+ "comment": "This is a flag for backward compatibility\nWe used to return string from the post process, so old versions of bit only knows to handle string results\nwhile in new version we support getting array of objects\nwe need to know if bit the user is using support the new format or not",
5713
+ "tags": []
5690
5714
  },
5691
5715
  "signature": "(property) supportSpecificPathChange?: boolean | undefined",
5692
5716
  "name": "supportSpecificPathChange",
@@ -5970,7 +5994,8 @@
5970
5994
  "character": 3
5971
5995
  },
5972
5996
  "raw": "/**\n * Id is used for few things:\n * 1. merge/post process different configs files (from different envs) together.\n * 2. filter the config writer by the cli when using --writers flag.\n */",
5973
- "comment": "Id is used for few things:\n1. merge/post process different configs files (from different envs) together.\n2. filter the config writer by the cli when using --writers flag."
5997
+ "comment": "Id is used for few things:\n1. merge/post process different configs files (from different envs) together.\n2. filter the config writer by the cli when using --writers flag.",
5998
+ "tags": []
5974
5999
  },
5975
6000
  "signature": "(property) ConfigWriterEntry.id: string",
5976
6001
  "name": "id",
@@ -6000,7 +6025,8 @@
6000
6025
  "character": 3
6001
6026
  },
6002
6027
  "raw": "/**\n * Name of the config writer.\n * used for outputs and logging.\n */",
6003
- "comment": "Name of the config writer.\nused for outputs and logging."
6028
+ "comment": "Name of the config writer.\nused for outputs and logging.",
6029
+ "tags": []
6004
6030
  },
6005
6031
  "signature": "(property) ConfigWriterEntry.name: string",
6006
6032
  "name": "name",
@@ -6242,7 +6268,8 @@
6242
6268
  "character": 3
6243
6269
  },
6244
6270
  "raw": "/**\n * This will be used to generate an extending file content.\n * For example, the tsconfig.json file will extend the real tsconfig.{hash}.json file (that were coming from the env).\n * That way we can avoid writing the same config file multiple times.\n * It also reduces the risk of the user manually change the config file and then the changes will be lost.\n * This function support returning a file with content with a dsl using `{}` to replace the config file name.\n * for example:\n * content = `{\n * \"extends\": {configFile.name},\n * }`\n */",
6245
- "comment": "This will be used to generate an extending file content.\nFor example, the tsconfig.json file will extend the real tsconfig.{hash}.json file (that were coming from the env).\nThat way we can avoid writing the same config file multiple times.\nIt also reduces the risk of the user manually change the config file and then the changes will be lost.\nThis function support returning a file with content with a dsl using `{}` to replace the config file name.\nfor example:\ncontent = `{\n \"extends\": {configFile.name},\n}`"
6271
+ "comment": "This will be used to generate an extending file content.\nFor example, the tsconfig.json file will extend the real tsconfig.{hash}.json file (that were coming from the env).\nThat way we can avoid writing the same config file multiple times.\nIt also reduces the risk of the user manually change the config file and then the changes will be lost.\nThis function support returning a file with content with a dsl using `{}` to replace the config file name.\nfor example:\ncontent = `{\n \"extends\": {configFile.name},\n}`",
6272
+ "tags": []
6246
6273
  },
6247
6274
  "signature": "(method) ConfigWriterEntry.generateExtendingFile(args: GenerateExtendingConfigFilesArgs): ExtendingConfigFile | undefined",
6248
6275
  "name": "generateExtendingFile",
@@ -6651,7 +6678,8 @@
6651
6678
  "character": 1
6652
6679
  },
6653
6680
  "raw": "/**\n * create and maintain config writer list for component dev environments.\n */",
6654
- "comment": "create and maintain config writer list for component dev environments."
6681
+ "comment": "create and maintain config writer list for component dev environments.",
6682
+ "tags": []
6655
6683
  },
6656
6684
  "signature": "class ConfigWriterList",
6657
6685
  "name": "ConfigWriterList",
@@ -6740,7 +6768,8 @@
6740
6768
  "character": 3
6741
6769
  },
6742
6770
  "raw": "/**\n * add writers to the list.\n */",
6743
- "comment": "add writers to the list."
6771
+ "comment": "add writers to the list.",
6772
+ "tags": []
6744
6773
  },
6745
6774
  "signature": "(method) ConfigWriterList.add(writers: ConfigWriterHandler[]): this",
6746
6775
  "name": "add",
@@ -6800,7 +6829,8 @@
6800
6829
  "character": 3
6801
6830
  },
6802
6831
  "raw": "/**\n * remove writers from the list.\n */",
6803
- "comment": "remove writers from the list."
6832
+ "comment": "remove writers from the list.",
6833
+ "tags": []
6804
6834
  },
6805
6835
  "signature": "(method) ConfigWriterList.remove(writerNames: string[]): this",
6806
6836
  "name": "remove",
@@ -6860,7 +6890,8 @@
6860
6890
  "character": 3
6861
6891
  },
6862
6892
  "raw": "/**\n * replace writers in the list.\n */",
6863
- "comment": "replace writers in the list."
6893
+ "comment": "replace writers in the list.",
6894
+ "tags": []
6864
6895
  },
6865
6896
  "signature": "(method) ConfigWriterList.replace(writers: ConfigWriterHandler[]): this",
6866
6897
  "name": "replace",
@@ -6993,7 +7024,8 @@
6993
7024
  "character": 3
6994
7025
  },
6995
7026
  "raw": "/**\n * compute the list.\n */",
6996
- "comment": "compute the list."
7027
+ "comment": "compute the list.",
7028
+ "tags": []
6997
7029
  },
6998
7030
  "signature": "(method) ConfigWriterList.compute(context: EnvContext): ConfigWriterEntry[]",
6999
7031
  "name": "compute",
@@ -7142,7 +7174,7 @@
7142
7174
  "componentId": {
7143
7175
  "scope": "teambit.workspace",
7144
7176
  "name": "workspace-config-files",
7145
- "version": "1.0.310"
7177
+ "version": "1.0.311"
7146
7178
  },
7147
7179
  "taggedModuleExports": []
7148
7180
  }
@@ -1,5 +1,5 @@
1
1
  ;
2
- import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.workspace_workspace-config-files@1.0.310/dist/workspace-config-files.docs.mdx';
2
+ import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.workspace_workspace-config-files@1.0.311/dist/workspace-config-files.docs.mdx';
3
3
 
4
4
  export const compositions = [];
5
5
  export const overview = [overview_0];
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/workspace-config-files",
3
- "version": "1.0.310",
3
+ "version": "1.0.311",
4
4
  "homepage": "https://bit.cloud/teambit/workspace/workspace-config-files",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.workspace",
8
8
  "name": "workspace-config-files",
9
- "version": "1.0.310"
9
+ "version": "1.0.311"
10
10
  },
11
11
  "dependencies": {
12
12
  "lodash": "4.17.21",
@@ -19,10 +19,10 @@
19
19
  "string-format": "0.5.0",
20
20
  "@teambit/harmony": "0.4.6",
21
21
  "@teambit/bit-error": "0.0.404",
22
- "@teambit/envs": "1.0.310",
23
- "@teambit/cli": "0.0.887",
24
- "@teambit/logger": "0.0.980",
25
- "@teambit/workspace": "1.0.310"
22
+ "@teambit/envs": "1.0.311",
23
+ "@teambit/cli": "0.0.888",
24
+ "@teambit/logger": "0.0.981",
25
+ "@teambit/workspace": "1.0.311"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@types/lodash": "4.14.165",