···11import { useState } from 'react'
22import { createRoot } from 'react-dom/client'
3344-import Layout from './layouts'
44+import Layout from '@public/layouts'
5566function App() {
77 const [count, setCount] = useState(0)
+1-1
public/layouts/index.tsx
···33import { QueryClientProvider, QueryClient } from '@tanstack/react-query'
44import clsx from 'clsx'
5566-import '../styles/global.css'
66+import '@public/styles/global.css'
7788const client = new QueryClient()
99
+1-1
public/libs/api.ts
···11import { treaty } from '@elysiajs/eden'
2233-import type { app } from '../../src'
33+import type { app } from '@server'
4455export const api = treaty<typeof app>('localhost:3000')
+7-1
tsconfig.json
···100100101101 /* Completeness */
102102 // "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
103103- "skipLibCheck": true /* Skip type checking all .d.ts files. */
103103+ "skipLibCheck": true, /* Skip type checking all .d.ts files. */
104104+ "baseUrl": ".",
105105+ "paths": {
106106+ "@server": ["./src/index.ts"],
107107+ "@server/*": ["./src/*"],
108108+ "@public/*": ["./public/*"]
109109+ }
104110 }
105111}