From fa83f720a8fc742d9331ab6c0d2ba30a3071a469 Mon Sep 17 00:00:00 2001 From: Gabriel Brown Date: Sun, 21 Jun 2026 21:55:58 -0500 Subject: [PATCH] Update stuff so we can pass build hopefully --- scripts/patch-usesend.mjs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/patch-usesend.mjs b/scripts/patch-usesend.mjs index 0d32c59..c3fa1c6 100644 --- a/scripts/patch-usesend.mjs +++ b/scripts/patch-usesend.mjs @@ -7,11 +7,14 @@ const __dirname = path.dirname(__filename); const usesendDir = path.join(__dirname, '..', 'node_modules', 'usesend-js'); const ensureReplacement = (content, searchValue, replaceValue, filePath) => { - if (content.includes(replaceValue)) { + if (replaceValue !== '' && content.includes(replaceValue)) { return content; } if (!content.includes(searchValue)) { + if (replaceValue === '') { + return content; + } throw new Error(`Expected snippet not found in ${filePath}`); }