From 73abcd869ca324798fe068ffefe0f67ec5b7658f Mon Sep 17 00:00:00 2001 From: "Ashley Engelund (weedySeaDragon @ github)" Date: Wed, 7 Sep 2022 11:02:22 -0700 Subject: [PATCH] fix: also check other files --- src/docs.mts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/docs.mts b/src/docs.mts index 2baa87f01..877f7a022 100644 --- a/src/docs.mts +++ b/src/docs.mts @@ -207,8 +207,9 @@ const transformHtml = (filename: string) => { const otherFiles = await globby([sourceDirGlob, '!**/*.md', '!**/*.html'], { dot: includeFilesStartingWithDot, }); - otherFiles.forEach((file) => { - copyTransformedContents(file); + otherFiles.forEach((file: string) => { + const transformedContents = readSyncedUTF8file(file); // no transformation is done; just get the contents + copyTransformedContents(file, transformedContents, !verifyOnly); }); if (filesWereTransformed) {