From feebe3103c68f9785ae3662b3816206931cac83a Mon Sep 17 00:00:00 2001 From: sebastien Date: Tue, 23 Dec 2025 12:23:46 +0100 Subject: [PATCH] try to fix tinyglobby swizzle CI bug? --- packages/docusaurus/src/commands/swizzle/actions.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/docusaurus/src/commands/swizzle/actions.ts b/packages/docusaurus/src/commands/swizzle/actions.ts index 96c904a05c..5ad2a7b3ba 100644 --- a/packages/docusaurus/src/commands/swizzle/actions.ts +++ b/packages/docusaurus/src/commands/swizzle/actions.ts @@ -62,13 +62,18 @@ export async function eject({ const globPatternPosix = posixPath(globPattern); const filesToCopy = await Globby(globPatternPosix, { + // Workaround for Tinyglobby bug? + // We glob from the repo root, not from the website dir + // See https://github.com/SuperchupuDev/tinyglobby/issues/186 + cwd: path.join(process.cwd(), '..'), + absolute: true, + ignore: _.compact([ '**/*.{story,stories,test,tests}.{js,jsx,ts,tsx}', // When ejecting JS components, we want to avoid emitting TS files // In particular the .d.ts files that theme build output contains typescript ? null : '**/*.{d.ts,ts,tsx}', '**/{__fixtures__,__tests__}/*', - '**\\{__fixtures__,__tests__}\\*', ]), });