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

:tada: feat: add path alias

saltyaom 7e4edf6b fa50e48e

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