Skip to content

Commit f880ea7

Browse files
feat(project-access): async function definition (#1192)
* feat(project-access): load cds-dk as fallback * chore: changeset * fix: load module paths from os * fix: get full path to module in spawned process * fix: unit test performance * fix: sonar code smell * fix: check if module path exists * feat: use cds --version to find global cds * fix: remove package.json tests * fix: remove commented test * fix: changeset * fix: cds executed on win needs shell env * fix: unit test performance * fix: unit test cds --version * fix: async function * chore: changeset --------- Co-authored-by: Austin Devine <[email protected]>
1 parent 8e4ea92 commit f880ea7

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/seven-baboons-tell.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@sap-ux/project-access': patch
3+
---
4+
5+
fix for async function definition

packages/project-access/src/project/cap.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ async function loadGlobalCdsModule<T>(): Promise<T> {
344344
* @param [cwd] - optional folder in which cds --version should be executed
345345
* @returns - result of call 'cds --version'
346346
*/
347-
function getCdsVersionInfo(cwd?: string): Promise<Record<string, string>> {
347+
async function getCdsVersionInfo(cwd?: string): Promise<Record<string, string>> {
348348
return new Promise((resolve, reject) => {
349349
let out = '';
350350
const cdsVersionInfo = spawn('cds', ['--version'], { cwd, shell: true });

0 commit comments

Comments
 (0)