From 2c19f5d1e670b272c40cd3845dcf07b6f215ccec Mon Sep 17 00:00:00 2001 From: D050513 Date: Mon, 15 Sep 2025 12:02:58 +0200 Subject: [PATCH 1/2] fix: workaround for cds.cli.command bug --- cds-plugin.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cds-plugin.js b/cds-plugin.js index a3b091f2..153c33cc 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.env.TELEMETRY_SKIP_BUILD && 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 From abce2944b92f334d7400533cd05a48bad1f1f708 Mon Sep 17 00:00:00 2001 From: sjvans <30337871+sjvans@users.noreply.github.com> Date: Mon, 15 Sep 2025 12:11:33 +0200 Subject: [PATCH 2/2] rm env var gate --- cds-plugin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cds-plugin.js b/cds-plugin.js index 153c33cc..8cb5436b 100644 --- a/cds-plugin.js +++ b/cds-plugin.js @@ -3,7 +3,7 @@ if (!(cds.cli?.command in { '': 1, serve: 1, run: 1 })) return // REVISIT: workaround for cds.cli.command bug - if (process.env.TELEMETRY_SKIP_BUILD && process.argv.includes('build')) return + if (process.argv.includes('build')) return // cds add XXX currently also has cli.command === '' const i = process.argv.indexOf('add')