Skip to content

Commit 2b1dcce

Browse files
committed
improve eject glob workaround
1 parent 736aaa5 commit 2b1dcce

File tree

1 file changed

+2
-2
lines changed
  • packages/docusaurus/src/commands/swizzle

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ export async function eject({
6363

6464
const filesToCopy = await Globby(globPatternPosix, {
6565
// Workaround for Tinyglobby bug?
66-
// We glob from the repo root, not from the website dir
66+
// We glob absolute from the theme root path, not from cwd
6767
// See https://github.com/SuperchupuDev/tinyglobby/issues/186
68-
cwd: path.join(process.cwd(), '..'),
68+
cwd: themePath,
6969
absolute: true,
7070

7171
ignore: _.compact([

0 commit comments

Comments
 (0)