@shipsite.dev/cli 0.2.9 → 0.2.10
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../../src/workspace/generators/layout.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAEpD,wBAAgB,cAAc,CAAC,GAAG,EAAE,gBAAgB,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../../src/workspace/generators/layout.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAEpD,wBAAgB,cAAc,CAAC,GAAG,EAAE,gBAAgB,GAAG,IAAI,CA0F1D"}
|
|
@@ -11,11 +11,8 @@ export function generateLayout(ctx) {
|
|
|
11
11
|
apple: '/apple-touch-icon.png',
|
|
12
12
|
},`;
|
|
13
13
|
}
|
|
14
|
-
// Root layout —
|
|
15
|
-
|
|
16
|
-
return children;
|
|
17
|
-
}
|
|
18
|
-
`);
|
|
14
|
+
// Root layout — owns <html>, <body>, ThemeProvider, metadata
|
|
15
|
+
// Reads locale from [locale] param via Next.js layout params
|
|
19
16
|
writeFileSync(join(ctx.srcDir, 'app', '[locale]', 'layout.tsx'), `import { notFound } from 'next/navigation';
|
|
20
17
|
import { routing } from '../../i18n/routing';
|
|
21
18
|
import { ShipSiteProvider } from '@shipsite.dev/components/context';
|
|
@@ -86,5 +83,7 @@ export default async function LocaleLayout({ children, params }: LayoutProps) {
|
|
|
86
83
|
);
|
|
87
84
|
}
|
|
88
85
|
`);
|
|
86
|
+
// Remove any stale root layout — not needed, [locale]/layout.tsx is the root
|
|
87
|
+
// Next.js treats the deepest layout with <html> as the root layout
|
|
89
88
|
}
|
|
90
89
|
//# sourceMappingURL=layout.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layout.js","sourceRoot":"","sources":["../../../src/workspace/generators/layout.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,EAAE,aAAa,EAAE,MAAM,IAAI,CAAC;AAGnC,MAAM,UAAU,cAAc,CAAC,GAAqB;IAClD,mCAAmC;IACnC,MAAM,OAAO,GAAG,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC;IACnC,IAAI,UAAU,GAAG,EAAE,CAAC;IACpB,IAAI,OAAO,EAAE,CAAC;QACZ,UAAU,GAAG;;aAEJ,OAAO;;KAEf,CAAC;IACJ,CAAC;IAED,
|
|
1
|
+
{"version":3,"file":"layout.js","sourceRoot":"","sources":["../../../src/workspace/generators/layout.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,EAAE,aAAa,EAAE,MAAM,IAAI,CAAC;AAGnC,MAAM,UAAU,cAAc,CAAC,GAAqB;IAClD,mCAAmC;IACnC,MAAM,OAAO,GAAG,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC;IACnC,IAAI,UAAU,GAAG,EAAE,CAAC;IACpB,IAAI,OAAO,EAAE,CAAC;QACZ,UAAU,GAAG;;aAEJ,OAAO;;KAEf,CAAC;IACJ,CAAC;IAED,6DAA6D;IAC7D,6DAA6D;IAC7D,aAAa,CACX,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,YAAY,CAAC,EACjD;;;;;;;;;;;;;;;;;qEAiBiE,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoD9E,CACE,CAAC;IAEF,6EAA6E;IAC7E,mEAAmE;AACrE,CAAC"}
|