diff --git a/cds-plugin.js b/cds-plugin.js index a3b091f..8cb5436 100644 --- a/cds-plugin.js +++ b/cds-plugin.js @@ -2,6 +2,9 @@ const cds = require('@sap/cds') if (!(cds.cli?.command in { '': 1, serve: 1, run: 1 })) return + // REVISIT: workaround for cds.cli.command bug + if (process.argv.includes('build')) return + // cds add XXX currently also has cli.command === '' const i = process.argv.indexOf('add') if (i > 1 && process.argv[i - 1].match(/cds(\.js)?$/)) return