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

:tada: feat: add path alias

saltyaom 4b1b3f96 ec363aa3

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