Skip to content

Commit

Permalink
Merge pull request #76 from Regloom/patch-1
Browse files Browse the repository at this point in the history
Fix issue 71 with CDS run
  • Loading branch information
yusmenrashidov authored Oct 22, 2024
2 parents 44ff030 + c643670 commit fcb1ca7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cds-plugin.js
Original file line number Diff line number Diff line change
@@ -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 () => {
Expand Down

0 comments on commit fcb1ca7

Please sign in to comment.