Skip to content

Commit

Permalink
fix: support single app in ./app
Browse files Browse the repository at this point in the history
  • Loading branch information
piejanssens committed Jul 6, 2023
1 parent 0f95ace commit 61d36e4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/cds-plugin-ui5/cds-plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,14 @@ cds.on("bootstrap", async function bootstrap(app) {
}
});

// look for a single app if no apps were found in the app directories
if(appDirs.length === 0) {
const d = path.join(process.cwd(), "app");
if (fs.existsSync(path.join(d, "ui5.yaml"))) {
appDirs.push(d);
}
}

// lookup the UI5 dependencies
const pkgJson = require(path.join(process.cwd(), "package.json"));
const deps = [];
Expand Down

0 comments on commit 61d36e4

Please sign in to comment.