⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.
TypeScript honoissue-managementissue-trackerjira-alternativekanbanlinear-alternativemcpproject-managementreactself-hostedtypescript
refactor: :recycle: fixing build issues
Andrej59baf3c8ab81
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex 0f76c1309..cb3e7b266 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -34,5 +34,5 @@ jobs:- name: Lint project with Biomerun: pnpm run format-and-lint- # - name: Build project- # run: pnpm run build TODO: Fix build on pipeline\ No newline at end of file+ - name: Build project+ run: pnpm run build\ No newline at end of filediff --git a/apps/api/package.json b/apps/api/package.jsonindex ffb8955d7..544ac7784 100644--- a/apps/api/package.json+++ b/apps/api/package.json@@ -18,7 +18,7 @@"drizzle-kit": "^0.30.1","drizzle-orm": "^0.38.3","drizzle-typebox": "^0.2.1",- "elysia": "latest"+ "elysia": "1.2.9"},"devDependencies": {"bun-types": "latest"diff --git a/apps/api/src/database/schema.ts b/apps/api/src/database/schema.tsindex 221a26e76..8187578dc 100644--- a/apps/api/src/database/schema.ts+++ b/apps/api/src/database/schema.ts@@ -1,5 +1,4 @@import { createId } from "@paralleldrive/cuid2";-import type { InferSelectModel } from "drizzle-orm";import { integer, sqliteTable, text } from "drizzle-orm/sqlite-core";export const userTable = sqliteTable("user", {diff --git a/apps/api/src/index.ts b/apps/api/src/index.tsindex cbbdc2bad..2e0ef4dcf 100644--- a/apps/api/src/index.ts+++ b/apps/api/src/index.ts@@ -9,7 +9,7 @@ const app = new Elysia().use(cors()).use(user).guard({- async beforeHandle({ set, store, cookie: { session } }) {+ async beforeHandle({ store, cookie: { session } }) {if (!session?.value) {return { user: null };}diff --git a/apps/api/src/user/controllers/create-session.ts b/apps/api/src/user/controllers/create-session.tsindex 20aaa437a..6e40eedb8 100644--- a/apps/api/src/user/controllers/create-session.ts+++ b/apps/api/src/user/controllers/create-session.ts@@ -1,8 +1,8 @@import { sha256 } from "@oslojs/crypto/sha2";import { encodeHexLowerCase } from "@oslojs/encoding";import db from "../../database";-import type { Session } from "../../database/schema";import { sessionTable } from "../../database/schema";+import type { Session } from "../types";async function createSession(token: string, userId: string): Promise<Session> {const sessionId = encodeHexLowerCase(sha256(new TextEncoder().encode(token)));diff --git a/apps/web/src/routes/__root.tsx b/apps/web/src/routes/__root.tsxindex e36c39c32..1e7fd602e 100644--- a/apps/web/src/routes/__root.tsx+++ b/apps/web/src/routes/__root.tsx@@ -1,4 +1,4 @@-import type { User } from "@/types/user";+import type { LoggedInUser } from "@/types/user";import type { QueryClient } from "@tanstack/react-query";import { ReactQueryDevtools } from "@tanstack/react-query-devtools";import { Outlet, createRootRouteWithContext } from "@tanstack/react-router";@@ -6,7 +6,7 @@ import { TanStackRouterDevtools } from "@tanstack/router-devtools";export const Route = createRootRouteWithContext<{queryClient: QueryClient;- user: User;+ user: LoggedInUser | null | undefined;}>()({component: RootComponent,});diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex d82826e8a..f6ea38c46 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -44,13 +44,13 @@ importers:dependencies:'@elysiajs/cors':specifier: ^1.2.0'@elysiajs/jwt':specifier: ^1.2.0'@elysiajs/websocket':specifier: ^0.2.8'@kaneo/typescript-config':specifier: workspace:*version: link:../../packages/typescript-config@@ -76,8 +76,8 @@ importers:specifier: ^0.2.1version: 0.2.1(@sinclair/[email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected]))elysia:- specifier: latest- version: 1.2.10(@sinclair/[email protected])([email protected])+ specifier: 1.2.9+ version: 1.2.9(@sinclair/[email protected])([email protected])devDependencies:bun-types:specifier: latest@@ -1787,18 +1787,6 @@ packages:resolution: {integrity: sha512-CjVQyG7n7Sr+eBXE86HIulnL5N8xZY1sgmOPGuq/F0Rr0FJq63lg0kEtOIDfZBk44FnDLf6FUJ+dsJcuiUDdDQ==}- resolution: {integrity: sha512-QcNl2FjhHFRpKaqy1NoMpyCjJ7OcKBnHwLUkqGu09QwIV84PFb82ILvYJG4GS1RbGv76OA50luaqBLrM3SLZ2w==}- peerDependencies:- '@sinclair/typebox': '>= 0.34.0'- openapi-types: '>= 12.0.0'- typescript: '>= 5.0.0'- peerDependenciesMeta:- openapi-types:- optional: true- typescript:- optional: true-resolution: {integrity: sha512-UqN0j3K5hVnTbrqy6wsyqw4/F5ZdWlBJGPP1ax3JbcwEkKiWLA7HCPDaD+Tahq+h7kgUNKDT6WuIPAoN3rdXBg==}peerDependencies:@@ -2970,22 +2958,22 @@ snapshots:'@drizzle-team/[email protected]': {}dependencies:- elysia: 1.2.10(@sinclair/[email protected])([email protected])+ elysia: 1.2.9(@sinclair/[email protected])([email protected])dependencies:elysia: 1.2.9(@sinclair/[email protected])([email protected])dependencies:- elysia: 1.2.10(@sinclair/[email protected])([email protected])+ elysia: 1.2.9(@sinclair/[email protected])([email protected])jose: 4.15.9dependencies:- elysia: 1.2.10(@sinclair/[email protected])([email protected])+ elysia: 1.2.9(@sinclair/[email protected])([email protected])nanoid: 4.0.2raikiri: 0.0.0-beta.8@@ -3909,14 +3897,6 @@ snapshots:- dependencies:- '@sinclair/typebox': 0.34.13- cookie: 1.0.2- memoirist: 0.2.0- optionalDependencies:- typescript: 5.6.3-dependencies:'@sinclair/typebox': 0.34.13