From c643670f59c7fe0e003fe109155f4bc9ee3e828d Mon Sep 17 00:00:00 2001 From: EgorT Date: Mon, 21 Oct 2024 14:11:43 +0200 Subject: [PATCH] Fix issue 71 with CDS run --- cds-plugin.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cds-plugin.js b/cds-plugin.js index 982289d..dc41325 100644 --- a/cds-plugin.js +++ b/cds-plugin.js @@ -1,9 +1,8 @@ const cds = require("@sap/cds/lib"); -const NotificationsBuildPlugin = require("./lib/build"); if (cds.cli.command === "build") { // register build plugin - cds.build?.register?.('notifications', NotificationsBuildPlugin); + cds.build?.register?.('notifications', require("./lib/build")); } else cds.once("served", async () => {