diff --git a/apps/api/src/index.ts b/apps/api/src/index.ts index e5e4dff..b54d59e 100644 --- a/apps/api/src/index.ts +++ b/apps/api/src/index.ts @@ -1,11 +1,8 @@ +import { handleErrors } from '@utils' import Elysia from 'elysia' import users from './routes/user/userRoutes' -import { handleErrors } from '@utils' -const app = new Elysia() - .use(users) - .listen(3000) - .onError(handleErrors) +const app = new Elysia().use(users).listen(3000).onError(handleErrors) console.log( `🦊 Elysia is running at http://${app.server?.hostname}:${app.server?.port}` diff --git a/apps/web/vite.config.ts b/apps/web/vite.config.ts index 5a66b73..8b36183 100644 --- a/apps/web/vite.config.ts +++ b/apps/web/vite.config.ts @@ -12,21 +12,21 @@ export default defineConfig({ terserOptions: { compress: { drop_console: true, - dead_code: true, + dead_code: true }, toplevel: true, keep_classnames: false, keep_fnames: false, - safari10: false, + safari10: false }, rollupOptions: { logLevel: 'debug', output: { manualChunks: { - '@vkontakte/icons': ['@vkontakte/icons'], - }, - }, - }, + '@vkontakte/icons': ['@vkontakte/icons'] + } + } + } }, // @ts-ignore unknown plugins: [preact()], @@ -36,8 +36,8 @@ export default defineConfig({ { find: '@utils', replacement: path.resolve(__dirname, 'src/utils') }, { find: '@components', - replacement: path.resolve(__dirname, 'src/components'), - }, - ], - }, + replacement: path.resolve(__dirname, 'src/components') + } + ] + } }) diff --git a/package.json b/package.json index 915e6b7..514e5f5 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "dev:startDB": "cd apps/api && db:start", "lint": "biome lint . --apply", "format": "biome format . --write", - "checkAll": "biome check .", + "checkAll": "biome check . --apply", "build:web": "cd apps/web && bun run build", "build:api": "cd apps/api && bun run build", "build:api:types": "cd apps/api && bun run build:types",