Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/workflows/changeset-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ name: Changeset Check
on:
pull_request:
branches:
- dev
- main

jobs:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ jobs:
- name: Install Dependencies
run: pnpm install --frozen-lockfile

- name: Generate Prisma Client
run: pnpm --filter=api db:generate

- name: Build Packages
run: pnpm build

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/version-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
workflow_dispatch:
push:
branches:
- dev
- main
paths:
- '.changeset/**'

Expand Down
2 changes: 0 additions & 2 deletions apps/api/.gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
node_modules
# Keep environment variables out of version control
.env

/generated/prisma
2 changes: 1 addition & 1 deletion apps/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"author": "",
"license": "ISC",
"dependencies": {
"@prisma/client": "^6.17.1",
"@types/pg": "^8.15.5",
"axios": "^1.12.2",
"compression": "^1.7.4",
Expand All @@ -43,7 +44,6 @@
"zod": "^4.1.12"
},
"devDependencies": {
"@prisma/client": "^6.17.1",
"@types/compression": "^1.7.5",
"@types/cors": "^2.8.17",
"@types/express": "^4.17.21",
Expand Down
1 change: 0 additions & 1 deletion apps/api/prisma/schema.prisma
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
generator client {
provider = "prisma-client-js"
output = "../generated/prisma"
}

datasource db {
Expand Down
2 changes: 1 addition & 1 deletion apps/api/src/domains/library/library.services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
LibraryUpdateResult,
LibraryWithMetadata,
} from "./library.types";
import { Prisma, MediaType } from "../../../generated/prisma";
import { Prisma, MediaType } from "@prisma/client";

export const libraryServices = {
delete: async (libraryId: string): Promise<LibraryDeleteResult> => {
Expand Down
2 changes: 1 addition & 1 deletion apps/api/src/domains/library/library.types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Library } from "../../../generated/prisma";
import { Library } from "@prisma/client";

/**
* Library types and interfaces
Expand Down
2 changes: 1 addition & 1 deletion apps/api/src/domains/movies/movies.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Movie types and interfaces
*/

import { Movie, Media } from "../../../generated/prisma";
import { Movie, Media } from "@prisma/client";

/**
* Movie with its associated media information
Expand Down
2 changes: 1 addition & 1 deletion apps/api/src/domains/tvshows/tvshows.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* TV Show types and interfaces
*/

import { TVShow, Media, Season, Episode } from "../../../generated/prisma";
import { TVShow, Media, Season, Episode } from "@prisma/client";

/**
* TV Show with its associated media information
Expand Down
2 changes: 1 addition & 1 deletion apps/api/src/lib/database/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export { default as prisma } from "./prisma";
export { MediaType } from "../../../generated/prisma";
export { MediaType } from "@prisma/client";
2 changes: 1 addition & 1 deletion apps/api/src/lib/database/prisma.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { PrismaClient } from "../../../generated/prisma";
import { PrismaClient } from "@prisma/client";

declare global {
var __prisma: PrismaClient | undefined;
Expand Down
Loading