Skip to content

Commit feebe31

Browse files
committed
try to fix tinyglobby swizzle CI bug?
1 parent 3b687a5 commit feebe31

File tree

1 file changed

+6
-1
lines changed
  • packages/docusaurus/src/commands/swizzle

1 file changed

+6
-1
lines changed

packages/docusaurus/src/commands/swizzle/actions.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,18 @@ export async function eject({
6262
const globPatternPosix = posixPath(globPattern);
6363

6464
const filesToCopy = await Globby(globPatternPosix, {
65+
// Workaround for Tinyglobby bug?
66+
// We glob from the repo root, not from the website dir
67+
// See https://github.com/SuperchupuDev/tinyglobby/issues/186
68+
cwd: path.join(process.cwd(), '..'),
69+
absolute: true,
70+
6571
ignore: _.compact([
6672
'**/*.{story,stories,test,tests}.{js,jsx,ts,tsx}',
6773
// When ejecting JS components, we want to avoid emitting TS files
6874
// In particular the .d.ts files that theme build output contains
6975
typescript ? null : '**/*.{d.ts,ts,tsx}',
7076
'**/{__fixtures__,__tests__}/*',
71-
'**\\{__fixtures__,__tests__}\\*',
7277
]),
7378
});
7479

0 commit comments

Comments
 (0)