From 048dd6b0abcc49f6b8ffb7cb4c7f713ac8ae83f3 Mon Sep 17 00:00:00 2001 From: Jesse Wierzbinski Date: Mon, 25 Nov 2024 13:37:58 +0100 Subject: [PATCH] fix: :bug: Use CommonJS resolve instead of ESM one in Bull-Board UI --- patches/@bull-board%2Fapi@6.5.3.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patches/@bull-board%2Fapi@6.5.3.patch b/patches/@bull-board%2Fapi@6.5.3.patch index 7cfee761..81b87d71 100644 --- a/patches/@bull-board%2Fapi@6.5.3.patch +++ b/patches/@bull-board%2Fapi@6.5.3.patch @@ -7,7 +7,7 @@ index b7fa76b4861aefc96e27b3167b1511c3723ad318..c56d37721672b9ede3c85c84cb40c91c function createBullBoard({ queues, serverAdapter, options = { uiConfig: {} }, }) { const { bullBoardQueues, setQueues, replaceQueues, addQueue, removeQueue } = (0, queuesApi_1.getQueuesApi)(queues); - const uiBasePath = options.uiBasePath || path_1.default.dirname(eval(`require.resolve('@bull-board/ui/package.json')`)); -+ const uiBasePath = options.uiBasePath || path_1.default.dirname(import.meta.resolve('@bull-board/ui/package.json')); ++ const uiBasePath = options.uiBasePath || path_1.default.dirname(import.meta.require.resolve('@bull-board/ui/package.json')); serverAdapter .setQueues(bullBoardQueues) .setViewsPath(path_1.default.join(uiBasePath, 'dist'))