Skip to content

Commit

Permalink
Patch problematic babel.config.js resolution parseTest
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasTy committed Apr 18, 2024
1 parent 587d91a commit 515ce69
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 3 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,8 @@
"patchedDependencies": {
"[email protected]": "patches/[email protected]",
"[email protected]": "patches/[email protected]",
"[email protected]": "patches/[email protected]"
"[email protected]": "patches/[email protected]",
"@mui/[email protected]": "patches/@[email protected]"
}
}
}
13 changes: 13 additions & 0 deletions patches/@[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/packages/api-docs-builder/utils/parseTest.ts b/packages/api-docs-builder/utils/parseTest.ts
index 14d2c70c9939cb2e71e7664c06e8f51700711772..e21e06960ffbaf05aff6e5d4d7faa123cb6105bc 100644
--- a/packages/api-docs-builder/utils/parseTest.ts
+++ b/packages/api-docs-builder/utils/parseTest.ts
@@ -3,7 +3,7 @@ import * as babel from '@babel/core';
import { readFile } from 'fs-extra';
import glob from 'fast-glob';

-const workspaceRoot = path.join(__dirname, '../../../');
+const workspaceRoot = process.cwd();
const babelConfigPath = path.join(workspaceRoot, 'babel.config.js');

function getTestFilesNames(filepath: string) {
9 changes: 7 additions & 2 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 515ce69

Please sign in to comment.