diff --git a/.vscode/launch.json b/.vscode/launch.json index 37d9ac7f..d0f0e8eb 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -6,24 +6,16 @@ "configurations": [ { "name": "bookshop", - "cwd": "${workspaceFolder}/bookshop", + "command": "cds watch bookshop", "request": "launch", - "type": "node", - "runtimeExecutable": "npx", - "runtimeArgs": ["-n"], - "args": ["--", "cds", "run", "--with-mocks", "--in-memory?"], - "console": "integratedTerminal", + "type": "node-terminal", "skipFiles": ["/**"] }, { - "name": "Fiori App", - "cwd": "${workspaceFolder}/fiori", + "name": "Fiori app", + "command": "cds watch fiori", "request": "launch", - "type": "node", - "runtimeExecutable": "npx", - "runtimeArgs": ["-n"], - "args": ["--", "cds", "run", "--with-mocks", "--in-memory?"], - "console": "integratedTerminal", + "type": "node-terminal", "skipFiles": ["/**"] } ], diff --git a/package.json b/package.json index f29d83fa..41936c96 100644 --- a/package.json +++ b/package.json @@ -19,6 +19,8 @@ "sqlite3": "^4" }, "scripts": { + "bookshop": "cds watch bookshop", + "fiori": "cds watch fiori", "mocha": "npx mocha || echo", "jest": "npx jest --verbose", "test": "npm run jest -s"