[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": "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", "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": "yarn workspace backend run start",
"start:debug": "yarn workspace backend run start:debug",
"start:test": "yarn workspace backend run start:test", "start:test": "yarn workspace backend run start:test",
"init": "yarn migrate", "init": "yarn migrate",
"migrate": "yarn workspace backend run migrate", "migrate": "yarn workspace backend run migrate",

View file

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