[backend] Add start:debug command

This commit is contained in:
Laura Hausmann 2023-10-20 16:47:18 +02:00
parent 9a2a0b2ca8
commit 9b96b54c3c
No known key found for this signature in database
GPG Key ID: D044E84C5BE01605
2 changed files with 2 additions and 0 deletions

View File

@ -12,6 +12,7 @@
"build": "node ./scripts/build-greet.js && yarn workspace iceshrimp-js run build && yarn workspaces foreach -pitv run build && gulp",
"build:debug": "node ./scripts/build-greet.js && yarn workspace iceshrimp-js run build:debug && yarn workspaces foreach -pitv run build:debug && gulp",
"start": "yarn workspace backend run start",
"start:debug": "yarn workspace backend run start:debug",
"start:test": "yarn workspace backend run start:test",
"init": "yarn migrate",
"migrate": "yarn workspace backend run migrate",

View File

@ -5,6 +5,7 @@
"type": "module",
"scripts": {
"start": "node ./built/index.js",
"start:debug": "node --heapsnapshot-signal=SIGUSR2 --inspect ./built/index.js",
"start:test": "NODE_ENV=test node ./built/index.js",
"migrate": "typeorm migration:run -d built/ormconfig.js",
"revertmigration": "typeorm migration:revert -d built/ormconfig.js",