@uniformdev/cli 20.66.1-alpha.4 → 20.66.2-alpha.13

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.
@@ -22,7 +22,7 @@ import { fetch as undiciFetch, ProxyAgent } from "undici";
22
22
  // package.json
23
23
  var package_default = {
24
24
  name: "@uniformdev/cli",
25
- version: "20.66.0",
25
+ version: "20.66.1",
26
26
  description: "Uniform command line interface tool",
27
27
  license: "SEE LICENSE IN LICENSE.txt",
28
28
  main: "./cli.js",
@@ -429,7 +429,7 @@ function isPaginatedSyncEntity(entityType) {
429
429
  return paginatedEntityTypes.has(entityType);
430
430
  }
431
431
  function getEntityBatchSize(entityType, config) {
432
- const fromConfig = config.entitiesConfig[entityType]?.batchSize;
432
+ const fromConfig = config.entitiesConfig?.[entityType]?.batchSize;
433
433
  if (fromConfig !== void 0) {
434
434
  return fromConfig;
435
435
  }
@@ -454,10 +454,12 @@ function withBatchSizeOptions(yargs, entityType) {
454
454
  describe: "Number of items to fetch per API request when reading from Uniform",
455
455
  type: "number"
456
456
  }).middleware((argv) => {
457
+ const rawSerialization = argv.serialization;
458
+ const config = rawSerialization ? applyDefaultSyncConfiguration({ serialization: rawSerialization }).serialization : void 0;
457
459
  argv.resolvedBatchSize = resolveEntityBatchSize({
458
460
  entityType,
459
461
  cliBatchSize: argv.batchSize,
460
- config: argv.serialization
462
+ config
461
463
  });
462
464
  });
463
465
  }
@@ -1,4 +1,4 @@
1
- import { C as CLIConfiguration, E as EntityTypes } from './index-xrMm6Bjs.mjs';
1
+ import { C as CLIConfiguration, E as EntityTypes } from './index-DeoTNXj-.mjs';
2
2
 
3
3
  type UniformConfigAllOptions = {
4
4
  /**
@@ -1,4 +1,4 @@
1
- import "./chunk-EM2DLYBP.mjs";
1
+ import "./chunk-ASGYUI3V.mjs";
2
2
 
3
3
  // src/sync/allSerializableEntitiesConfig.ts
4
4
  var allSerializableEntitiesConfig = {
@@ -11,15 +11,16 @@ type EntityConfiguration = {
11
11
  directory?: string;
12
12
  format?: SyncFileFormat;
13
13
  disabled?: true;
14
- batchSize?: number;
15
14
  };
16
15
  type EntityWithStateConfiguration = EntityConfiguration & Partial<StateArgs>;
17
16
  type PublishableEntitiesConfiguration = EntityWithStateConfiguration & {
18
17
  publish?: boolean;
18
+ batchSize?: number;
19
19
  };
20
20
  type SerializationEntitiesConfiguration = Record<EntityTypes, {
21
21
  pull?: EntityConfiguration;
22
22
  push?: EntityConfiguration;
23
+ batchSize?: number;
23
24
  } & EntityConfiguration> & {
24
25
  composition?: PublishableEntitiesConfiguration;
25
26
  componentPattern?: PublishableEntitiesConfiguration;
package/dist/index.d.mts CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- export { C as CLIConfiguration } from './index-xrMm6Bjs.mjs';
2
+ export { C as CLIConfiguration } from './index-DeoTNXj-.mjs';
package/dist/index.mjs CHANGED
@@ -21,7 +21,7 @@ import {
21
21
  withFormatOptions,
22
22
  withProjectOptions,
23
23
  withTeamOptions
24
- } from "./chunk-EM2DLYBP.mjs";
24
+ } from "./chunk-ASGYUI3V.mjs";
25
25
 
26
26
  // src/index.ts
27
27
  import * as dotenv from "dotenv";
@@ -13406,7 +13406,8 @@ var SyncPushModule = {
13406
13406
  patternType: "component",
13407
13407
  onlyPatterns: true,
13408
13408
  all: true,
13409
- directory: getPushFilename("componentPattern", config2)
13409
+ directory: getPushFilename("componentPattern", config2),
13410
+ resolvedBatchSize: getEntityBatchSize("componentPattern", config2)
13410
13411
  }),
13411
13412
  {
13412
13413
  text: "publishing component patterns...",
@@ -13431,7 +13432,8 @@ var SyncPushModule = {
13431
13432
  all: true,
13432
13433
  onlyPatterns: true,
13433
13434
  patternType: "composition",
13434
- directory: getPushFilename("compositionPattern", config2)
13435
+ directory: getPushFilename("compositionPattern", config2),
13436
+ resolvedBatchSize: getEntityBatchSize("compositionPattern", config2)
13435
13437
  }),
13436
13438
  {
13437
13439
  text: "publishing composition patterns...",
@@ -13455,7 +13457,8 @@ var SyncPushModule = {
13455
13457
  serialization: config2,
13456
13458
  all: true,
13457
13459
  onlyCompositions: true,
13458
- directory: getPushFilename("composition", config2)
13460
+ directory: getPushFilename("composition", config2),
13461
+ resolvedBatchSize: getEntityBatchSize("composition", config2)
13459
13462
  }),
13460
13463
  {
13461
13464
  text: "publishing compositions...",
@@ -13478,7 +13481,8 @@ var SyncPushModule = {
13478
13481
  ...otherParams,
13479
13482
  serialization: config2,
13480
13483
  all: true,
13481
- directory: getPushFilename("entry", config2)
13484
+ directory: getPushFilename("entry", config2),
13485
+ resolvedBatchSize: getEntityBatchSize("entry", config2)
13482
13486
  }),
13483
13487
  {
13484
13488
  text: "publishing entries...",
@@ -13501,7 +13505,8 @@ var SyncPushModule = {
13501
13505
  ...otherParams,
13502
13506
  serialization: config2,
13503
13507
  all: true,
13504
- directory: getPushFilename("entryPattern", config2)
13508
+ directory: getPushFilename("entryPattern", config2),
13509
+ resolvedBatchSize: getEntityBatchSize("entryPattern", config2)
13505
13510
  }),
13506
13511
  {
13507
13512
  text: "publishing entry patterns...",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/cli",
3
- "version": "20.66.1-alpha.4+59acb12562",
3
+ "version": "20.66.2-alpha.13+212f8547ab",
4
4
  "description": "Uniform command line interface tool",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "./cli.js",
@@ -27,13 +27,13 @@
27
27
  "dependencies": {
28
28
  "@inquirer/prompts": "^7.10.1",
29
29
  "@thi.ng/mime": "^2.2.23",
30
- "@uniformdev/assets": "20.66.1-alpha.4+59acb12562",
31
- "@uniformdev/canvas": "20.66.1-alpha.4+59acb12562",
32
- "@uniformdev/context": "20.66.1-alpha.4+59acb12562",
33
- "@uniformdev/files": "20.66.1-alpha.4+59acb12562",
34
- "@uniformdev/project-map": "20.66.1-alpha.4+59acb12562",
35
- "@uniformdev/redirect": "20.66.1-alpha.4+59acb12562",
36
- "@uniformdev/richtext": "20.66.1-alpha.4+59acb12562",
30
+ "@uniformdev/assets": "20.66.2-alpha.13+212f8547ab",
31
+ "@uniformdev/canvas": "20.66.2-alpha.13+212f8547ab",
32
+ "@uniformdev/context": "20.66.2-alpha.13+212f8547ab",
33
+ "@uniformdev/files": "20.66.2-alpha.13+212f8547ab",
34
+ "@uniformdev/project-map": "20.66.2-alpha.13+212f8547ab",
35
+ "@uniformdev/redirect": "20.66.2-alpha.13+212f8547ab",
36
+ "@uniformdev/richtext": "20.66.2-alpha.13+212f8547ab",
37
37
  "call-bind": "^1.0.2",
38
38
  "colorette": "2.0.20",
39
39
  "cosmiconfig": "9.0.0",
@@ -80,5 +80,5 @@
80
80
  "publishConfig": {
81
81
  "access": "public"
82
82
  },
83
- "gitHead": "59acb12562dc7d023f12160bcf5db481650e1843"
83
+ "gitHead": "212f8547abb38d533a0b9c3ce968e33a0a5b1bd6"
84
84
  }