@sap-ux/ui5-application-inquirer 0.7.1 → 0.7.3
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.
|
@@ -32,13 +32,15 @@ function validateAppName(appName, targetDir) {
|
|
|
32
32
|
* @returns true, if not Fiori Project, or string message indicating that the path contains a Fiori project.
|
|
33
33
|
*/
|
|
34
34
|
async function validateFioriAppProjectFolder(targetDir) {
|
|
35
|
+
// Check if the target directory contains a CAP project
|
|
36
|
+
if (!!(await (0, project_access_1.findCapProjectRoot)(targetDir, false)) || !!(await (0, project_access_1.getCapProjectType)(targetDir))) {
|
|
37
|
+
return (0, i18n_1.t)('validators.folderContainsCapApp');
|
|
38
|
+
}
|
|
39
|
+
// Check if the target directory contains a Fiori project
|
|
35
40
|
const appRoot = await (0, project_access_1.findRootsForPath)(targetDir);
|
|
36
41
|
if (appRoot) {
|
|
37
42
|
return (0, i18n_1.t)('validators.folderContainsFioriApp', { path: appRoot.appRoot });
|
|
38
43
|
}
|
|
39
|
-
if (await (0, project_access_1.isPathForCapApp)(targetDir)) {
|
|
40
|
-
return (0, i18n_1.t)('validators.folderContainsCapApp');
|
|
41
|
-
}
|
|
42
44
|
else {
|
|
43
45
|
return true;
|
|
44
46
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sap-ux/ui5-application-inquirer",
|
|
3
3
|
"description": "Prompts module that can prompt users for inputs required for UI5 application writing",
|
|
4
|
-
"version": "0.7.
|
|
4
|
+
"version": "0.7.3",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/SAP/open-ux-tools.git",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"lodash": "4.17.21",
|
|
25
25
|
"semver": "7.5.4",
|
|
26
26
|
"@sap-ux/inquirer-common": "0.4.6",
|
|
27
|
-
"@sap-ux/project-access": "1.
|
|
27
|
+
"@sap-ux/project-access": "1.28.1",
|
|
28
28
|
"@sap-ux/project-input-validator": "0.3.3",
|
|
29
29
|
"@sap-ux/ui5-info": "0.8.1"
|
|
30
30
|
},
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"@types/lodash": "4.14.202",
|
|
36
36
|
"@types/semver": "7.5.4",
|
|
37
37
|
"inquirer": "8.2.6",
|
|
38
|
-
"@sap-ux/cap-config-writer": "0.7.
|
|
38
|
+
"@sap-ux/cap-config-writer": "0.7.48"
|
|
39
39
|
},
|
|
40
40
|
"engines": {
|
|
41
41
|
"node": ">=18.x"
|