elm-ssr 0.6.0 → 0.6.1
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/lib/scaffold.mjs +2 -2
- package/package.json +1 -1
package/lib/scaffold.mjs
CHANGED
|
@@ -15,13 +15,13 @@ const toPascalCase = (value) =>
|
|
|
15
15
|
|
|
16
16
|
const ensureValidName = (name) => {
|
|
17
17
|
if (!/^[a-z0-9-]+$/.test(name)) {
|
|
18
|
-
throw new Error("
|
|
18
|
+
throw new Error("App name must use lowercase letters, numbers, and dashes only.");
|
|
19
19
|
}
|
|
20
20
|
};
|
|
21
21
|
|
|
22
22
|
const ensureAppMissing = (config, name) => {
|
|
23
23
|
if (config.apps.some((app) => app.name === name)) {
|
|
24
|
-
throw new Error(`
|
|
24
|
+
throw new Error(`App "${name}" already exists in elm-ssr.config.json. If you want to recreate it, remove its entry from elm-ssr.config.json first.`);
|
|
25
25
|
}
|
|
26
26
|
};
|
|
27
27
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "elm-ssr",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.1",
|
|
4
4
|
"description": "Elm-first SSR library and framework for Cloudflare Workers (and Bun): file-based routes/islands, backend-neutral effect adapters (KV/D1/Redis/Postgres), background tasks (waitUntil/Queues), SQL-file migrations, CLI scaffold + build.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Michał Majchrzak <michmajchrzak@gmail.com>",
|