@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.
Files changed (2) hide show
  1. package/dist/index.js +3 -1
  2. 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
- if (layoutShared.length > 0) {
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) {
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "0.6.19",
6
+ "version": "0.6.20",
7
7
  "description": "CLI interface for Coherent Design Method",
8
8
  "type": "module",
9
9
  "main": "./dist/index.js",