From 3706ff4763d3b4e48f38034dc12de2efde1882f8 Mon Sep 17 00:00:00 2001 From: i750416 Date: Thu, 11 Jun 2026 14:41:35 +0530 Subject: [PATCH] Update CreateCAPProject notebook for CDS 9.x - Use `cds init --add nodejs` to generate a proper package.json with @sap/cds as a declared dependency instead of relying on global install - Add `npm install` step after init - Fix conversation CSV filename to match CDS 9.x naming convention: sap.capire.incidents-Incidents.conversation.csv (was -conversation.csv) --- documentation/notebooks/CreateCAPProject.capnb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/documentation/notebooks/CreateCAPProject.capnb b/documentation/notebooks/CreateCAPProject.capnb index eec8f5e..6e60e98 100644 --- a/documentation/notebooks/CreateCAPProject.capnb +++ b/documentation/notebooks/CreateCAPProject.capnb @@ -14,7 +14,7 @@ { "kind": 2, "language": "shell", - "value": "rm -rf incident-management\ncds init incident-management\ncd incident-management", + "value": "rm -rf incident-management\ncds init incident-management --add nodejs\ncd incident-management\nnpm install", "outputs": [] }, { @@ -74,7 +74,7 @@ { "kind": 2, "language": "shell", - "value": "%%writefile \"db/data/sap.capire.incidents-conversation.csv\"\nID,up__ID,timestamp,author,message\n2b23bb4b-4ac7-4a24-ac02-aa10cabd842c,3b23bb4b-4ac7-4a24-ac02-aa10cabd842c,1995-12-17T03:24:00Z,Harry John,Can you please check if battery connections are fine?\n2b23bb4b-4ac7-4a24-ac02-aa10cabd843c,3a4ede72-244a-4f5f-8efa-b17e032d01ee,1995-12-18T04:24:00Z,Emily Elizabeth,Can you please check if there are any loose connections?\n9583f982-d7df-4aad-ab26-301d4a157cd7,3583f982-d7df-4aad-ab26-301d4a157cd7,2022-09-04T12:00:00Z,Sunny Sunshine,Please check why the solar panel is broken\n9583f982-d7df-4aad-ab26-301d4a158cd7,3ccf474c-3881-44b7-99fb-59a2a4668418,2022-09-04T13:00:00Z,Bradley Flowers,What exactly is wrong?", + "value": "%%writefile \"db/data/sap.capire.incidents-Incidents.conversation.csv\"\nID,up__ID,timestamp,author,message\n2b23bb4b-4ac7-4a24-ac02-aa10cabd842c,3b23bb4b-4ac7-4a24-ac02-aa10cabd842c,1995-12-17T03:24:00Z,Harry John,Can you please check if battery connections are fine?\n2b23bb4b-4ac7-4a24-ac02-aa10cabd843c,3a4ede72-244a-4f5f-8efa-b17e032d01ee,1995-12-18T04:24:00Z,Emily Elizabeth,Can you please check if there are any loose connections?\n9583f982-d7df-4aad-ab26-301d4a157cd7,3583f982-d7df-4aad-ab26-301d4a157cd7,2022-09-04T12:00:00Z,Sunny Sunshine,Please check why the solar panel is broken\n9583f982-d7df-4aad-ab26-301d4a158cd7,3ccf474c-3881-44b7-99fb-59a2a4668418,2022-09-04T13:00:00Z,Bradley Flowers,What exactly is wrong?", "outputs": [] }, {