Skip to content

Commit

Permalink
bug: Ignore external folder when globbing messages folder (#1096)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiata authored Oct 8, 2024
1 parent 2885b2e commit 9328971
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -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"
Expand Down Expand Up @@ -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) => {
Expand Down

0 comments on commit 9328971

Please sign in to comment.