From acda59303d009a06d3909064d9e0bd724fb2eb23 Mon Sep 17 00:00:00 2001 From: Seth Trowbridge Date: Sun, 13 Aug 2023 22:58:15 -0400 Subject: [PATCH] wording --- checker.tsx | 10 ++++------ deno.jsonc | 3 ++- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/checker.tsx b/checker.tsx index 81b791e..80ec776 100644 --- a/checker.tsx +++ b/checker.tsx @@ -183,8 +183,7 @@ export async function Check() if(!importMap[">able/app.tsx"]) { - const resp = confirm(`🤔 OPTIONAL: Import map has no specifier for your starter app (">able/app.tsx"). Create one?`); - if(resp) + if(confirm(`🤔 OPTIONAL: Your import map does not override the default/empty FRONT-END app with the specifier ">able/app.tsx". Create this file and add the specifier?`)) { importMap[">able/app.tsx"] = `./app.tsx`; await bake(imports); @@ -202,21 +201,20 @@ export async function Check() catch(e) { console.log(e); - if(confirm(`🚧 Your starter app ("${importMap[">able/app.tsx"]}") does not export a default function that returns VDOM nodes. Replace it?`)) + if(confirm(`🚧 Your FRONT-END app ("${importMap[">able/app.tsx"]}") does not export a default function that returns VDOM nodes. Replace it?`)) { await Install("app.tsx", importMap[">able/app.tsx"]); } else { - throw("⛔ Starter app has incorrect export types."); + throw("⛔ Your FRONT-END app has incorrect export types."); } } } if(!importMap[">able/api.tsx"]) { - const resp = confirm(`🤔 OPTIONAL: Import map has no specifier for your starter backend app (">able/api.tsx"). Create one?`); - if(resp) + if(confirm(`🤔 OPTIONAL: Your import map does not override the default/empty BACK-END api with the specifier ">able/api.tsx". Create this file and add the specifier?`)) { importMap[">able/api.tsx"] = "./api.tsx"; await bake(imports); diff --git a/deno.jsonc b/deno.jsonc index 8b3930c..fb2636d 100644 --- a/deno.jsonc +++ b/deno.jsonc @@ -2,7 +2,8 @@ "imports": { "react": "https://esm.sh/preact@10.16.0/compat", "react/": "https://esm.sh/preact@10.16.0/compat/", - ">able/": "file:///C:/Web%20Projects/able-baker/" + ">able/": "file:///C:/Web%20Projects/able-baker/", + ">able/app.tsx": "./app.tsx" }, "compilerOptions": { "jsx": "react-jsx",