diff options
Diffstat (limited to 'package.json')
-rw-r--r-- | package.json | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/package.json b/package.json index bac5533..ecb56f5 100644 --- a/package.json +++ b/package.json @@ -6,12 +6,14 @@ "private": true, "license": "UNLICENSED", "scripts": { + "start:db": "pg_ctl status || pg_ctl start", + "stop:db": "pg_ctl status && pg_ctl stop", "prebuild": "rimraf dist", "build": "nest build", "format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"", "start": "nest start", - "start:dev": "nest start --watch", - "start:debug": "nest start --debug --watch", + "start:dev": "yarn start:db && nest start --watch", + "start:debug": "yarn start:db && nest start --debug --watch", "start:prod": "node dist/main", "lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix", "test": "jest", @@ -24,10 +26,13 @@ "@nestjs/common": "^8.0.0", "@nestjs/core": "^8.0.0", "@nestjs/platform-express": "^8.0.0", + "@nestjs/typeorm": "^8.0.2", "dotenv": "^10.0.0", + "pg": "^8.7.1", "reflect-metadata": "^0.1.13", "rimraf": "^3.0.2", - "rxjs": "^7.2.0" + "rxjs": "^7.2.0", + "typeorm": "^0.2.38" }, "devDependencies": { "@nestjs/cli": "^8.0.0", |