create-smoodly-app 0.0.31 → 0.0.33
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/README.md
CHANGED
|
@@ -111,7 +111,10 @@ SEO title edit saved and published and served on `/`. Found:
|
|
|
111
111
|
`git init` and `supabase start`, so the run stops at `ensureEditor`
|
|
112
112
|
with a half-made app. It has to be late for hosted mode (the email may
|
|
113
113
|
name an existing Auth user, no password needed), but a local stack is
|
|
114
|
-
always fresh, so local mode could refuse up front.
|
|
114
|
+
always fresh, so local mode could refuse up front. Fixed 2026-09-28:
|
|
115
|
+
`resolveAnswers` refuses local `--editor-email` without the variable
|
|
116
|
+
before anything is written (the built CLI exits 1, no directory made);
|
|
117
|
+
hosted keeps the late check.
|
|
115
118
|
|
|
116
119
|
## Follow-ups (logged 2026-09-25, docs walk)
|
|
117
120
|
|
package/dist/index.js
CHANGED
|
@@ -262,7 +262,7 @@ async function answerOrThrow(value) {
|
|
|
262
262
|
if (p.isCancel(v)) throw new Error("Cancelled.");
|
|
263
263
|
return v;
|
|
264
264
|
}
|
|
265
|
-
async function resolveAnswers(flags2, ctx) {
|
|
265
|
+
async function resolveAnswers(flags2, ctx, env = process.env) {
|
|
266
266
|
const name = flags2.name ?? await answer(p.text({ message: "Project name", placeholder: "my-site", validate: (v) => validName(v ?? "") ?? void 0 }));
|
|
267
267
|
const invalid = validName(name);
|
|
268
268
|
if (invalid) bail(invalid);
|
|
@@ -301,6 +301,7 @@ async function resolveAnswers(flags2, ctx) {
|
|
|
301
301
|
));
|
|
302
302
|
if (supabase === "local") {
|
|
303
303
|
if (!ctx.hasSupabaseCli) bail("Local mode needs the Supabase CLI: https://supabase.com/docs/guides/cli (brew install supabase/tap/supabase)");
|
|
304
|
+
if (flags2.editorEmail && !env.SMOODLY_EDITOR_PASSWORD) throw new Error(`Set SMOODLY_EDITOR_PASSWORD to create ${flags2.editorEmail}.`);
|
|
304
305
|
return { name, dir, supabase, hasSupabaseCli: true, smoodlyDep: flags2.smoodlyDep, locales, starter };
|
|
305
306
|
}
|
|
306
307
|
const badUrl = "Supabase project URL must be an http(s) URL, like https://abcd.supabase.co";
|
package/package.json
CHANGED