From b14b74315f34dbc7ce7fd86b1e8fe647ba83c565 Mon Sep 17 00:00:00 2001 From: "Fabien \"egg\" O'Carroll" Date: Thu, 20 Oct 2022 17:40:37 +0700 Subject: [PATCH] Exported Tier events from tiers package These are required to be exported so that external code can subscribe to the events. --- ghost/tiers/index.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/ghost/tiers/index.js b/ghost/tiers/index.js index 4f7da35e65..09c61e1de4 100644 --- a/ghost/tiers/index.js +++ b/ghost/tiers/index.js @@ -1,5 +1,16 @@ +const TierActivatedEvent = require('./lib/TierActivatedEvent'); +const TierArchivedEvent = require('./lib/TierArchivedEvent'); +const TierCreatedEvent = require('./lib/TierCreatedEvent'); +const TierNameChangeEvent = require('./lib/TierNameChangeEvent'); +const TierPriceChangeEvent = require('./lib/TierPriceChangeEvent'); + module.exports = { Tier: require('./lib/Tier'), TiersAPI: require('./lib/TiersAPI'), - InMemoryTierRepository: require('./lib/InMemoryTierRepository') + InMemoryTierRepository: require('./lib/InMemoryTierRepository'), + TierActivatedEvent, + TierArchivedEvent, + TierCreatedEvent, + TierNameChangeEvent, + TierPriceChangeEvent };