@cms-lab/cli 1.0.10 → 1.1.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/bin.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  runCli
4
- } from "./chunk-VARQUY5N.js";
4
+ } from "./chunk-CPGXUVJR.js";
5
5
 
6
6
  // src/bin.ts
7
7
  var exitCode = await runCli(process.argv.slice(2));
@@ -325,7 +325,8 @@ function cmsDetails(config) {
325
325
  if (config.provider === "strapi") {
326
326
  return `## CMS details
327
327
 
328
- - Collections: ${config.collections.map((collection) => `${collection.type} (${collection.endpoint})`).join(", ")}`;
328
+ - Collections: ${(config.collections ?? []).map((collection) => `${collection.type} (${collection.endpoint})`).join(", ") || "none"}
329
+ - Single types: ${(config.singleTypes ?? []).map((singleType) => `${singleType.type} (${singleType.endpoint})`).join(", ") || "none"}`;
329
330
  }
330
331
  if (config.provider === "directus") {
331
332
  return `## CMS details
@@ -513,7 +514,7 @@ var noColor = {
513
514
  // src/index.ts
514
515
  async function runCli(argv, dependencies = {}) {
515
516
  let exitCode = 0;
516
- const program = new Command().name("cms-lab").description("Catch CMS bugs before deploy.").version("1.0.10").exitOverride().configureOutput({
517
+ const program = new Command().name("cms-lab").description("Catch CMS bugs before deploy.").version("1.1.0").exitOverride().configureOutput({
517
518
  writeOut: (text) => writeStdout(dependencies, text),
518
519
  writeErr: (text) => writeStderr(dependencies, text)
519
520
  });
@@ -1206,7 +1207,9 @@ function describeCms(config) {
1206
1207
  }
1207
1208
  if (config.provider === "strapi") {
1208
1209
  return `strapi url=${safeUrl(config.url)} collections=${formatList(
1209
- config.collections.map((collection) => collection.endpoint)
1210
+ (config.collections ?? []).map((collection) => collection.endpoint)
1211
+ )} singleTypes=${formatList(
1212
+ (config.singleTypes ?? []).map((singleType) => singleType.endpoint)
1210
1213
  )}`;
1211
1214
  }
1212
1215
  if (config.provider === "directus") {
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  runCli
3
- } from "./chunk-VARQUY5N.js";
3
+ } from "./chunk-CPGXUVJR.js";
4
4
  export {
5
5
  runCli
6
6
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cms-lab/cli",
3
- "version": "1.0.10",
3
+ "version": "1.1.0",
4
4
  "type": "module",
5
5
  "description": "Catch CMS bugs before deploy.",
6
6
  "license": "MIT",
@@ -47,15 +47,15 @@
47
47
  "dependencies": {
48
48
  "commander": "^14.0.2",
49
49
  "picocolors": "^1.1.1",
50
- "@cms-lab/core": "1.0.10",
51
- "@cms-lab/contentful": "1.0.10",
52
- "@cms-lab/directus": "1.0.10",
53
- "@cms-lab/prismic": "1.0.10",
54
- "@cms-lab/reporter": "1.0.10",
55
- "@cms-lab/next": "1.0.10",
56
- "@cms-lab/sanity": "1.0.10",
57
- "@cms-lab/wordpress": "1.0.10",
58
- "@cms-lab/strapi": "1.0.10"
50
+ "@cms-lab/contentful": "1.1.0",
51
+ "@cms-lab/core": "1.1.0",
52
+ "@cms-lab/directus": "1.1.0",
53
+ "@cms-lab/reporter": "1.1.0",
54
+ "@cms-lab/sanity": "1.1.0",
55
+ "@cms-lab/prismic": "1.1.0",
56
+ "@cms-lab/strapi": "1.1.0",
57
+ "@cms-lab/next": "1.1.0",
58
+ "@cms-lab/wordpress": "1.1.0"
59
59
  },
60
60
  "author": "Afaq Rashid",
61
61
  "scripts": {