@sap/cds-dk 6.6.1 → 6.6.2

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.
package/CHANGELOG.md CHANGED
@@ -7,6 +7,14 @@ This project adheres to [Semantic Versioning](http://semver.org/).
7
7
 
8
8
  The format is based on [Keep a Changelog](http://keepachangelog.com/).
9
9
 
10
+ ## Version 6.6.2 - 2023-03-22
11
+
12
+ ### Fixed
13
+
14
+ - Bump `sqlite3` to 5.1.6
15
+ - Bump `@sap/cds` to 6.2.2
16
+ - `cds init` creates project sample files correctly.
17
+
10
18
  ## Version 6.6.1 - 2023-03-09
11
19
 
12
20
  ### Added
package/lib/init/index.js CHANGED
@@ -24,6 +24,8 @@ module.exports = class CDSGenerator {
24
24
  target: 'projectName',
25
25
  validate: async (value) => {
26
26
  try {
27
+ cds.root = path.resolve(this.cwd, value || '.');
28
+
27
29
  await this._validateProjectName(value);
28
30
  await this._validateProjectFolder(path.join(this.cwd, value), this.cwd);
29
31
 
@@ -36,7 +36,7 @@ module.exports = new class ProjectReader {
36
36
  }
37
37
 
38
38
  async readProject(options) {
39
- if (options?.cwd) cds.root = options.cwd
39
+ // if (options?.cwd) cds.root = options.cwd
40
40
 
41
41
  const env = this.getEnv()
42
42
  DEBUG && DEBUG({ env })