aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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