Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
flaviendelangle committed Feb 28, 2024
1 parent 576c4dd commit 968c832
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions scripts/buildApiDocs/chartsSettings/getComponentInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,12 @@ export function getComponentImports(name: string, filename: string) {

const rootImportPath = githubPath.replace(
/\/packages\/(.+?)?\/src\/.*/,
(match, dash, pkg) => `@mui/${pkg}`,
(match, pkg) => `@mui/${pkg}`,
);

const subdirectoryImportPath = githubPath.replace(
/\/packages\/(.+?)?\/src\/([^\\/]+)\/.*/,
(match, dash, pkg, directory) => `@mui/${pkg}/${directory}`,
(match, pkg, directory) => `@mui/${pkg}/${directory}`,
);

const reExportPackage = [rootImportPath];
Expand Down
4 changes: 2 additions & 2 deletions scripts/buildApiDocs/gridSettings/getComponentInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@ export function getComponentImports(name: string, filename: string) {

const rootImportPath = githubPath.replace(
/\/packages\/(.+?)?\/src\/.*/,
(match, dash, pkg) => `@mui/${pkg}`,
(match, pkg) => `@mui/${pkg}`,
);

const subdirectoryImportPath = githubPath.replace(
/\/packages\/(.+?)?\/src\/([^\\/]+)\/.*/,
(match, dash, pkg, directory) => `@mui/${pkg}/${directory}`,
(match, pkg, directory) => `@mui/${pkg}/${directory}`,
);

const reExportPackage = [rootImportPath];
Expand Down
4 changes: 2 additions & 2 deletions scripts/buildApiDocs/pickersSettings/getComponentInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,12 @@ export function getComponentImports(name: string, filename: string) {

const rootImportPath = githubPath.replace(
/\/packages\/(.+?)?\/src\/.*/,
(match, dash, pkg) => `@mui/${pkg}`,
(match, pkg) => `@mui/${pkg}`,
);

const subdirectoryImportPath = githubPath.replace(
/\/packages\/(.+?)?\/src\/([^\\/]+)\/.*/,
(match, dash, pkg, directory) => `@mui/${pkg}/${directory}`,
(match, pkg, directory) => `@mui/${pkg}/${directory}`,
);

const reExportPackage = [rootImportPath];
Expand Down
4 changes: 2 additions & 2 deletions scripts/buildApiDocs/treeViewSettings/getComponentInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,12 @@ export function getComponentImports(name: string, filename: string) {

const rootImportPath = githubPath.replace(
/\/packages\/(.+?)?\/src\/.*/,
(match, dash, pkg) => `@mui/${pkg}`,
(match, pkg) => `@mui/${pkg}`,
);

const subdirectoryImportPath = githubPath.replace(
/\/packages\/(.+?)?\/src\/([^\\/]+)\/.*/,
(match, dash, pkg, directory) => `@mui/${pkg}/${directory}`,
(match, pkg, directory) => `@mui/${pkg}/${directory}`,
);

const reExportPackage = [rootImportPath];
Expand Down

0 comments on commit 968c832

Please sign in to comment.