From 669e8d02b1121ce66b3e8f36f59a31dfbdaacb62 Mon Sep 17 00:00:00 2001 From: Lauren Tan Date: Sat, 11 May 2024 00:20:03 -0400 Subject: [PATCH] [healthcheck] Refine glob pattern ghstack-source-id: 6f9e7f95348ab66c699c38f3625a654d91c856c4 Pull Request resolved: https://github.com/facebook/react-forget/pull/2960 --- compiler/packages/react-compiler-healthcheck/src/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/compiler/packages/react-compiler-healthcheck/src/index.ts b/compiler/packages/react-compiler-healthcheck/src/index.ts index 492c05d998..bab53ea1ae 100644 --- a/compiler/packages/react-compiler-healthcheck/src/index.ts +++ b/compiler/packages/react-compiler-healthcheck/src/index.ts @@ -20,7 +20,7 @@ async function main() { .option("src", { description: "glob expression matching src files to compile", type: "string", - default: "**/*.{js,jsx,ts,tsx,json}", + default: "**/+(*.{js,jsx,ts,tsx}|package.json)", }) .parseSync(); @@ -38,6 +38,8 @@ async function main() { "dist/**", "tests/**", "__tests__/**", + "__mocks__/**", + "__e2e__/**", ], };