feat: add Prisma ORM #5

Open
nerdychara wants to merge 3 commits from feat/add-prisma into main
4 changed files with 4 additions and 4 deletions
Showing only changes of commit 0a0c8dc17c - Show all commits
+1 -1
View File
@@ -1,4 +1,4 @@
node_modules node_modules
prod prod
src/generated/prisma generated/prisma
Review

Prisma should not be creating this at all.

Prisma should not be creating this at all.
+1 -1
View File
@@ -7,7 +7,7 @@
"scripts": { "scripts": {
"build": "rm -rf prod && tsc", "build": "rm -rf prod && tsc",
"lint": "eslint src --max-warnings 0", "lint": "eslint src --max-warnings 0",
"start": "op run --env-file=prod.env --no-masking -- node prod/index.js", "start": "op run --env-file=prod.env --no-masking -- node prod/src/index.js",
"test": "echo \"No tests yet!\" && exit 0" "test": "echo \"No tests yet!\" && exit 0"
}, },
"keywords": [], "keywords": [],
1
+1 -1
View File
@@ -1,4 +1,4 @@
import { PrismaClient } from "../generated/prisma/client.js"; import { PrismaClient } from "../../generated/prisma/client.js";
const prisma = new PrismaClient(); const prisma = new PrismaClient();
+1 -1
View File
@@ -1,7 +1,7 @@
{ {
Review

These changes are incorrect and should be reverted.

These changes are incorrect and should be reverted.
"include": ["**/*.ts"],
"extends": "@nhcarrigan/typescript-config", "extends": "@nhcarrigan/typescript-config",
"compilerOptions": { "compilerOptions": {
"rootDir": "./src",
"outDir": "./prod" "outDir": "./prod"
}, },
"exclude": ["test/**/*.ts", "vitest.config.ts"] "exclude": ["test/**/*.ts", "vitest.config.ts"]