@cms-lab/cli 1.0.9 → 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 +1 -1
- package/dist/{chunk-OD4Y6SFQ.js → chunk-CPGXUVJR.js} +6 -3
- package/dist/index.js +1 -1
- package/package.json +10 -10
package/dist/bin.js
CHANGED
|
@@ -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
|
|
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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cms-lab/cli",
|
|
3
|
-
"version": "1.0
|
|
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/contentful": "1.0
|
|
51
|
-
"@cms-lab/
|
|
52
|
-
"@cms-lab/directus": "1.0
|
|
53
|
-
"@cms-lab/
|
|
54
|
-
"@cms-lab/
|
|
55
|
-
"@cms-lab/
|
|
56
|
-
"@cms-lab/strapi": "1.0
|
|
57
|
-
"@cms-lab/
|
|
58
|
-
"@cms-lab/
|
|
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": {
|