diff --git a/mtx/sidecar/package.json b/mtx/sidecar/package.json new file mode 100644 index 0000000..4132737 --- /dev/null +++ b/mtx/sidecar/package.json @@ -0,0 +1,19 @@ +{ + "name": "incidents-mtx", + "dependencies": { + "@sap/cds": "^7", + "@sap/cds-hana": "^2", + "@sap/cds-mtxs": "^1.9", + "@sap/xssec": "^3", + "express": "^4" + }, + "devDependencies": { + "@cap-js/sqlite": "^1" + }, + "scripts": { + "start": "cds-serve" + }, + "cds": { + "profile": "mtx-sidecar" + } +} diff --git a/package.json b/package.json index 4ec734d..9bb781f 100644 --- a/package.json +++ b/package.json @@ -13,6 +13,7 @@ }, "dependencies": { "@sap/cds": ">=7", + "@sap/cds-mtxs": "^1.9", "express": "^4" }, "devDependencies": { @@ -39,7 +40,9 @@ "reset": "read -p 'This will irreversibly reset your working directory including ALL files in this git repo. Continue?' -n 1 -r && echo && if [[ $REPLY =~ ^[Yy]$ ]]; then git clean -fd && git reset --hard && npm i; fi" }, "jest": { - "modulePathIgnorePatterns": ["/xmpls/"] + "modulePathIgnorePatterns": [ + "/xmpls/" + ] }, "sapux": [ "app/incidents" @@ -52,7 +55,8 @@ "alice": { "roles": [ "support", - "admin" + "admin", + "cds.Subscriber" ] }, "bob": { @@ -62,8 +66,12 @@ } } } + }, + "[local-multitenancy]": { + "multitenancy": true } - } + }, + "profile": "with-mtx-sidecar" }, "private": true }