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",