cds-plugin-ui5 0.2.2 → 0.3.0
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 +19 -0
- package/lib/findUI5Modules.js +15 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,25 @@
|
|
|
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.3.0](https://github.com/ui5-community/ui5-ecosystem-showcase/compare/cds-plugin-ui5@0.2.3...cds-plugin-ui5@0.3.0) (2023-08-17)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* include moduleId in return value to increase reuseability of fu… ([#796](https://github.com/ui5-community/ui5-ecosystem-showcase/issues/796)) ([ae69ed4](https://github.com/ui5-community/ui5-ecosystem-showcase/commit/ae69ed44070f72b0460893904729b49cf4341ffe))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [0.2.3](https://github.com/ui5-community/ui5-ecosystem-showcase/compare/cds-plugin-ui5@0.2.2...cds-plugin-ui5@0.2.3) (2023-08-12)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package cds-plugin-ui5
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
## [0.2.2](https://github.com/ui5-community/ui5-ecosystem-showcase/compare/cds-plugin-ui5@0.2.1...cds-plugin-ui5@0.2.2) (2023-08-09)
|
|
7
26
|
|
|
8
27
|
|
package/lib/findUI5Modules.js
CHANGED
|
@@ -112,7 +112,21 @@ module.exports = async function findUI5Modules({ cwd, skipLocalApps, skipDeps })
|
|
|
112
112
|
|
|
113
113
|
// determine the module path based on the location of the ui5.yaml
|
|
114
114
|
const modulePath = path.dirname(ui5YamlPath);
|
|
115
|
-
|
|
115
|
+
|
|
116
|
+
// manually get the module name as defined in package.json
|
|
117
|
+
// skipDeps is only true if we are looking for UI5 apps inside a CAP server project
|
|
118
|
+
// in all other cases the module name equals the appDir
|
|
119
|
+
let moduleName;
|
|
120
|
+
if (skipDeps) {
|
|
121
|
+
const packageJsonPath = require.resolve(path.join(appDir, "package.json"), {
|
|
122
|
+
paths: [cwd],
|
|
123
|
+
});
|
|
124
|
+
const packageJsonContent = fs.readFileSync(packageJsonPath, "utf-8");
|
|
125
|
+
moduleName = JSON.parse(packageJsonContent).name;
|
|
126
|
+
}
|
|
127
|
+
const moduleId = moduleName || appDir;
|
|
128
|
+
|
|
129
|
+
apps.push({ moduleId, modulePath, mountPath });
|
|
116
130
|
}
|
|
117
131
|
}
|
|
118
132
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cds-plugin-ui5",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
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",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"@ui5/fs": "^3.0.4",
|
|
14
|
-
"@ui5/project": "^3.
|
|
14
|
+
"@ui5/project": "^3.5.0",
|
|
15
15
|
"@ui5/server": "^3.1.3",
|
|
16
16
|
"js-yaml": "^4.1.0",
|
|
17
17
|
"node-html-parser": "^6.1.5"
|
|
@@ -24,5 +24,5 @@
|
|
|
24
24
|
"@sap/cds": ">=6.8.2",
|
|
25
25
|
"express": ">=4.18.2"
|
|
26
26
|
},
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "67e4ae6ca95c267dbc4472a916b84dd1c3f0ad0b"
|
|
28
28
|
}
|