aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPinapelz <yukais@pinapelz.com>2025-10-13 12:17:28 -0700
committerPinapelz <yukais@pinapelz.com>2025-10-13 12:17:28 -0700
commit8ea0850428a3c9edd015384f945f86b3a13349c5 (patch)
tree391e7c6eacf7125cf6df569a330ecb2bcc08e695
parentea48ded120f33c6bfde7a70e9846087e132971c7 (diff)
add backend build and start scripts
-rw-r--r--backend/.gitignore2
-rw-r--r--backend/package.json6
-rw-r--r--backend/tsconfig.json2
3 files changed, 7 insertions, 3 deletions
diff --git a/backend/.gitignore b/backend/.gitignore
index 0d1e10e..c3affcd 100644
--- a/backend/.gitignore
+++ b/backend/.gitignore
@@ -4,3 +4,5 @@ node_modules
/src/generated/prisma
*.db
+dist
+seed.js
diff --git a/backend/package.json b/backend/package.json
index 4497593..49a5bab 100644
--- a/backend/package.json
+++ b/backend/package.json
@@ -5,10 +5,12 @@
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
- "dev": "ts-node-dev src/index.ts"
+ "dev": "ts-node-dev src/index.ts",
+ "build": "tsc",
+ "start": "node dist/index.js"
},
"prisma": {
- "seed": "ts-node prisma/seed.ts"
+ "seed": "ts-node src/prisma/seed.ts"
},
"keywords": [],
"author": "",
diff --git a/backend/tsconfig.json b/backend/tsconfig.json
index ee8ae2a..4029eac 100644
--- a/backend/tsconfig.json
+++ b/backend/tsconfig.json
@@ -27,7 +27,7 @@
/* Modules */
"module": "commonjs", /* Specify what module code is generated. */
- "rootDir": "./src", /* Specify the root folder within your source files. */
+ "rootDir": ".", /* Specify the root folder within your source files. */
// "moduleResolution": "node10", /* Specify how TypeScript looks up a file from a given module specifier. */
// "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
// "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage