@linktr.ee/linkapp 0.0.5 → 0.0.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.
|
@@ -12,7 +12,7 @@ function generateMainTsx(projectPath) {
|
|
|
12
12
|
const layouts = detection.layouts;
|
|
13
13
|
// Generate import statements for each layout
|
|
14
14
|
const imports = layouts
|
|
15
|
-
.map(layout => `import ${layout.displayName} from '
|
|
15
|
+
.map(layout => `import ${layout.displayName} from '../app/${layout.fileName}'`)
|
|
16
16
|
.join('\n');
|
|
17
17
|
// Generate layouts object
|
|
18
18
|
const layoutsObj = layouts
|
|
@@ -20,9 +20,9 @@ function generateMainTsx(projectPath) {
|
|
|
20
20
|
.join('\n');
|
|
21
21
|
return `import { StrictMode } from 'react'
|
|
22
22
|
import { createRoot } from 'react-dom/client'
|
|
23
|
-
import Layout from '
|
|
23
|
+
import Layout from '../app/layout'
|
|
24
24
|
${imports}
|
|
25
|
-
import '
|
|
25
|
+
import '../app/globals.css'
|
|
26
26
|
|
|
27
27
|
// Map of available layouts
|
|
28
28
|
const layouts: Record<string, React.ComponentType<any>> = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setup-runtime.js","sourceRoot":"","sources":["../../../src/lib/utils/setup-runtime.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAC5E,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AACxC,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAE1D,MAAM,UAAU,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;AACjD,MAAM,SAAS,GAAG,OAAO,CAAC,UAAU,CAAC,CAAA;AAErC;;GAEG;AACH,SAAS,eAAe,CAAC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