Skip to content

Commit

Permalink
Merge pull request #336 from SciCatProject/SWAP-3046-update-migration…
Browse files Browse the repository at this point in the history
…-documentation

add prestart script that runs the migrations before every start
  • Loading branch information
nitrosx authored Feb 13, 2023
2 parents 36643cf + 3768470 commit f7054b7
Show file tree
Hide file tree
Showing 2 changed files with 85 additions and 14 deletions.
97 changes: 83 additions & 14 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"prebuild": "rimraf dist",
"build": "nest build",
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
"prestart": "node ./node_modules/migrate-mongo/bin/migrate-mongo.js up",
"start": "nest start",
"start:dev": "nest start --watch",
"start:debug": "nest start --debug --watch",
Expand Down Expand Up @@ -48,6 +49,7 @@
"lodash": "^4.17.21",
"luxon": "^3.2.1",
"mathjs": "^11.4.0",
"migrate-mongo": "^9.0.0",
"mongoose": "^6.5.1",
"node-fetch": "^3.3.0",
"nodemailer": "^6.7.8",
Expand Down

0 comments on commit f7054b7

Please sign in to comment.