@aex.is/zero 0.1.5 → 0.1.6
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/engine/scaffold.js
CHANGED
|
@@ -41,7 +41,9 @@ async function ensureEmptyTargetDir(targetDir) {
|
|
|
41
41
|
throw new Error('Target path exists and is not a directory.');
|
|
42
42
|
}
|
|
43
43
|
const entries = await fs.readdir(targetDir);
|
|
44
|
-
|
|
44
|
+
const allowed = new Set(['.git', '.gitignore', '.gitkeep']);
|
|
45
|
+
const remaining = entries.filter((entry) => !allowed.has(entry));
|
|
46
|
+
if (remaining.length > 0) {
|
|
45
47
|
throw new Error('Target directory is not empty.');
|
|
46
48
|
}
|
|
47
49
|
}
|
package/dist/engine/templates.js
CHANGED
|
@@ -134,7 +134,7 @@ export default function RootLayout({
|
|
|
134
134
|
<div className="flex min-h-screen flex-col">
|
|
135
135
|
<SiteHeader appName="${escapeTemplate(appName)}" />
|
|
136
136
|
<main className="flex-1">{children}</main>
|
|
137
|
-
<SiteFooter
|
|
137
|
+
<SiteFooter />
|
|
138
138
|
</div>
|
|
139
139
|
</body>
|
|
140
140
|
</html>
|
|
@@ -224,7 +224,7 @@ function nextFooterTemplate(domain) {
|
|
|
224
224
|
const domainLabel = escapeTemplate(domain).trim().length > 0
|
|
225
225
|
? `Domain: ${escapeTemplate(domain)}`
|
|
226
226
|
: 'Domain: not set';
|
|
227
|
-
return `export function SiteFooter(
|
|
227
|
+
return `export function SiteFooter() {
|
|
228
228
|
return (
|
|
229
229
|
<footer className=\"border-t border-[var(--fg)]\">
|
|
230
230
|
<div className=\"mx-auto flex w-full max-w-4xl flex-col gap-2 px-6 py-4 text-xs\">
|