From 9b96b54c3cc1eecae1fbd016e863dcd54115b690 Mon Sep 17 00:00:00 2001 From: Laura Hausmann Date: Fri, 20 Oct 2023 16:47:18 +0200 Subject: [PATCH] [backend] Add start:debug command --- package.json | 1 + packages/backend/package.json | 1 + 2 files changed, 2 insertions(+) diff --git a/package.json b/package.json index 33d586502..fa78c5f82 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/packages/backend/package.json b/packages/backend/package.json index e5879da4e..d47d386a3 100644 --- a/packages/backend/package.json +++ b/packages/backend/package.json @@ -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",