@shipsite.dev/cli 0.2.15 → 0.2.16
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,CAoH1D"}
|
|
@@ -102,7 +102,11 @@ export default async function LocaleLayout({ children, params }: LayoutProps) {
|
|
|
102
102
|
);
|
|
103
103
|
}
|
|
104
104
|
`);
|
|
105
|
-
//
|
|
106
|
-
//
|
|
105
|
+
// Root layout — prevents Next.js from auto-generating one without lang attribute.
|
|
106
|
+
// Passes children through so [locale]/layout.tsx owns <html lang={locale}>.
|
|
107
|
+
writeFileSync(join(ctx.srcDir, 'app', 'layout.tsx'), `export default function RootLayout({ children }: { children: React.ReactNode }) {
|
|
108
|
+
return children;
|
|
109
|
+
}
|
|
110
|
+
`);
|
|
107
111
|
}
|
|
108
112
|
//# 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,GAA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