From 4c9a116aff04a3e775253d196453c4afaeeedf41 Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Thu, 19 Dec 2024 00:23:35 +0100 Subject: [PATCH] chore: move protocol to d.ts types only files (#34077) --- packages/protocol/src/{callMetadata.ts => callMetadata.d.ts} | 0 packages/protocol/src/{channels.ts => channels.d.ts} | 0 utils/generate_channels.js | 2 +- 3 files changed, 1 insertion(+), 1 deletion(-) rename packages/protocol/src/{callMetadata.ts => callMetadata.d.ts} (100%) rename packages/protocol/src/{channels.ts => channels.d.ts} (100%) diff --git a/packages/protocol/src/callMetadata.ts b/packages/protocol/src/callMetadata.d.ts similarity index 100% rename from packages/protocol/src/callMetadata.ts rename to packages/protocol/src/callMetadata.d.ts diff --git a/packages/protocol/src/channels.ts b/packages/protocol/src/channels.d.ts similarity index 100% rename from packages/protocol/src/channels.ts rename to packages/protocol/src/channels.d.ts diff --git a/utils/generate_channels.js b/utils/generate_channels.js index 9da221f97e7ad..0bebcbba0cbc7 100755 --- a/utils/generate_channels.js +++ b/utils/generate_channels.js @@ -362,7 +362,7 @@ function writeFile(filePath, content) { fs.writeFileSync(filePath, content, 'utf8'); } -writeFile(path.join(__dirname, '..', 'packages', 'protocol', 'src', 'channels.ts'), channels_ts.join('\n')); +writeFile(path.join(__dirname, '..', 'packages', 'protocol', 'src', 'channels.d.ts'), channels_ts.join('\n')); writeFile(path.join(__dirname, '..', 'packages', 'playwright-core', 'src', 'protocol', 'debug.ts'), debug_ts.join('\n')); writeFile(path.join(__dirname, '..', 'packages', 'playwright-core', 'src', 'protocol', 'validator.ts'), validator_ts.join('\n')); process.exit(hasChanges ? 1 : 0);