Repository: mui/material-ui
File: packages/rsc-builder/buildRsc.ts (TypeScript)

Code before:
import findHooks from '../api-docs-builder/utils/findHooks';

type CommandOptions = { grep?: string };

type Project = {
  name: string;
  rootPath: string;
  additionalPaths?: string[];
  additionalFiles?: string[];
  ignorePaths?: string[];
};

const PROJECTS: Project[] = [
  {
    name: 'base',
    rootPath: path.join(process.cwd(), 'packages/mui-base'),
  },
  {
    name: 'material',
    rootPath: path.join(process.cwd(), 'packages/mui-material'),
    ignorePaths: [
      'packages/mui-material/src/InitColorSchemeScript/InitColorSchemeScript.tsx', // RSC compatible
      'packages/mui-material/src/PigmentContainer/PigmentContainer.tsx', // RSC compatible
      'packages/mui-material/src/PigmentGrid/PigmentGrid.tsx', // RSC compatible
      'packages/mui-material/src/PigmentStack/PigmentStack.tsx', // RSC compatible
    ],
  },
  {
    name: 'joy',
    rootPath: path.join(process.cwd(), 'packages/mui-joy'),
    ignorePaths: [
      'packages/mui-joy/src/InitColorSchemeScript/InitColorSchemeScript.tsx', // no need 'use client' because of `styles/index` export
    ],
  },
  {
    name: 'system',
    rootPath: path.join(process.cwd(), 'packages/mui-system'),
    ignorePaths: [
      'packages/mui-system/src/InitColorSchemeScript/InitColorSchemeScript.tsx', // no need 'use client' because of `styles/index` export
    ],
  },
  {
    name: 'styled-engine',
    rootPath: path.join(process.cwd(), 'packages/mui-styled-engine'),
  },
  {
    name: 'utils',
    rootPath: path.join(process.cwd(), 'packages/mui-utils'),
  },
  {
    name: 'icons-material',

Review comment (suggestion):
@DiegoAndai This file still has the `"use client"` 🤔

Code after:
import findHooks from '../api-docs-builder/utils/findHooks';

type CommandOptions = { grep?: string };

type Project = {
  name: string;
  rootPath: string;
  additionalPaths?: string[];
  additionalFiles?: string[];
  ignorePaths?: string[];
};

const PROJECTS: Project[] = [
  {
    name: 'base',
    rootPath: path.join(process.cwd(), 'packages/mui-base'),
  },
  {
    name: 'material',
    rootPath: path.join(process.cwd(), 'packages/mui-material'),
    ignorePaths: [
      'packages/mui-material/src/InitColorSchemeScript/InitColorSchemeScript.tsx', // RSC compatible
      'packages/mui-material/src/PigmentContainer/PigmentContainer.tsx', // RSC compatible
      'packages/mui-material/src/PigmentGrid/PigmentGrid.tsx', // RSC compatible
      'packages/mui-material/src/PigmentStack/PigmentStack.tsx', // RSC compatible
      'packages/mui-material/src/useAutocomplete/useAutocomplete.js', // RSC compatible
    ],
  },
  {
    name: 'joy',
    rootPath: path.join(process.cwd(), 'packages/mui-joy'),
    ignorePaths: [
      'packages/mui-joy/src/InitColorSchemeScript/InitColorSchemeScript.tsx', // no need 'use client' because of `styles/index` export
    ],
  },
  {
    name: 'system',
    rootPath: path.join(process.cwd(), 'packages/mui-system'),
    ignorePaths: [
      'packages/mui-system/src/InitColorSchemeScript/InitColorSchemeScript.tsx', // no need 'use client' because of `styles/index` export
    ],
  },
  {
    name: 'styled-engine',
    rootPath: path.join(process.cwd(), 'packages/mui-styled-engine'),
  },
  {
    name: 'utils',
    rootPath: path.join(process.cwd(), 'packages/mui-utils'),
  },
  {