@sap/cds-dk 7.5.1 → 7.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (74) hide show
  1. package/bin/add.js +28 -24
  2. package/bin/bind.js +59 -32
  3. package/bin/build.js +1 -1
  4. package/bin/cds.js +1 -1
  5. package/bin/env.js +1 -6
  6. package/bin/import.js +2 -2
  7. package/bin/init.js +7 -3
  8. package/bin/logout.js +2 -2
  9. package/bin/migrate.js +1 -1
  10. package/bin/version.js +1 -0
  11. package/bin/watch.js +8 -1
  12. package/lib/bind/bindingUtil.js +14 -20
  13. package/lib/bind/cfKeyProvider.js +8 -10
  14. package/lib/bind/index.js +4 -2
  15. package/lib/build/buildTaskFactory.js +31 -20
  16. package/lib/build/constants.js +9 -8
  17. package/lib/build/provider/featureToggleBuildPlugin.js +1 -7
  18. package/lib/build/provider/hana/index.js +44 -9
  19. package/lib/build/provider/internalBuildTaskProvider.js +7 -5
  20. package/lib/build/provider/java/index.js +0 -6
  21. package/lib/build/provider/mtx-sidecar/index.js +5 -0
  22. package/lib/build/provider/nodejs/index.js +32 -47
  23. package/lib/build/util.js +134 -33
  24. package/lib/deploy/to-hana/hana.js +47 -77
  25. package/lib/deploy/to-hana/hdiDeployUtil.js +15 -18
  26. package/lib/deploy/to-hana/mtaUtil.js +1 -1
  27. package/lib/env/schema.js +157 -17
  28. package/lib/env/schemas/cds-rc.js +118 -0
  29. package/lib/import/common.js +18 -23
  30. package/lib/import/odata/metadataconverter/MetadataConverter.js +12 -8
  31. package/lib/import/odata/v4parser.js +67 -12
  32. package/lib/init/constants.js +2 -4
  33. package/lib/init/merge.js +2 -1
  34. package/lib/init/template/application-logging/index.js +1 -2
  35. package/lib/init/template/approuter/files/mta.yaml.hbs +2 -0
  36. package/lib/init/template/approuter/files/package.json +1 -1
  37. package/lib/init/template/approuter/files/values.yaml.hbs +8 -1
  38. package/lib/init/template/hana/files/undeploy.json +3 -2
  39. package/lib/init/template/helm/files/chart/templates/NOTES.txt +2 -0
  40. package/lib/init/template/helm/files/chart/templates/_deployment_helpers.tpl +10 -2
  41. package/lib/init/template/helm/files/content-deployment/Chart.yaml +1 -1
  42. package/lib/init/template/helm/files/content-deployment/templates/_helpers.tpl +6 -5
  43. package/lib/init/template/helm/files/content-deployment/values.yaml +1 -1
  44. package/lib/init/template/helm/files/service-instance/Chart.yaml +1 -1
  45. package/lib/init/template/helm/files/service-instance/templates/_helpers.tpl +6 -5
  46. package/lib/init/template/helm/files/service-instance/values.yaml +1 -1
  47. package/lib/init/template/helm/files/web-application/Chart.yaml +1 -1
  48. package/lib/init/template/helm/files/web-application/templates/_api.tpl +6 -5
  49. package/lib/init/template/helm/files/web-application/values.yaml +1 -1
  50. package/lib/init/template/helm/index.js +1 -12
  51. package/lib/init/template/helm-unified-runtime/index.js +3 -2
  52. package/lib/init/template/html5-repo/files/values.yaml.hbs +9 -0
  53. package/lib/init/template/multitenancy/files/package.sidecar.json.hbs +1 -2
  54. package/lib/init/template/multitenancy/index.js +3 -2
  55. package/lib/init/template/xsuaa/files/package.json.hbs +1 -2
  56. package/lib/lint/Linter.js +2 -2
  57. package/lib/lint/checks.js +0 -51
  58. package/lib/mtx/activate.js +1 -1
  59. package/lib/mtx/auth_manager.js +50 -57
  60. package/lib/mtx/download_legacy.js +1 -1
  61. package/lib/mtx/extend.js +2 -2
  62. package/lib/mtx/pull.js +1 -1
  63. package/lib/mtx/push.js +1 -1
  64. package/lib/mtx/settings_manager.js +90 -44
  65. package/lib/mtx/tenant_action.js +1 -1
  66. package/lib/mtx/util/dependencies.js +1 -1
  67. package/lib/mtx/util/legacy_ext.js +0 -1
  68. package/lib/mtx/util/logging.js +10 -8
  69. package/lib/util/axios.js +6 -19
  70. package/lib/util/cf.js +15 -10
  71. package/npm-shrinkwrap.json +104 -48
  72. package/package.json +1 -10
  73. package/lib/env/schemas/cds-rc.json +0 -101
  74. package/lib/init/template/helm-unified-runtime/lib/build.js +0 -0
package/lib/util/cf.js CHANGED
@@ -116,7 +116,7 @@ class CfUtil {
116
116
  if (config) {
117
117
  return {
118
118
  apiEndpoint: this._extract(config.Target, /\s*(.+)\s*/, `CF API endpoint is missing. Use 'cf login' to login.`),
119
- org: this._extract(config.OrganizationFields.Name, /\s*(.+)\s*/, `CF org is missing. Use 'cf target -o <ORG> to specify.`),
119
+ org: this._extract(config.OrganizationFields.Name, /\s*(.+)\s*/, `CF org is missing. Use 'cf target -o <ORG>' to specify.`),
120
120
  space: this._extract(config.SpaceFields.Name, /\s*(.+)\s*/, `CF space is missing. Use 'cf target -s <SPACE>' to specify.`)
121
121
  }
122
122
  }
@@ -131,7 +131,7 @@ class CfUtil {
131
131
  return {
132
132
  apiEndpoint: this._extract(result.stdout, /api endpoint\s*:\s*([^\s]+)/i, `CF API endpoint is missing. Use 'cf login' to login.`),
133
133
  user: this._extract(result.stdout, /user\s*:\s*(.+)/i, `CF user is missing. Use 'cf login' to login.`),
134
- org: this._extract(result.stdout, /org\s*:\s*(.+)/i, `CF org is missing. Use 'cf target -o <ORG> to specify.`),
134
+ org: this._extract(result.stdout, /org\s*:\s*(.+)/i, `CF org is missing. Use 'cf target -o <ORG>' to specify.`),
135
135
  space: this._extract(result.stdout, /space\s*:\s*(.+)/i, `CF space is missing. Use 'cf target -s <SPACE>' to specify.`),
136
136
  };
137
137
  }
@@ -189,6 +189,14 @@ Deployment will stop in the near future for Cloud Foundry client versions < ${CF
189
189
  return this.spaceInfo;
190
190
  }
191
191
 
192
+ async getServices(app) {
193
+ const { spaceGuid: space_guids, orgGuid: organization_guids } = await this.getCfSpaceInfo();
194
+ const apps = await this._cfRequest('/v3/apps', { space_guids, organization_guids, names: app });
195
+ const guid = apps.resources[0].guid;
196
+ const env = await this._cfRequest('/v3/apps/'+guid+'/env', { space_guids, organization_guids, names: app });
197
+ return Object.values(env.system_env_json.VCAP_SERVICES).flat();
198
+ }
199
+
192
200
  async getService(serviceName, showMessage = true) {
193
201
  showMessage && console.log(`Getting service ${bold(serviceName)}`);
194
202
  const spaceInfo = await this.getCfSpaceInfo();
@@ -323,15 +331,14 @@ Deployment will stop in the near future for Cloud Foundry client versions < ${CF
323
331
  }
324
332
 
325
333
 
326
- async getOrCreateServiceKey(serviceInstance, serviceKeyName) {
327
-
334
+ async getOrCreateServiceKey(serviceInstance, serviceKeyName, parameters, { silent = false, create = true } = {}) {
328
335
  const serviceKey = await this.getServiceKey(serviceInstance, serviceKeyName, false);
329
- if (serviceKey) {
330
- console.log(`Getting service key ${bold(serviceKeyName)}`);
336
+ if (serviceKey || !create) {
337
+ if (serviceKey && !silent) console.log(`Getting service key ${bold(serviceKeyName)}`);
331
338
  return serviceKey;
332
339
  }
333
340
 
334
- console.log(`Creating service key ${bold(serviceKeyName)} - please be patient...`);
341
+ if (!silent) console.log(`Creating service key ${bold(serviceKeyName)} - please be patient...`);
335
342
 
336
343
  const body = {
337
344
  type: 'key',
@@ -343,9 +350,7 @@ Deployment will stop in the near future for Cloud Foundry client versions < ${CF
343
350
  }
344
351
  }
345
352
  },
346
- parameters: {
347
- permissions: 'development'
348
- }
353
+ parameters
349
354
  }
350
355
 
351
356
  const postResult = await this._cfRequest('/v3/service_credential_bindings', undefined, body);
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@sap/cds-dk",
3
- "version": "7.5.1",
3
+ "version": "7.6.1",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@sap/cds-dk",
9
- "version": "7.5.1",
9
+ "version": "7.6.1",
10
10
  "license": "SEE LICENSE IN LICENSE",
11
11
  "dependencies": {
12
12
  "@sap/cds": "^7",
@@ -40,7 +40,7 @@
40
40
  }
41
41
  },
42
42
  "node_modules/@cap-js/cds-types": {
43
- "version": "0.1.0",
43
+ "version": "0.2.0",
44
44
  "license": "SEE LICENSE IN LICENSE",
45
45
  "peerDependencies": {
46
46
  "@sap/cds": ">=7"
@@ -100,11 +100,11 @@
100
100
  "optional": true
101
101
  },
102
102
  "node_modules/@humanwhocodes/config-array": {
103
- "version": "0.11.13",
103
+ "version": "0.11.14",
104
104
  "license": "Apache-2.0",
105
105
  "dependencies": {
106
- "@humanwhocodes/object-schema": "^2.0.1",
107
- "debug": "^4.1.1",
106
+ "@humanwhocodes/object-schema": "^2.0.2",
107
+ "debug": "^4.3.1",
108
108
  "minimatch": "^3.0.5"
109
109
  },
110
110
  "engines": {
@@ -123,7 +123,7 @@
123
123
  }
124
124
  },
125
125
  "node_modules/@humanwhocodes/object-schema": {
126
- "version": "2.0.1",
126
+ "version": "2.0.2",
127
127
  "license": "BSD-3-Clause"
128
128
  },
129
129
  "node_modules/@nodelib/fs.scandir": {
@@ -177,7 +177,7 @@
177
177
  }
178
178
  },
179
179
  "node_modules/@sap/cds": {
180
- "version": "7.5.2",
180
+ "version": "7.6.3",
181
181
  "license": "SEE LICENSE IN LICENSE",
182
182
  "dependencies": {
183
183
  "@cap-js/cds-types": "<1",
@@ -194,7 +194,7 @@
194
194
  }
195
195
  },
196
196
  "node_modules/@sap/cds-compiler": {
197
- "version": "4.5.0",
197
+ "version": "4.6.2",
198
198
  "license": "SEE LICENSE IN LICENSE",
199
199
  "dependencies": {
200
200
  "antlr4": "4.9.3"
@@ -230,7 +230,7 @@
230
230
  }
231
231
  },
232
232
  "node_modules/@sap/cds-mtxs": {
233
- "version": "1.14.2",
233
+ "version": "1.15.0",
234
234
  "license": "SEE LICENSE IN LICENSE",
235
235
  "dependencies": {
236
236
  "@sap/hdi-deploy": "^4",
@@ -242,7 +242,7 @@
242
242
  }
243
243
  },
244
244
  "node_modules/@sap/eslint-plugin-cds": {
245
- "version": "2.6.4",
245
+ "version": "2.6.5",
246
246
  "license": "See LICENSE file",
247
247
  "dependencies": {
248
248
  "@sap/cds": ">=5.6.0",
@@ -256,12 +256,12 @@
256
256
  }
257
257
  },
258
258
  "node_modules/@sap/hdi-deploy": {
259
- "version": "4.9.1",
259
+ "version": "4.9.2",
260
260
  "license": "See LICENSE file",
261
261
  "dependencies": {
262
- "@sap/hana-client": "2.19.18",
262
+ "@sap/hana-client": "2.19.21",
263
263
  "@sap/hdi": "4.5.2",
264
- "@sap/xsenv": "3.4.0",
264
+ "@sap/xsenv": "4.2.0",
265
265
  "async": "3.2.3",
266
266
  "dotenv": "10.0.0",
267
267
  "handlebars": "4.7.7",
@@ -273,7 +273,7 @@
273
273
  }
274
274
  },
275
275
  "node_modules/@sap/hdi-deploy/node_modules/@sap/hana-client": {
276
- "version": "2.19.18",
276
+ "version": "2.19.21",
277
277
  "hasInstallScript": true,
278
278
  "license": "SEE LICENSE IN developer-license-3_1.txt",
279
279
  "dependencies": {
@@ -317,7 +317,7 @@
317
317
  }
318
318
  },
319
319
  "node_modules/@sap/hdi-deploy/node_modules/@sap/xsenv": {
320
- "version": "3.4.0",
320
+ "version": "4.2.0",
321
321
  "license": "SEE LICENSE IN LICENSE file",
322
322
  "dependencies": {
323
323
  "debug": "4.3.3",
@@ -325,7 +325,7 @@
325
325
  "verror": "1.10.0"
326
326
  },
327
327
  "engines": {
328
- "node": "^10.0.0 || ^12.0.0 || ^14.0.0 || ^16.0.0 || ^18.0.0"
328
+ "node": "^12.0.0 || ^14.0.0 || ^16.0.0 || ^18.0.0 || ^20.0.0"
329
329
  }
330
330
  },
331
331
  "node_modules/@sap/hdi-deploy/node_modules/@sap/xsenv/node_modules/assert-plus": {
@@ -689,7 +689,7 @@
689
689
  "license": "MIT"
690
690
  },
691
691
  "node_modules/axios": {
692
- "version": "1.6.5",
692
+ "version": "1.6.7",
693
693
  "license": "MIT",
694
694
  "dependencies": {
695
695
  "follow-redirects": "^1.15.4",
@@ -876,12 +876,17 @@
876
876
  "optional": true
877
877
  },
878
878
  "node_modules/call-bind": {
879
- "version": "1.0.5",
879
+ "version": "1.0.7",
880
880
  "license": "MIT",
881
881
  "dependencies": {
882
+ "es-define-property": "^1.0.0",
883
+ "es-errors": "^1.3.0",
882
884
  "function-bind": "^1.1.2",
883
- "get-intrinsic": "^1.2.1",
884
- "set-function-length": "^1.1.1"
885
+ "get-intrinsic": "^1.2.4",
886
+ "set-function-length": "^1.2.1"
887
+ },
888
+ "engines": {
889
+ "node": ">= 0.4"
885
890
  },
886
891
  "funding": {
887
892
  "url": "https://github.com/sponsors/ljharb"
@@ -1047,15 +1052,19 @@
1047
1052
  "license": "MIT"
1048
1053
  },
1049
1054
  "node_modules/define-data-property": {
1050
- "version": "1.1.1",
1055
+ "version": "1.1.3",
1051
1056
  "license": "MIT",
1052
1057
  "dependencies": {
1053
- "get-intrinsic": "^1.2.1",
1058
+ "es-errors": "^1.3.0",
1059
+ "get-intrinsic": "^1.2.4",
1054
1060
  "gopd": "^1.0.1",
1055
- "has-property-descriptors": "^1.0.0"
1061
+ "has-property-descriptors": "^1.0.1"
1056
1062
  },
1057
1063
  "engines": {
1058
1064
  "node": ">= 0.4"
1065
+ },
1066
+ "funding": {
1067
+ "url": "https://github.com/sponsors/ljharb"
1059
1068
  }
1060
1069
  },
1061
1070
  "node_modules/delayed-stream": {
@@ -1159,6 +1168,23 @@
1159
1168
  "license": "MIT",
1160
1169
  "optional": true
1161
1170
  },
1171
+ "node_modules/es-define-property": {
1172
+ "version": "1.0.0",
1173
+ "license": "MIT",
1174
+ "dependencies": {
1175
+ "get-intrinsic": "^1.2.4"
1176
+ },
1177
+ "engines": {
1178
+ "node": ">= 0.4"
1179
+ }
1180
+ },
1181
+ "node_modules/es-errors": {
1182
+ "version": "1.3.0",
1183
+ "license": "MIT",
1184
+ "engines": {
1185
+ "node": ">= 0.4"
1186
+ }
1187
+ },
1162
1188
  "node_modules/escape-html": {
1163
1189
  "version": "1.0.3",
1164
1190
  "license": "MIT"
@@ -1378,7 +1404,7 @@
1378
1404
  "license": "MIT"
1379
1405
  },
1380
1406
  "node_modules/fastq": {
1381
- "version": "1.16.0",
1407
+ "version": "1.17.1",
1382
1408
  "license": "ISC",
1383
1409
  "dependencies": {
1384
1410
  "reusify": "^1.0.4"
@@ -1468,7 +1494,7 @@
1468
1494
  "license": "ISC"
1469
1495
  },
1470
1496
  "node_modules/follow-redirects": {
1471
- "version": "1.15.4",
1497
+ "version": "1.15.5",
1472
1498
  "funding": [
1473
1499
  {
1474
1500
  "type": "individual",
@@ -1564,14 +1590,18 @@
1564
1590
  }
1565
1591
  },
1566
1592
  "node_modules/get-intrinsic": {
1567
- "version": "1.2.2",
1593
+ "version": "1.2.4",
1568
1594
  "license": "MIT",
1569
1595
  "dependencies": {
1596
+ "es-errors": "^1.3.0",
1570
1597
  "function-bind": "^1.1.2",
1571
1598
  "has-proto": "^1.0.1",
1572
1599
  "has-symbols": "^1.0.3",
1573
1600
  "hasown": "^2.0.0"
1574
1601
  },
1602
+ "engines": {
1603
+ "node": ">= 0.4"
1604
+ },
1575
1605
  "funding": {
1576
1606
  "url": "https://github.com/sponsors/ljharb"
1577
1607
  }
@@ -1649,10 +1679,10 @@
1649
1679
  }
1650
1680
  },
1651
1681
  "node_modules/has-property-descriptors": {
1652
- "version": "1.0.1",
1682
+ "version": "1.0.2",
1653
1683
  "license": "MIT",
1654
1684
  "dependencies": {
1655
- "get-intrinsic": "^1.2.2"
1685
+ "es-define-property": "^1.0.0"
1656
1686
  },
1657
1687
  "funding": {
1658
1688
  "url": "https://github.com/sponsors/ljharb"
@@ -1684,7 +1714,7 @@
1684
1714
  "optional": true
1685
1715
  },
1686
1716
  "node_modules/hasown": {
1687
- "version": "2.0.0",
1717
+ "version": "2.0.1",
1688
1718
  "license": "MIT",
1689
1719
  "dependencies": {
1690
1720
  "function-bind": "^1.1.2"
@@ -1775,7 +1805,7 @@
1775
1805
  "optional": true
1776
1806
  },
1777
1807
  "node_modules/ignore": {
1778
- "version": "5.3.0",
1808
+ "version": "5.3.1",
1779
1809
  "license": "MIT",
1780
1810
  "engines": {
1781
1811
  "node": ">= 4"
@@ -1832,10 +1862,17 @@
1832
1862
  "license": "ISC",
1833
1863
  "optional": true
1834
1864
  },
1835
- "node_modules/ip": {
1836
- "version": "2.0.0",
1865
+ "node_modules/ip-address": {
1866
+ "version": "9.0.5",
1837
1867
  "license": "MIT",
1838
- "optional": true
1868
+ "optional": true,
1869
+ "dependencies": {
1870
+ "jsbn": "1.1.0",
1871
+ "sprintf-js": "^1.1.3"
1872
+ },
1873
+ "engines": {
1874
+ "node": ">= 12"
1875
+ }
1839
1876
  },
1840
1877
  "node_modules/ipaddr.js": {
1841
1878
  "version": "1.9.1",
@@ -1903,6 +1940,11 @@
1903
1940
  "js-yaml": "bin/js-yaml.js"
1904
1941
  }
1905
1942
  },
1943
+ "node_modules/jsbn": {
1944
+ "version": "1.1.0",
1945
+ "license": "MIT",
1946
+ "optional": true
1947
+ },
1906
1948
  "node_modules/json-buffer": {
1907
1949
  "version": "3.0.1",
1908
1950
  "license": "MIT"
@@ -2230,9 +2272,12 @@
2230
2272
  }
2231
2273
  },
2232
2274
  "node_modules/node-addon-api": {
2233
- "version": "7.0.0",
2275
+ "version": "7.1.0",
2234
2276
  "license": "MIT",
2235
- "optional": true
2277
+ "optional": true,
2278
+ "engines": {
2279
+ "node": "^16 || ^18 || >= 20"
2280
+ }
2236
2281
  },
2237
2282
  "node_modules/node-gyp": {
2238
2283
  "version": "8.4.1",
@@ -2681,7 +2726,7 @@
2681
2726
  "license": "ISC"
2682
2727
  },
2683
2728
  "node_modules/semver": {
2684
- "version": "7.5.4",
2729
+ "version": "7.6.0",
2685
2730
  "license": "ISC",
2686
2731
  "dependencies": {
2687
2732
  "lru-cache": "^6.0.0"
@@ -2763,13 +2808,15 @@
2763
2808
  "optional": true
2764
2809
  },
2765
2810
  "node_modules/set-function-length": {
2766
- "version": "1.1.1",
2811
+ "version": "1.2.1",
2767
2812
  "license": "MIT",
2768
2813
  "dependencies": {
2769
- "define-data-property": "^1.1.1",
2770
- "get-intrinsic": "^1.2.1",
2814
+ "define-data-property": "^1.1.2",
2815
+ "es-errors": "^1.3.0",
2816
+ "function-bind": "^1.1.2",
2817
+ "get-intrinsic": "^1.2.3",
2771
2818
  "gopd": "^1.0.1",
2772
- "has-property-descriptors": "^1.0.0"
2819
+ "has-property-descriptors": "^1.0.1"
2773
2820
  },
2774
2821
  "engines": {
2775
2822
  "node": ">= 0.4"
@@ -2797,12 +2844,16 @@
2797
2844
  }
2798
2845
  },
2799
2846
  "node_modules/side-channel": {
2800
- "version": "1.0.4",
2847
+ "version": "1.0.5",
2801
2848
  "license": "MIT",
2802
2849
  "dependencies": {
2803
- "call-bind": "^1.0.0",
2804
- "get-intrinsic": "^1.0.2",
2805
- "object-inspect": "^1.9.0"
2850
+ "call-bind": "^1.0.6",
2851
+ "es-errors": "^1.3.0",
2852
+ "get-intrinsic": "^1.2.4",
2853
+ "object-inspect": "^1.13.1"
2854
+ },
2855
+ "engines": {
2856
+ "node": ">= 0.4"
2806
2857
  },
2807
2858
  "funding": {
2808
2859
  "url": "https://github.com/sponsors/ljharb"
@@ -2866,15 +2917,15 @@
2866
2917
  }
2867
2918
  },
2868
2919
  "node_modules/socks": {
2869
- "version": "2.7.1",
2920
+ "version": "2.7.3",
2870
2921
  "license": "MIT",
2871
2922
  "optional": true,
2872
2923
  "dependencies": {
2873
- "ip": "^2.0.0",
2924
+ "ip-address": "^9.0.5",
2874
2925
  "smart-buffer": "^4.2.0"
2875
2926
  },
2876
2927
  "engines": {
2877
- "node": ">= 10.13.0",
2928
+ "node": ">= 10.0.0",
2878
2929
  "npm": ">= 3.0.0"
2879
2930
  }
2880
2931
  },
@@ -2891,6 +2942,11 @@
2891
2942
  "node": ">= 10"
2892
2943
  }
2893
2944
  },
2945
+ "node_modules/sprintf-js": {
2946
+ "version": "1.1.3",
2947
+ "license": "BSD-3-Clause",
2948
+ "optional": true
2949
+ },
2894
2950
  "node_modules/sqlite3": {
2895
2951
  "version": "5.1.7",
2896
2952
  "hasInstallScript": true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sap/cds-dk",
3
- "version": "7.5.1",
3
+ "version": "7.6.1",
4
4
  "description": "Command line client and development toolkit for the SAP Cloud Application Programming Model",
5
5
  "homepage": "https://cap.cloud.sap/",
6
6
  "keywords": [
@@ -40,14 +40,5 @@
40
40
  "npm-shrinkwrap.json",
41
41
  "LICENSE"
42
42
  ],
43
- "overrides": {
44
- "sqlite3": {
45
- "@mapbox/node-pre-gyp": {
46
- "make-dir": {
47
- "semver": "^7"
48
- }
49
- }
50
- }
51
- },
52
43
  "_hasShrinkwrap": true
53
44
  }
@@ -1,101 +0,0 @@
1
- {
2
- "title": "JSON schema for CDS-DK configuration",
3
- "$schema": "https://json-schema.org/draft/2020-12/schema",
4
- "description": "This is a JSON schema representation for CDS project configuration",
5
- "type": "object",
6
- "additionalProperties": true,
7
- "properties": {
8
- "build": {
9
- "type": "object",
10
- "description": "Customize CDS build settings.",
11
- "additionalProperties": true,
12
- "properties": {
13
- "target": {
14
- "type": "string",
15
- "description": "Specify the folder which contains generated build results. Defaults to './gen'.",
16
- "format": "uri-reference"
17
- },
18
- "tasks": {
19
- "type": "array",
20
- "description": "Control which tasks 'cds build' will execute on your project modules. This is a typical task configuration: '\"tasks\": [{ \"for\": \"hana\"}];",
21
- "uniqueItems": true,
22
- "default": [
23
- {}
24
- ],
25
- "items": {
26
- "type": "object",
27
- "additionalProperties": true,
28
- "properties": {
29
- "dest": {
30
- "type": "string",
31
- "description": "Optional: Define the destination folder for this build task, relative to build target folder. \nFor example: Destination defined as 'custom' results in an output written to 'gen/custom'.",
32
- "format": "uri-reference"
33
- },
34
- "src": {
35
- "type": "string",
36
- "description": "Optional: Prefer defining 'cds.folders'. Use 'src' if you want it only to be valid for this specific build task, which excludes, for example, 'cds watch'.",
37
- "format": "uri-reference"
38
- },
39
- "for": {
40
- "type": "string",
41
- "description": "Define the target technology for this build task.",
42
- "minLength": 1,
43
- "enum": [
44
- "nodejs",
45
- "java",
46
- "hana",
47
- "mtx-sidecar",
48
- "mtx-extension",
49
- "mtx",
50
- "fiori",
51
- "node-cf",
52
- "java-cf"
53
- ]
54
- },
55
- "options": {
56
- "type": "object",
57
- "description": "Optional: Set target technology specific options for this build task.",
58
- "additionalProperties": true,
59
- "properties": {
60
- "model": {
61
- "$ref": "#/$defs/foldersStringArray"
62
- }
63
- }
64
- }
65
- }
66
- }
67
- }
68
- }
69
- },
70
- "deploy": {
71
- "type": "object",
72
- "description": "Customize 'cds deploy' settings.",
73
- "additionalProperties": true,
74
- "properties": {
75
- "no_save": {
76
- "type": "boolean",
77
- "description": "Do / don't update configuration in package.json.",
78
- "default": true
79
- }
80
- }
81
- }
82
- },
83
- "$defs": {
84
- "foldersStringArray": {
85
- "oneOf": [
86
- {
87
- "type": "string",
88
- "format": "uri-reference"
89
- },
90
- {
91
- "type": "array",
92
- "uniqueItems": true,
93
- "items": {
94
- "type": "string",
95
- "format": "uri-reference"
96
- }
97
- }
98
- ]
99
- }
100
- }
101
- }