@sap/cds-dk
Advanced tools
Comparing version 6.5.0 to 6.5.1
@@ -113,6 +113,7 @@ module.exports = Object.assign(deploy, { | ||
const { readFile, writeFile } = fs.promises | ||
const package_json = path.resolve ('package.json'), exists = isfile (package_json) | ||
const package_json = path.resolve (cds.root, 'package.json'), exists = isfile (package_json) | ||
const conf = exists ? JSON.parse (await readFile (package_json)) : {} | ||
const requires = conf.cds?.requires | ||
const { schema_evolution } = requires?.db ?? {} | ||
conf.cds?.requires || (conf.cds = {requires: {}}) | ||
const requires = conf.cds.requires | ||
const { schema_evolution } = requires.db ?? {} | ||
requires.db = cds.env.requires.db = { kind, model } | ||
@@ -122,6 +123,6 @@ if (database) requires.db.credentials = { database } | ||
if (schema_evolution) requires.db.schema_evolution = schema_evolution | ||
await writeFile (package_json, JSON.stringify(conf,null,' ')) | ||
console.log (`/> ${ exists ? 'updated' : 'created' } ./package.json`) | ||
await writeFile (package_json, JSON.stringify(conf,null,2)) | ||
console.log (`/> ${ exists ? 'updated' : 'created' } .${path.sep}package_json`) | ||
} | ||
/* eslint no-console: off */ |
@@ -10,2 +10,12 @@ | ||
## Version 6.5.1 - 2023-02-06 | ||
### Changed | ||
- `cds init` uses latest Maven Java archetype version 1.31.0 for creating Java projects. | ||
### Fixed | ||
- `cds deploy` no longer fails to write to a `package.json` file that has no `cds` section | ||
## Version 6.5.0 - 2023-01-27 | ||
@@ -12,0 +22,0 @@ |
const os = require('os'); | ||
const MAVEN_ARCHETYPE_VERSION = '1.30.1'; | ||
const MAVEN_ARCHETYPE_VERSION = '1.31.0'; | ||
@@ -5,0 +5,0 @@ const constants = { |
{ | ||
"name": "@sap/cds-dk", | ||
"version": "6.5.0", | ||
"version": "6.5.1", | ||
"description": "Command line client and development toolkit for the SAP Cloud Application Programming Model", | ||
@@ -5,0 +5,0 @@ "homepage": "https://cap.cloud.sap/", |
Sorry, the diff of this file is too big to display
SPDX disjunction
LicenseSPDX disjunction for an artifact's license information
Found 1 instance in 1 package
Non-permissive License
License(Experimental) A license not known to be considered permissive was found
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license
Found 1 instance in 1 package
SPDX disjunction
LicenseSPDX disjunction for an artifact's license information
Found 1 instance in 1 package
1492997
3
80
28595