Skip to content

Commit c9d6b2a

Browse files
authored
remove cds-dk installation from build script of db (#184)
This PR removes the @sap/cds-dk installation from the build script in db/package.json. Now, the build script relies on a previous local installation of the cds-dk, e.g. done with a maven build. Or a globally installed cds-dk version is used. The mbt build works fine, because first the srv module is built, then the db module.
1 parent 7e8b302 commit c9d6b2a

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

db/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
},
99
"scripts": {
1010
"start": "node node_modules/@sap/hdi-deploy/deploy.js",
11-
"build": "npm i && npx -p @sap/cds-dk@^6 cds build .. --for hana --production"
11+
"build": "npm i && npx cds build .. --for hana --production"
1212
}
1313
}

mta-single-tenant.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ modules:
4040
builder: custom
4141
commands:
4242
- npm run build
43+
requires:
44+
- name: bookshop-srv
4345
requires:
4446
- name: bookshop-hdi-container
4547
# --------------------- APPROUTER MODULE ---------------------

0 commit comments

Comments
 (0)