@sap-ux/project-access 1.16.2 → 1.16.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.
- package/dist/project/search.js +10 -8
- package/package.json +1 -1
package/dist/project/search.js
CHANGED
|
@@ -176,20 +176,22 @@ function findRootsForPath(path) {
|
|
|
176
176
|
// in root -> not supported
|
|
177
177
|
return null;
|
|
178
178
|
}
|
|
179
|
-
//
|
|
180
|
-
|
|
181
|
-
|
|
179
|
+
// Check if app is included in CAP project
|
|
180
|
+
const projectRoot = yield findCapProjectRoot(appRoot);
|
|
181
|
+
if (projectRoot) {
|
|
182
|
+
// App included in CAP
|
|
182
183
|
return {
|
|
183
184
|
appRoot,
|
|
184
|
-
projectRoot
|
|
185
|
+
projectRoot
|
|
185
186
|
};
|
|
186
187
|
}
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
188
|
+
else if (
|
|
189
|
+
// Check for freestyle non CAP
|
|
190
|
+
(yield (0, file_1.fileExists)((0, path_1.join)(appRoot, constants_1.FileName.Ui5LocalYaml))) &&
|
|
191
|
+
(0, dependencies_1.hasDependency)(appPckJson, '@sap/ux-ui5-tooling')) {
|
|
190
192
|
return {
|
|
191
193
|
appRoot,
|
|
192
|
-
projectRoot
|
|
194
|
+
projectRoot: appRoot
|
|
193
195
|
};
|
|
194
196
|
}
|
|
195
197
|
}
|