build: move devtools into third_party (#2558)

This commit is contained in:
Alex Rudenko
2026-08-12 11:19:50 +00:00
committed by GitHub
parent d93e66701f
commit c1ea5bf88f
12 changed files with 97 additions and 87 deletions
+7 -3
View File
@@ -28,8 +28,10 @@ function main(): void {
if (fs.existsSync(devtoolsTs)) {
fs.unlinkSync(devtoolsTs);
}
const devtoolsThirdPartyPath = 'devtools-frontend/front_end/third_party';
const devtoolsFrontEndCorePath = 'devtools-frontend/front_end/core';
const devtoolsThirdPartyPath =
'third_party/devtools-frontend/front_end/third_party';
const devtoolsFrontEndCorePath =
'third_party/devtools-frontend/front_end/core';
// Create i18n mock
const i18nDir = path.join(BUILD_DIR, devtoolsFrontEndCorePath, 'i18n');
@@ -70,6 +72,7 @@ export const css = { cssLanguage: { parser: { parse: () => ({ topNode: { getChil
// Create skills mocks
const skillsDir = path.join(
BUILD_DIR,
'third_party',
'devtools-frontend',
'front_end',
'models',
@@ -156,6 +159,7 @@ export const ExperimentName = {
);
const codemirrorSrcDir = path.join(
process.cwd(),
'third_party',
'devtools-frontend',
'front_end',
'third_party',
@@ -179,7 +183,7 @@ export const ExperimentName = {
function copyDevToolsDescriptionFiles(): void {
const devtoolsIssuesDescriptionPath =
'devtools-frontend/front_end/models/issues_manager/descriptions';
'third_party/devtools-frontend/front_end/models/issues_manager/descriptions';
const sourceDir = path.join(process.cwd(), devtoolsIssuesDescriptionPath);
const destDir = path.join(
BUILD_DIR,
+6 -2
View File
@@ -39,7 +39,11 @@ function removeConflictingGlobalDeclaration(): void {
}
function ensureSubmodule(): void {
const devtoolsFrontendDir = resolve(projectRoot, 'devtools-frontend');
const devtoolsFrontendDir = resolve(
projectRoot,
'third_party',
'devtools-frontend',
);
const mcpEntry = resolve(devtoolsFrontendDir, 'mcp', 'mcp.ts');
if (existsSync(mcpEntry)) {
@@ -61,7 +65,7 @@ function ensureSubmodule(): void {
console.log('Fetching devtools-frontend...');
try {
execSync(
'git clone --depth 1 https://github.com/ChromeDevTools/devtools-frontend.git devtools-frontend',
'git clone --depth 1 https://github.com/ChromeDevTools/devtools-frontend.git third_party/devtools-frontend',
{
cwd: projectRoot,
stdio: 'inherit',