@sap-ux/project-access 1.5.0 → 1.6.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/dist/project/cap.js
CHANGED
|
@@ -122,7 +122,8 @@ exports.getCapModelAndServices = getCapModelAndServices;
|
|
|
122
122
|
*/
|
|
123
123
|
function getCapEnvironment(capProjectPath) {
|
|
124
124
|
return __awaiter(this, void 0, void 0, function* () {
|
|
125
|
-
const
|
|
125
|
+
const module = yield (0, module_loader_1.loadModuleFromProject)(capProjectPath, '@sap/cds');
|
|
126
|
+
const cds = 'default' in module ? module.default : module;
|
|
126
127
|
return cds.env.for('cds', capProjectPath);
|
|
127
128
|
});
|
|
128
129
|
}
|
package/dist/project/search.js
CHANGED
|
@@ -272,7 +272,7 @@ function filterAdaptations(pathMap) {
|
|
|
272
272
|
for (const manifestAppDescrVar of manifestAppDescrVars) {
|
|
273
273
|
const adpPath = yield (0, file_1.findFileUp)('.adp', (0, path_1.dirname)(manifestAppDescrVar));
|
|
274
274
|
if (adpPath && (yield (0, file_1.fileExists)((0, path_1.join)(adpPath, constants_1.FileName.AdaptationConfig)))) {
|
|
275
|
-
results.push({ appRoot: (0, path_1.dirname)(adpPath) });
|
|
275
|
+
results.push({ appRoot: (0, path_1.dirname)(adpPath), manifestAppdescrVariantPath: manifestAppDescrVar });
|
|
276
276
|
}
|
|
277
277
|
}
|
|
278
278
|
return results;
|
|
@@ -35,6 +35,10 @@ export interface AdaptationResults {
|
|
|
35
35
|
* Root of the adapted application where package.json and ui5.yaml resides.
|
|
36
36
|
*/
|
|
37
37
|
appRoot: string;
|
|
38
|
+
/**
|
|
39
|
+
* Path to manifest.appdescr_variant
|
|
40
|
+
*/
|
|
41
|
+
manifestAppdescrVariantPath: string;
|
|
38
42
|
}
|
|
39
43
|
/**
|
|
40
44
|
* Search result when searching for extension projects.
|