Monorepo for wisp.place. A static site hosting service built on top of the AT Protocol. wisp.place

:tada: feat: add path alias

Changed files
+10 -4
public
layouts
libs
+1 -1
public/index.tsx
··· 1 import { useState } from 'react' 2 import { createRoot } from 'react-dom/client' 3 4 - import Layout from './layouts' 5 6 function App() { 7 const [count, setCount] = useState(0)
··· 1 import { useState } from 'react' 2 import { createRoot } from 'react-dom/client' 3 4 + import Layout from '@public/layouts' 5 6 function App() { 7 const [count, setCount] = useState(0)
+1 -1
public/layouts/index.tsx
··· 3 import { QueryClientProvider, QueryClient } from '@tanstack/react-query' 4 import clsx from 'clsx' 5 6 - import '../styles/global.css' 7 8 const client = new QueryClient() 9
··· 3 import { QueryClientProvider, QueryClient } from '@tanstack/react-query' 4 import clsx from 'clsx' 5 6 + import '@public/styles/global.css' 7 8 const client = new QueryClient() 9
+1 -1
public/libs/api.ts
··· 1 import { treaty } from '@elysiajs/eden' 2 3 - import type { app } from '../../src' 4 5 export const api = treaty<typeof app>('localhost:3000')
··· 1 import { treaty } from '@elysiajs/eden' 2 3 + import type { app } from '@server' 4 5 export const api = treaty<typeof app>('localhost:3000')
+7 -1
tsconfig.json
··· 100 101 /* Completeness */ 102 // "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */ 103 - "skipLibCheck": true /* Skip type checking all .d.ts files. */ 104 } 105 }
··· 100 101 /* Completeness */ 102 // "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */ 103 + "skipLibCheck": true, /* Skip type checking all .d.ts files. */ 104 + "baseUrl": ".", 105 + "paths": { 106 + "@server": ["./src/index.ts"], 107 + "@server/*": ["./src/*"], 108 + "@public/*": ["./public/*"] 109 + } 110 } 111 }