@uniformdev/cli 19.90.0 → 19.91.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -28,6 +28,7 @@ type SerializationConfiguration = {
28
28
  }>;
29
29
  directory: string;
30
30
  mode: SyncMode;
31
+ allowEmptySource: boolean;
31
32
  format: SyncFileFormat;
32
33
  };
33
34
  type RecursivePartial<T> = {
package/dist/index.mjs CHANGED
@@ -295,6 +295,7 @@ async function* paginateAsync(fetchPage, options) {
295
295
  var defaultSyncConfiguration = {
296
296
  entitiesConfig: {},
297
297
  directory: "uniform-data",
298
+ allowEmptySource: false,
298
299
  format: "yaml",
299
300
  mode: "mirror"
300
301
  };
@@ -1115,7 +1116,8 @@ var AssetPullModule = {
1115
1116
  mode,
1116
1117
  whatIf,
1117
1118
  project: projectId,
1118
- diff: diffMode
1119
+ diff: diffMode,
1120
+ allowEmptySource
1119
1121
  }) => {
1120
1122
  const fetch3 = nodeFetchProxy(proxy);
1121
1123
  const client = new UncachedAssetClient3({
@@ -1164,7 +1166,7 @@ var AssetPullModule = {
1164
1166
  target,
1165
1167
  mode,
1166
1168
  whatIf,
1167
- allowEmptySource: true,
1169
+ allowEmptySource: allowEmptySource ?? true,
1168
1170
  log: createSyncEngineConsoleLogger({ diffMode }),
1169
1171
  onBeforeCompareObjects: async (sourceObject, targetObject) => {
1170
1172
  var _a, _b;
@@ -1230,7 +1232,8 @@ var AssetPushModule = {
1230
1232
  mode,
1231
1233
  whatIf,
1232
1234
  project: projectId,
1233
- diff: diffMode
1235
+ diff: diffMode,
1236
+ allowEmptySource
1234
1237
  }) => {
1235
1238
  const fetch3 = nodeFetchProxy(proxy);
1236
1239
  const client = new UncachedAssetClient4({
@@ -1262,6 +1265,7 @@ var AssetPushModule = {
1262
1265
  target,
1263
1266
  mode,
1264
1267
  whatIf,
1268
+ allowEmptySource,
1265
1269
  log: createSyncEngineConsoleLogger({ diffMode }),
1266
1270
  onBeforeCompareObjects: async (sourceObject, targetObject) => {
1267
1271
  if (targetObject) {
@@ -1468,7 +1472,8 @@ var CategoryPullModule = {
1468
1472
  mode,
1469
1473
  whatIf,
1470
1474
  project: projectId,
1471
- diff: diffMode
1475
+ diff: diffMode,
1476
+ allowEmptySource
1472
1477
  }) => {
1473
1478
  const fetch3 = nodeFetchProxy(proxy);
1474
1479
  const client = new UncachedCategoryClient3({ apiKey, apiHost, fetch: fetch3, projectId });
@@ -1499,7 +1504,7 @@ var CategoryPullModule = {
1499
1504
  target,
1500
1505
  mode,
1501
1506
  whatIf,
1502
- allowEmptySource: true,
1507
+ allowEmptySource: allowEmptySource ?? true,
1503
1508
  log: createSyncEngineConsoleLogger({ diffMode })
1504
1509
  });
1505
1510
  }
@@ -1541,7 +1546,8 @@ var CategoryPushModule = {
1541
1546
  mode,
1542
1547
  whatIf,
1543
1548
  project: projectId,
1544
- diff: diffMode
1549
+ diff: diffMode,
1550
+ allowEmptySource
1545
1551
  }) => {
1546
1552
  const fetch3 = nodeFetchProxy(proxy);
1547
1553
  const client = new UncachedCategoryClient4({ apiKey, apiHost, fetch: fetch3, projectId });
@@ -1567,6 +1573,7 @@ var CategoryPushModule = {
1567
1573
  target,
1568
1574
  mode,
1569
1575
  whatIf,
1576
+ allowEmptySource,
1570
1577
  log: createSyncEngineConsoleLogger({ diffMode })
1571
1578
  });
1572
1579
  }
@@ -1774,7 +1781,8 @@ var ComponentPullModule = {
1774
1781
  mode,
1775
1782
  whatIf,
1776
1783
  project: projectId,
1777
- diff: diffMode
1784
+ diff: diffMode,
1785
+ allowEmptySource
1778
1786
  }) => {
1779
1787
  const fetch3 = nodeFetchProxy(proxy);
1780
1788
  const client = new UncachedCanvasClient3({ apiKey, apiHost, fetch: fetch3, projectId });
@@ -1806,7 +1814,7 @@ var ComponentPullModule = {
1806
1814
  target,
1807
1815
  mode,
1808
1816
  whatIf,
1809
- allowEmptySource: true,
1817
+ allowEmptySource: allowEmptySource ?? true,
1810
1818
  log: createSyncEngineConsoleLogger({ diffMode })
1811
1819
  });
1812
1820
  }
@@ -1848,7 +1856,8 @@ var ComponentPushModule = {
1848
1856
  mode,
1849
1857
  whatIf,
1850
1858
  project: projectId,
1851
- diff: diffMode
1859
+ diff: diffMode,
1860
+ allowEmptySource
1852
1861
  }) => {
1853
1862
  const fetch3 = nodeFetchProxy(proxy);
1854
1863
  const client = new UncachedCanvasClient4({ apiKey, apiHost, fetch: fetch3, projectId });
@@ -1875,6 +1884,7 @@ var ComponentPushModule = {
1875
1884
  target,
1876
1885
  mode,
1877
1886
  whatIf,
1887
+ allowEmptySource,
1878
1888
  log: createSyncEngineConsoleLogger({ diffMode })
1879
1889
  });
1880
1890
  }
@@ -2274,7 +2284,8 @@ var CompositionPullModule = {
2274
2284
  whatIf,
2275
2285
  state,
2276
2286
  project: projectId,
2277
- diff: diffMode
2287
+ diff: diffMode,
2288
+ allowEmptySource
2278
2289
  }) => {
2279
2290
  const fetch3 = nodeFetchProxy(proxy);
2280
2291
  const client = new UncachedCanvasClient10({ apiKey, apiHost, fetch: fetch3, projectId });
@@ -2306,7 +2317,7 @@ var CompositionPullModule = {
2306
2317
  target,
2307
2318
  mode,
2308
2319
  whatIf,
2309
- allowEmptySource: true,
2320
+ allowEmptySource: allowEmptySource ?? true,
2310
2321
  log: createSyncEngineConsoleLogger({ diffMode }),
2311
2322
  onBeforeCompareObjects: async (sourceObject, targetObject) => {
2312
2323
  return replaceRemoteUrlsWithLocalReferences(sourceObject, targetObject, {
@@ -2375,7 +2386,8 @@ var CompositionPushModule = {
2375
2386
  project: projectId,
2376
2387
  onlyCompositions,
2377
2388
  onlyPatterns,
2378
- diff: diffMode
2389
+ diff: diffMode,
2390
+ allowEmptySource
2379
2391
  }) => {
2380
2392
  const fetch3 = nodeFetchProxy(proxy);
2381
2393
  const client = new UncachedCanvasClient11({ apiKey, apiHost, fetch: fetch3, projectId });
@@ -2402,6 +2414,7 @@ var CompositionPushModule = {
2402
2414
  target,
2403
2415
  mode,
2404
2416
  whatIf,
2417
+ allowEmptySource,
2405
2418
  log: createSyncEngineConsoleLogger({ diffMode }),
2406
2419
  onBeforeCompareObjects: async (sourceObject) => {
2407
2420
  return swapOutUniformFileUrlsForTargetProject(sourceObject, {
@@ -2689,7 +2702,8 @@ var ContentTypePullModule = {
2689
2702
  mode,
2690
2703
  whatIf,
2691
2704
  project: projectId,
2692
- diff: diffMode
2705
+ diff: diffMode,
2706
+ allowEmptySource
2693
2707
  }) => {
2694
2708
  const fetch3 = nodeFetchProxy(proxy);
2695
2709
  const client = new ContentClient3({
@@ -2726,7 +2740,7 @@ var ContentTypePullModule = {
2726
2740
  target,
2727
2741
  mode,
2728
2742
  whatIf,
2729
- allowEmptySource: true,
2743
+ allowEmptySource: allowEmptySource ?? true,
2730
2744
  log: createSyncEngineConsoleLogger({ diffMode })
2731
2745
  });
2732
2746
  }
@@ -2768,7 +2782,8 @@ var ContentTypePushModule = {
2768
2782
  mode,
2769
2783
  whatIf,
2770
2784
  project: projectId,
2771
- diff: diffMode
2785
+ diff: diffMode,
2786
+ allowEmptySource
2772
2787
  }) => {
2773
2788
  const fetch3 = nodeFetchProxy(proxy);
2774
2789
  const client = new ContentClient4({
@@ -2800,6 +2815,7 @@ var ContentTypePushModule = {
2800
2815
  target,
2801
2816
  mode,
2802
2817
  whatIf,
2818
+ allowEmptySource,
2803
2819
  log: createSyncEngineConsoleLogger({ diffMode })
2804
2820
  });
2805
2821
  }
@@ -2981,7 +2997,8 @@ var DataTypePullModule = {
2981
2997
  mode,
2982
2998
  whatIf,
2983
2999
  project: projectId,
2984
- diff: diffMode
3000
+ diff: diffMode,
3001
+ allowEmptySource
2985
3002
  }) => {
2986
3003
  const fetch3 = nodeFetchProxy(proxy);
2987
3004
  const client = new DataTypeClient3({
@@ -3018,7 +3035,7 @@ var DataTypePullModule = {
3018
3035
  target,
3019
3036
  mode,
3020
3037
  whatIf,
3021
- allowEmptySource: true,
3038
+ allowEmptySource: allowEmptySource ?? true,
3022
3039
  log: createSyncEngineConsoleLogger({ diffMode })
3023
3040
  });
3024
3041
  }
@@ -3060,7 +3077,8 @@ var DataTypePushModule = {
3060
3077
  mode,
3061
3078
  whatIf,
3062
3079
  project: projectId,
3063
- diff: diffMode
3080
+ diff: diffMode,
3081
+ allowEmptySource
3064
3082
  }) => {
3065
3083
  const fetch3 = nodeFetchProxy(proxy);
3066
3084
  const client = new DataTypeClient4({
@@ -3092,6 +3110,7 @@ var DataTypePushModule = {
3092
3110
  target,
3093
3111
  mode,
3094
3112
  whatIf,
3113
+ allowEmptySource,
3095
3114
  log: createSyncEngineConsoleLogger({ diffMode })
3096
3115
  });
3097
3116
  }
@@ -3298,7 +3317,8 @@ var EntryPullModule = {
3298
3317
  whatIf,
3299
3318
  state,
3300
3319
  project: projectId,
3301
- diff: diffMode
3320
+ diff: diffMode,
3321
+ allowEmptySource
3302
3322
  }) => {
3303
3323
  const fetch3 = nodeFetchProxy(proxy);
3304
3324
  const client = new ContentClient10({
@@ -3336,7 +3356,7 @@ var EntryPullModule = {
3336
3356
  target,
3337
3357
  mode,
3338
3358
  whatIf,
3339
- allowEmptySource: true,
3359
+ allowEmptySource: allowEmptySource ?? true,
3340
3360
  log: createSyncEngineConsoleLogger({ diffMode }),
3341
3361
  onBeforeCompareObjects: async (sourceObject, targetObject) => {
3342
3362
  return replaceRemoteUrlsWithLocalReferences(sourceObject, targetObject, {
@@ -3394,7 +3414,8 @@ var EntryPushModule = {
3394
3414
  whatIf,
3395
3415
  state,
3396
3416
  project: projectId,
3397
- diff: diffMode
3417
+ diff: diffMode,
3418
+ allowEmptySource
3398
3419
  }) => {
3399
3420
  const fetch3 = nodeFetchProxy(proxy);
3400
3421
  const client = new ContentClient11({
@@ -3427,6 +3448,7 @@ var EntryPushModule = {
3427
3448
  target,
3428
3449
  mode,
3429
3450
  whatIf,
3451
+ allowEmptySource,
3430
3452
  log: createSyncEngineConsoleLogger({ diffMode }),
3431
3453
  onBeforeCompareObjects: async (sourceObject) => {
3432
3454
  return swapOutUniformFileUrlsForTargetProject(sourceObject, {
@@ -3571,7 +3593,8 @@ var LocalePullModule = {
3571
3593
  mode,
3572
3594
  whatIf,
3573
3595
  project: projectId,
3574
- diff: diffMode
3596
+ diff: diffMode,
3597
+ allowEmptySource
3575
3598
  }) => {
3576
3599
  const fetch3 = nodeFetchProxy(proxy);
3577
3600
  const client = new LocaleClient({
@@ -3608,7 +3631,7 @@ var LocalePullModule = {
3608
3631
  target,
3609
3632
  mode,
3610
3633
  whatIf,
3611
- allowEmptySource: true,
3634
+ allowEmptySource: allowEmptySource ?? true,
3612
3635
  log: createSyncEngineConsoleLogger({ diffMode })
3613
3636
  });
3614
3637
  }
@@ -3650,7 +3673,8 @@ var LocalePushModule = {
3650
3673
  mode,
3651
3674
  whatIf,
3652
3675
  project: projectId,
3653
- diff: diffMode
3676
+ diff: diffMode,
3677
+ allowEmptySource
3654
3678
  }) => {
3655
3679
  const fetch3 = nodeFetchProxy(proxy);
3656
3680
  const client = new LocaleClient2({
@@ -3682,6 +3706,7 @@ var LocalePushModule = {
3682
3706
  target,
3683
3707
  mode,
3684
3708
  whatIf,
3709
+ allowEmptySource,
3685
3710
  log: createSyncEngineConsoleLogger({ diffMode })
3686
3711
  });
3687
3712
  }
@@ -4050,7 +4075,8 @@ var PromptPullModule = {
4050
4075
  mode,
4051
4076
  whatIf,
4052
4077
  project: projectId,
4053
- diff: diffMode
4078
+ diff: diffMode,
4079
+ allowEmptySource
4054
4080
  }) => {
4055
4081
  const fetch3 = nodeFetchProxy(proxy);
4056
4082
  const client = new PromptClient3({
@@ -4087,7 +4113,7 @@ var PromptPullModule = {
4087
4113
  target,
4088
4114
  mode,
4089
4115
  whatIf,
4090
- allowEmptySource: true,
4116
+ allowEmptySource: allowEmptySource ?? true,
4091
4117
  log: createSyncEngineConsoleLogger({ diffMode })
4092
4118
  });
4093
4119
  }
@@ -4131,7 +4157,8 @@ var PromptPushModule = {
4131
4157
  mode,
4132
4158
  whatIf,
4133
4159
  project: projectId,
4134
- diff: diffMode
4160
+ diff: diffMode,
4161
+ allowEmptySource
4135
4162
  }) => {
4136
4163
  const fetch3 = nodeFetchProxy(proxy);
4137
4164
  const client = new PromptClient4({
@@ -4163,6 +4190,7 @@ var PromptPushModule = {
4163
4190
  target,
4164
4191
  mode,
4165
4192
  whatIf,
4193
+ allowEmptySource,
4166
4194
  log: createSyncEngineConsoleLogger({ diffMode })
4167
4195
  });
4168
4196
  }
@@ -4372,7 +4400,8 @@ var AggregatePullModule = {
4372
4400
  mode,
4373
4401
  whatIf,
4374
4402
  project: projectId,
4375
- diff: diffMode
4403
+ diff: diffMode,
4404
+ allowEmptySource
4376
4405
  }) => {
4377
4406
  const fetch3 = nodeFetchProxy(proxy);
4378
4407
  const client = new UncachedAggregateClient3({ apiKey, apiHost, fetch: fetch3, projectId });
@@ -4403,6 +4432,7 @@ var AggregatePullModule = {
4403
4432
  target,
4404
4433
  mode,
4405
4434
  whatIf,
4435
+ allowEmptySource,
4406
4436
  log: createSyncEngineConsoleLogger({ diffMode })
4407
4437
  });
4408
4438
  }
@@ -4444,7 +4474,8 @@ var AggregatePushModule = {
4444
4474
  mode,
4445
4475
  whatIf,
4446
4476
  project: projectId,
4447
- diff: diffMode
4477
+ diff: diffMode,
4478
+ allowEmptySource
4448
4479
  }) => {
4449
4480
  const fetch3 = nodeFetchProxy(proxy);
4450
4481
  const client = new UncachedAggregateClient4({ apiKey, apiHost, fetch: fetch3, projectId });
@@ -4470,6 +4501,7 @@ var AggregatePushModule = {
4470
4501
  target,
4471
4502
  mode,
4472
4503
  whatIf,
4504
+ allowEmptySource,
4473
4505
  log: createSyncEngineConsoleLogger({ diffMode })
4474
4506
  });
4475
4507
  await target.complete();
@@ -4704,7 +4736,8 @@ var EnrichmentPullModule = {
4704
4736
  mode,
4705
4737
  whatIf,
4706
4738
  project: projectId,
4707
- diff: diffMode
4739
+ diff: diffMode,
4740
+ allowEmptySource
4708
4741
  }) => {
4709
4742
  const fetch3 = nodeFetchProxy(proxy);
4710
4743
  const client = new UncachedEnrichmentClient3({ apiKey, apiHost, fetch: fetch3, projectId });
@@ -4735,6 +4768,7 @@ var EnrichmentPullModule = {
4735
4768
  target,
4736
4769
  mode,
4737
4770
  whatIf,
4771
+ allowEmptySource,
4738
4772
  log: createSyncEngineConsoleLogger({ diffMode })
4739
4773
  });
4740
4774
  }
@@ -4776,7 +4810,8 @@ var EnrichmentPushModule = {
4776
4810
  mode,
4777
4811
  whatIf,
4778
4812
  project: projectId,
4779
- diff: diffMode
4813
+ diff: diffMode,
4814
+ allowEmptySource
4780
4815
  }) => {
4781
4816
  const fetch3 = nodeFetchProxy(proxy);
4782
4817
  const client = new UncachedEnrichmentClient4({ apiKey, apiHost, fetch: fetch3, projectId });
@@ -4802,6 +4837,7 @@ var EnrichmentPushModule = {
4802
4837
  target,
4803
4838
  mode,
4804
4839
  whatIf,
4840
+ allowEmptySource,
4805
4841
  log: createSyncEngineConsoleLogger({ diffMode })
4806
4842
  });
4807
4843
  }
@@ -5089,7 +5125,8 @@ var QuirkPullModule = {
5089
5125
  mode,
5090
5126
  whatIf,
5091
5127
  project: projectId,
5092
- diff: diffMode
5128
+ diff: diffMode,
5129
+ allowEmptySource
5093
5130
  }) => {
5094
5131
  const fetch3 = nodeFetchProxy(proxy);
5095
5132
  const client = new UncachedQuirkClient3({ apiKey, apiHost, fetch: fetch3, projectId });
@@ -5120,6 +5157,7 @@ var QuirkPullModule = {
5120
5157
  target,
5121
5158
  mode,
5122
5159
  whatIf,
5160
+ allowEmptySource,
5123
5161
  log: createSyncEngineConsoleLogger({ diffMode })
5124
5162
  });
5125
5163
  }
@@ -5161,7 +5199,8 @@ var QuirkPushModule = {
5161
5199
  mode,
5162
5200
  whatIf,
5163
5201
  project: projectId,
5164
- diff: diffMode
5202
+ diff: diffMode,
5203
+ allowEmptySource
5165
5204
  }) => {
5166
5205
  const fetch3 = nodeFetchProxy(proxy);
5167
5206
  const client = new UncachedQuirkClient4({ apiKey, apiHost, fetch: fetch3, projectId });
@@ -5187,6 +5226,7 @@ var QuirkPushModule = {
5187
5226
  target,
5188
5227
  mode,
5189
5228
  whatIf,
5229
+ allowEmptySource,
5190
5230
  log: createSyncEngineConsoleLogger({ diffMode })
5191
5231
  });
5192
5232
  }
@@ -5367,7 +5407,8 @@ var SignalPullModule = {
5367
5407
  mode,
5368
5408
  whatIf,
5369
5409
  project: projectId,
5370
- diff: diffMode
5410
+ diff: diffMode,
5411
+ allowEmptySource
5371
5412
  }) => {
5372
5413
  const fetch3 = nodeFetchProxy(proxy);
5373
5414
  const client = new UncachedSignalClient3({ apiKey, apiHost, fetch: fetch3, projectId });
@@ -5398,6 +5439,7 @@ var SignalPullModule = {
5398
5439
  target,
5399
5440
  mode,
5400
5441
  whatIf,
5442
+ allowEmptySource,
5401
5443
  log: createSyncEngineConsoleLogger({ diffMode })
5402
5444
  });
5403
5445
  }
@@ -5439,7 +5481,8 @@ var SignalPushModule = {
5439
5481
  mode,
5440
5482
  whatIf,
5441
5483
  project: projectId,
5442
- diff: diffMode
5484
+ diff: diffMode,
5485
+ allowEmptySource
5443
5486
  }) => {
5444
5487
  const fetch3 = nodeFetchProxy(proxy);
5445
5488
  const client = new UncachedSignalClient4({ apiKey, apiHost, fetch: fetch3, projectId });
@@ -5465,6 +5508,7 @@ var SignalPushModule = {
5465
5508
  target,
5466
5509
  mode,
5467
5510
  whatIf,
5511
+ allowEmptySource,
5468
5512
  log: createSyncEngineConsoleLogger({ diffMode })
5469
5513
  });
5470
5514
  }
@@ -5645,7 +5689,8 @@ var TestPullModule = {
5645
5689
  mode,
5646
5690
  whatIf,
5647
5691
  project: projectId,
5648
- diff: diffMode
5692
+ diff: diffMode,
5693
+ allowEmptySource
5649
5694
  }) => {
5650
5695
  const fetch3 = nodeFetchProxy(proxy);
5651
5696
  const client = new UncachedTestClient3({ apiKey, apiHost, fetch: fetch3, projectId });
@@ -5676,6 +5721,7 @@ var TestPullModule = {
5676
5721
  target,
5677
5722
  mode,
5678
5723
  whatIf,
5724
+ allowEmptySource,
5679
5725
  log: createSyncEngineConsoleLogger({ diffMode })
5680
5726
  });
5681
5727
  }
@@ -5717,7 +5763,8 @@ var TestPushModule = {
5717
5763
  mode,
5718
5764
  whatIf,
5719
5765
  project: projectId,
5720
- diff: diffMode
5766
+ diff: diffMode,
5767
+ allowEmptySource
5721
5768
  }) => {
5722
5769
  const fetch3 = nodeFetchProxy(proxy);
5723
5770
  const client = new UncachedTestClient4({ apiKey, apiHost, fetch: fetch3, projectId });
@@ -5743,6 +5790,7 @@ var TestPushModule = {
5743
5790
  target,
5744
5791
  mode,
5745
5792
  whatIf,
5793
+ allowEmptySource,
5746
5794
  log: createSyncEngineConsoleLogger({ diffMode })
5747
5795
  });
5748
5796
  }
@@ -5832,7 +5880,7 @@ import { PostHog } from "posthog-node";
5832
5880
  // package.json
5833
5881
  var package_default = {
5834
5882
  name: "@uniformdev/cli",
5835
- version: "19.90.0",
5883
+ version: "19.91.0",
5836
5884
  description: "Uniform command line interface tool",
5837
5885
  license: "SEE LICENSE IN LICENSE.txt",
5838
5886
  main: "./cli.js",
@@ -7116,7 +7164,8 @@ var ProjectMapDefinitionPullModule = {
7116
7164
  mode,
7117
7165
  whatIf,
7118
7166
  project: projectId,
7119
- diff: diffMode
7167
+ diff: diffMode,
7168
+ allowEmptySource
7120
7169
  }) => {
7121
7170
  const fetch3 = nodeFetchProxy(proxy);
7122
7171
  const client = new UncachedProjectMapClient3({ apiKey, apiHost, fetch: fetch3, projectId });
@@ -7147,7 +7196,7 @@ var ProjectMapDefinitionPullModule = {
7147
7196
  target,
7148
7197
  mode,
7149
7198
  whatIf,
7150
- allowEmptySource: true,
7199
+ allowEmptySource: allowEmptySource ?? true,
7151
7200
  log: createSyncEngineConsoleLogger({ diffMode })
7152
7201
  });
7153
7202
  }
@@ -7189,7 +7238,8 @@ var ProjectMapDefinitionPushModule = {
7189
7238
  mode,
7190
7239
  whatIf,
7191
7240
  project: projectId,
7192
- diff: diffMode
7241
+ diff: diffMode,
7242
+ allowEmptySource
7193
7243
  }) => {
7194
7244
  const fetch3 = nodeFetchProxy(proxy);
7195
7245
  const client = new UncachedProjectMapClient4({ apiKey, apiHost, fetch: fetch3, projectId });
@@ -7215,6 +7265,7 @@ var ProjectMapDefinitionPushModule = {
7215
7265
  target,
7216
7266
  mode,
7217
7267
  whatIf,
7268
+ allowEmptySource,
7218
7269
  log: createSyncEngineConsoleLogger({ diffMode })
7219
7270
  });
7220
7271
  }
@@ -7420,7 +7471,8 @@ var ProjectMapNodePullModule = {
7420
7471
  mode,
7421
7472
  whatIf,
7422
7473
  project: projectId,
7423
- diff: diffMode
7474
+ diff: diffMode,
7475
+ allowEmptySource
7424
7476
  }) => {
7425
7477
  const fetch3 = nodeFetchProxy(proxy);
7426
7478
  const client = new UncachedProjectMapClient9({ apiKey, apiHost, fetch: fetch3, projectId });
@@ -7455,7 +7507,7 @@ var ProjectMapNodePullModule = {
7455
7507
  target,
7456
7508
  mode,
7457
7509
  whatIf,
7458
- allowEmptySource: true,
7510
+ allowEmptySource: allowEmptySource ?? true,
7459
7511
  log: createSyncEngineConsoleLogger({ diffMode })
7460
7512
  });
7461
7513
  }
@@ -7497,7 +7549,8 @@ var ProjectMapNodePushModule = {
7497
7549
  mode,
7498
7550
  whatIf,
7499
7551
  project: projectId,
7500
- diff: diffMode
7552
+ diff: diffMode,
7553
+ allowEmptySource
7501
7554
  }) => {
7502
7555
  const fetch3 = nodeFetchProxy(proxy);
7503
7556
  const client = new UncachedProjectMapClient10({
@@ -7532,6 +7585,7 @@ var ProjectMapNodePushModule = {
7532
7585
  target,
7533
7586
  mode,
7534
7587
  whatIf,
7588
+ allowEmptySource,
7535
7589
  log: createSyncEngineConsoleLogger({ diffMode })
7536
7590
  });
7537
7591
  }
@@ -7742,7 +7796,8 @@ var RedirectDefinitionPullModule = {
7742
7796
  mode,
7743
7797
  whatIf,
7744
7798
  project: projectId,
7745
- diff: diffMode
7799
+ diff: diffMode,
7800
+ allowEmptySource
7746
7801
  }) => {
7747
7802
  const fetch3 = nodeFetchProxy(proxy);
7748
7803
  const client = new UncachedRedirectClient3({ apiKey, apiHost, fetch: fetch3, projectId });
@@ -7774,7 +7829,7 @@ var RedirectDefinitionPullModule = {
7774
7829
  target,
7775
7830
  mode,
7776
7831
  whatIf,
7777
- allowEmptySource: true,
7832
+ allowEmptySource: allowEmptySource ?? true,
7778
7833
  log: createSyncEngineConsoleLogger({ diffMode })
7779
7834
  });
7780
7835
  }
@@ -7816,7 +7871,8 @@ var RedirectDefinitionPushModule = {
7816
7871
  mode,
7817
7872
  whatIf,
7818
7873
  project: projectId,
7819
- diff: diffMode
7874
+ diff: diffMode,
7875
+ allowEmptySource
7820
7876
  }) => {
7821
7877
  const fetch3 = nodeFetchProxy(proxy);
7822
7878
  const client = new UncachedRedirectClient4({ apiKey, apiHost, fetch: fetch3, projectId });
@@ -7842,6 +7898,7 @@ var RedirectDefinitionPushModule = {
7842
7898
  target,
7843
7899
  mode,
7844
7900
  whatIf,
7901
+ allowEmptySource,
7845
7902
  log: createSyncEngineConsoleLogger({ diffMode })
7846
7903
  });
7847
7904
  }
@@ -8000,7 +8057,8 @@ var SyncPullModule = {
8000
8057
  onlyCompositions: entityType === "composition" ? true : void 0,
8001
8058
  onlyPatterns: entityType === "pattern" ? true : void 0,
8002
8059
  mode: getPullMode(entityType, config2),
8003
- directory: getPullFilename(entityType, config2)
8060
+ directory: getPullFilename(entityType, config2),
8061
+ allowEmptySource: config2.allowEmptySource
8004
8062
  });
8005
8063
  spinner.succeed();
8006
8064
  } catch (e) {
@@ -8093,7 +8151,8 @@ var SyncPushModule = {
8093
8151
  onlyCompositions: entityType === "composition" ? true : void 0,
8094
8152
  onlyPatterns: entityType === "pattern" ? true : void 0,
8095
8153
  mode: getPushMode(entityType, config2),
8096
- directory: getPushFilename(entityType, config2)
8154
+ directory: getPushFilename(entityType, config2),
8155
+ allowEmptySource: config2.allowEmptySource
8097
8156
  });
8098
8157
  spinner.succeed();
8099
8158
  } catch (e) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/cli",
3
- "version": "19.90.0",
3
+ "version": "19.91.0",
4
4
  "description": "Uniform command line interface tool",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "./cli.js",
@@ -17,12 +17,12 @@
17
17
  },
18
18
  "dependencies": {
19
19
  "@thi.ng/mime": "^2.2.23",
20
- "@uniformdev/assets": "19.90.0",
21
- "@uniformdev/canvas": "19.90.0",
22
- "@uniformdev/context": "19.90.0",
23
- "@uniformdev/files": "19.90.0",
24
- "@uniformdev/project-map": "19.90.0",
25
- "@uniformdev/redirect": "19.90.0",
20
+ "@uniformdev/assets": "19.91.0",
21
+ "@uniformdev/canvas": "19.91.0",
22
+ "@uniformdev/context": "19.91.0",
23
+ "@uniformdev/files": "19.91.0",
24
+ "@uniformdev/project-map": "19.91.0",
25
+ "@uniformdev/redirect": "19.91.0",
26
26
  "call-bind": "^1.0.2",
27
27
  "colorette": "2.0.20",
28
28
  "cosmiconfig": "8.3.6",
@@ -69,5 +69,5 @@
69
69
  "publishConfig": {
70
70
  "access": "public"
71
71
  },
72
- "gitHead": "5fcbc2f570abedb01f09730eb986f024429e2422"
72
+ "gitHead": "c1d1a232c177a29f73ec0334d5b70e11fc6f4d77"
73
73
  }