From 808a97f0fcd79a2242e8f70bc179b1a97ac7265e Mon Sep 17 00:00:00 2001 From: Steven Date: Thu, 3 Oct 2024 13:34:33 -0400 Subject: [PATCH] bug: Ignore external folder when globbing messages folder --- .../src/features/background-service-worker/bgsw-messaging.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cli/plasmo/src/features/background-service-worker/bgsw-messaging.ts b/cli/plasmo/src/features/background-service-worker/bgsw-messaging.ts index 5afe3456d..e44cf2d5b 100644 --- a/cli/plasmo/src/features/background-service-worker/bgsw-messaging.ts +++ b/cli/plasmo/src/features/background-service-worker/bgsw-messaging.ts @@ -1,7 +1,7 @@ -import { join, resolve } from "path" import { camelCase } from "change-case" import glob from "fast-glob" import { outputFile } from "fs-extra" +import { join, resolve } from "path" import { isWriteable } from "@plasmo/utils/fs" import { vLog, wLog } from "@plasmo/utils/logging" @@ -77,7 +77,8 @@ const getHandlerList = async ( const handlerFileList = await glob("**/*.ts", { cwd: handlerDir, - onlyFiles: true + onlyFiles: true, + ignore: dirName === "messages" ? ["external"] : [] }) return handlerFileList.map((filePath) => {