Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions cds-plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
const cds = require('@sap/cds')
if (!(cds.cli?.command in { '': 1, serve: 1, run: 1 })) return

// REVISIT: workaround for cds.cli.command bug
const j = process.argv.indexOf('build')
if (j > 1 && process.argv[j - 1].match(/cds(\.js)?$/)) 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
Expand Down