@sap-ux/project-access 1.5.0 → 1.5.1
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 +2 -1
- package/package.json +1 -1
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
|
}
|