@stormycms/cli 0.0.28 → 1.0.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/boilerplate.zip +0 -0
- package/dist/cli.js +4 -4
- package/dist/index.js +4 -4
- package/dist/index.mjs +3 -3
- package/package.json +3 -2
package/boilerplate.zip
CHANGED
|
Binary file
|
package/dist/cli.js
CHANGED
|
@@ -23,7 +23,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
23
23
|
mod
|
|
24
24
|
));
|
|
25
25
|
|
|
26
|
-
// ../../node_modules/.pnpm/tsup@8.5.1_postcss@8.5.16_tsx@4.23.0_typescript@5.9.
|
|
26
|
+
// ../../node_modules/.pnpm/tsup@8.5.1_postcss@8.5.16_tsx@4.23.0_typescript@5.9.3_yaml@2.9.1/node_modules/tsup/assets/cjs_shims.js
|
|
27
27
|
var getImportMetaUrl = () => typeof document === "undefined" ? new URL(`file:${__filename}`).href : document.currentScript && document.currentScript.tagName.toUpperCase() === "SCRIPT" ? document.currentScript.src : new URL("main.js", document.baseURI).href;
|
|
28
28
|
var importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
|
|
29
29
|
|
|
@@ -367,14 +367,14 @@ function parseEnvFile(filePath) {
|
|
|
367
367
|
}
|
|
368
368
|
return values;
|
|
369
369
|
}
|
|
370
|
-
function isPlaceholder(value) {
|
|
371
|
-
return placeholderPattern.test(value) || value === "";
|
|
370
|
+
function isPlaceholder(key, value) {
|
|
371
|
+
return placeholderPattern.test(value) || value === "" || key === "STORMY_CMS_CLIENT_ID" && value === "LOCAL_DEMO_CLIENT_ID" || key === "STORMY_CMS_CLIENT_SECRET" && value === "sk_local_demo_site";
|
|
372
372
|
}
|
|
373
373
|
function isDefaultUrl(value) {
|
|
374
374
|
return value.startsWith("http://localhost");
|
|
375
375
|
}
|
|
376
376
|
function groupMissingKeys(values) {
|
|
377
|
-
return Object.entries(values).filter(([
|
|
377
|
+
return Object.entries(values).filter(([key, value]) => !isDefaultUrl(value) && isPlaceholder(key, value)).map(([key]) => key);
|
|
378
378
|
}
|
|
379
379
|
function validateEnvValue(key, value) {
|
|
380
380
|
if (value === "") return true;
|
package/dist/index.js
CHANGED
|
@@ -37,7 +37,7 @@ __export(index_exports, {
|
|
|
37
37
|
});
|
|
38
38
|
module.exports = __toCommonJS(index_exports);
|
|
39
39
|
|
|
40
|
-
// ../../node_modules/.pnpm/tsup@8.5.1_postcss@8.5.16_tsx@4.23.0_typescript@5.9.
|
|
40
|
+
// ../../node_modules/.pnpm/tsup@8.5.1_postcss@8.5.16_tsx@4.23.0_typescript@5.9.3_yaml@2.9.1/node_modules/tsup/assets/cjs_shims.js
|
|
41
41
|
var getImportMetaUrl = () => typeof document === "undefined" ? new URL(`file:${__filename}`).href : document.currentScript && document.currentScript.tagName.toUpperCase() === "SCRIPT" ? document.currentScript.src : new URL("main.js", document.baseURI).href;
|
|
42
42
|
var importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
|
|
43
43
|
|
|
@@ -303,14 +303,14 @@ function parseEnvFile(filePath) {
|
|
|
303
303
|
}
|
|
304
304
|
return values;
|
|
305
305
|
}
|
|
306
|
-
function isPlaceholder(value) {
|
|
307
|
-
return placeholderPattern.test(value) || value === "";
|
|
306
|
+
function isPlaceholder(key, value) {
|
|
307
|
+
return placeholderPattern.test(value) || value === "" || key === "STORMY_CMS_CLIENT_ID" && value === "LOCAL_DEMO_CLIENT_ID" || key === "STORMY_CMS_CLIENT_SECRET" && value === "sk_local_demo_site";
|
|
308
308
|
}
|
|
309
309
|
function isDefaultUrl(value) {
|
|
310
310
|
return value.startsWith("http://localhost");
|
|
311
311
|
}
|
|
312
312
|
function groupMissingKeys(values) {
|
|
313
|
-
return Object.entries(values).filter(([
|
|
313
|
+
return Object.entries(values).filter(([key, value]) => !isDefaultUrl(value) && isPlaceholder(key, value)).map(([key]) => key);
|
|
314
314
|
}
|
|
315
315
|
function validateEnvValue(key, value) {
|
|
316
316
|
if (value === "") return true;
|
package/dist/index.mjs
CHANGED
|
@@ -260,14 +260,14 @@ function parseEnvFile(filePath) {
|
|
|
260
260
|
}
|
|
261
261
|
return values;
|
|
262
262
|
}
|
|
263
|
-
function isPlaceholder(value) {
|
|
264
|
-
return placeholderPattern.test(value) || value === "";
|
|
263
|
+
function isPlaceholder(key, value) {
|
|
264
|
+
return placeholderPattern.test(value) || value === "" || key === "STORMY_CMS_CLIENT_ID" && value === "LOCAL_DEMO_CLIENT_ID" || key === "STORMY_CMS_CLIENT_SECRET" && value === "sk_local_demo_site";
|
|
265
265
|
}
|
|
266
266
|
function isDefaultUrl(value) {
|
|
267
267
|
return value.startsWith("http://localhost");
|
|
268
268
|
}
|
|
269
269
|
function groupMissingKeys(values) {
|
|
270
|
-
return Object.entries(values).filter(([
|
|
270
|
+
return Object.entries(values).filter(([key, value]) => !isDefaultUrl(value) && isPlaceholder(key, value)).map(([key]) => key);
|
|
271
271
|
}
|
|
272
272
|
function validateEnvValue(key, value) {
|
|
273
273
|
if (value === "") return true;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stormycms/cli",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "Stormy CMS CLI - Framework-agnostic core with plugin system",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -24,7 +24,8 @@
|
|
|
24
24
|
"@types/prompts": "^2.4.9",
|
|
25
25
|
"tree-kill": "^1.2.2",
|
|
26
26
|
"tsup": "^8.5.0",
|
|
27
|
-
"typescript": "^5.0.0"
|
|
27
|
+
"typescript": "^5.0.0",
|
|
28
|
+
"yaml": "^2.9.1"
|
|
28
29
|
},
|
|
29
30
|
"author": "thunder-solutions",
|
|
30
31
|
"license": "ISC",
|