@getcoherent/cli 0.6.19 → 0.6.20
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/index.js +3 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6411,6 +6411,7 @@ ${existingAppPageCode}
|
|
|
6411
6411
|
`Create ONE page called "${name}" at route "${route}".`,
|
|
6412
6412
|
`Context: ${message}.`,
|
|
6413
6413
|
`Generate complete pageCode for this single page only. Do not generate other pages.`,
|
|
6414
|
+
`FORBIDDEN in pageCode: <header>, <nav>, <footer>, site-wide navigation, copyright footers. The layout provides all of these.`,
|
|
6414
6415
|
`PAGE TYPE: ${pageType}`,
|
|
6415
6416
|
designConstraints,
|
|
6416
6417
|
layoutNote,
|
|
@@ -7083,7 +7084,8 @@ function printPostGenerationReport(opts) {
|
|
|
7083
7084
|
if (inCodeShared.length > 0) {
|
|
7084
7085
|
console.log(chalk10.dim(` Shared: ${inCodeShared.map((s) => `${s.id} (${s.name})`).join(", ")}`));
|
|
7085
7086
|
}
|
|
7086
|
-
|
|
7087
|
+
const isAuthPage = route && (/^\/(login|signin|signup|register|forgot-password|reset-password)\b/.test(route) || filePath.includes("(auth)"));
|
|
7088
|
+
if (layoutShared.length > 0 && !isAuthPage) {
|
|
7087
7089
|
console.log(chalk10.dim(` Layout: ${layoutShared.map((l) => `${l.id} (${l.name})`).join(", ")} via layout.tsx`));
|
|
7088
7090
|
}
|
|
7089
7091
|
if (iconCount > 0) {
|