diff --git a/package.json b/package.json index 941b8f075..65d713b74 100644 --- a/package.json +++ b/package.json @@ -177,7 +177,8 @@ [ "@semantic-release/exec", { - "prepareCmd": "npm run bump ${nextRelease.version} && npm run deploy" + "prepareCmd": "npm run bump ${nextRelease.version}", + "publishCmd": "npm run deploy" } ], [ diff --git a/server/helpers/subscriptionManager.ts b/server/helpers/subscriptionManager.ts index c500b5130..178346788 100644 --- a/server/helpers/subscriptionManager.ts +++ b/server/helpers/subscriptionManager.ts @@ -1,7 +1,7 @@ import {PubSub} from "apollo-server-express"; import EventEmitter from "events"; -const ee = new EventEmitter(); +const ee = new EventEmitter.EventEmitter(); ee.setMaxListeners(250); const pubsub = new PubSub({eventEmitter: ee});