cds-plugin-ui5 0.1.5 → 0.1.6

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
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [0.1.6](https://github.com/ui5-community/ui5-ecosystem-showcase/compare/cds-plugin-ui5@0.1.5...cds-plugin-ui5@0.1.6) (2023-07-11)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * support single app in ./app ([#763](https://github.com/ui5-community/ui5-ecosystem-showcase/issues/763)) ([8642de6](https://github.com/ui5-community/ui5-ecosystem-showcase/commit/8642de6695efd49bc0e1b4e907497a82241bc90d))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [0.1.5](https://github.com/ui5-community/ui5-ecosystem-showcase/compare/cds-plugin-ui5@0.1.4...cds-plugin-ui5@0.1.5) (2023-07-01)
7
18
 
8
19
 
package/cds-plugin.js CHANGED
@@ -47,6 +47,14 @@ cds.on("bootstrap", async function bootstrap(app) {
47
47
  }
48
48
  });
49
49
 
50
+ // look for a single app if no apps were found in the app directories
51
+ if(appDirs.length === 0) {
52
+ const d = path.join(process.cwd(), "app");
53
+ if (fs.existsSync(path.join(d, "ui5.yaml"))) {
54
+ appDirs.push(d);
55
+ }
56
+ }
57
+
50
58
  // lookup the UI5 dependencies
51
59
  const pkgJson = require(path.join(process.cwd(), "package.json"));
52
60
  const deps = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cds-plugin-ui5",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "description": "A CAP server cds-plugin to inject the middlewares of all related UI5 tooling based projects.",
5
5
  "author": "Peter Muessig",
6
6
  "license": "Apache-2.0",
@@ -24,5 +24,5 @@
24
24
  "@sap/cds": ">=6.8.2",
25
25
  "express": ">=4.18.2"
26
26
  },
27
- "gitHead": "45cf9d0a37a56836cc4771ecf1f8ef7bff03f9c5"
27
+ "gitHead": "1e2a9fb8a38787abd2b2c03d6f9e0536ccdefa69"
28
28
  }