feat: add debug scripts for backend and frontend development

This commit is contained in:
Tudor Stanciu 2025-10-05 16:12:39 +03:00
parent ee20b85c9e
commit 30171365b3
3 changed files with 14 additions and 0 deletions

View File

@ -5,7 +5,9 @@
"main": "dist/backend/index.js", "main": "dist/backend/index.js",
"scripts": { "scripts": {
"dev": "concurrently \"npm run dev:backend\" \"npm run dev:frontend\"", "dev": "concurrently \"npm run dev:backend\" \"npm run dev:frontend\"",
"dev:debug": "concurrently \"npm run dev:backend:debug\" \"npm run dev:frontend\"",
"dev:backend": "cd src/backend && npm run dev", "dev:backend": "cd src/backend && npm run dev",
"dev:backend:debug": "cd src/backend && npm run dev:debug",
"dev:frontend": "cd src/frontend && npm run dev", "dev:frontend": "cd src/frontend && npm run dev",
"build": "npm run build:backend && npm run build:frontend", "build": "npm run build:backend && npm run build:frontend",
"build:backend": "cd src/backend && npm run build", "build:backend": "cd src/backend && npm run build",

View File

@ -0,0 +1,11 @@
{
"watch": ["."],
"ext": "ts,json",
"ignore": ["**/*.spec.ts", "**/*.test.ts", "node_modules", "dist"],
"exec": "node --inspect --import ./register.js index.ts",
"delay": 1000,
"env": {
"NODE_ENV": "development",
"NODE_OPTIONS": "--experimental-specifier-resolution=node"
}
}

View File

@ -6,6 +6,7 @@
"main": "dist/index.js", "main": "dist/index.js",
"scripts": { "scripts": {
"dev": "nodemon", "dev": "nodemon",
"dev:debug": "nodemon --config nodemon-debug.json",
"build": "tsup", "build": "tsup",
"start": "node dist/index.js", "start": "node dist/index.js",
"lint": "eslint .", "lint": "eslint .",