From b4fc108c2e303deb4488b07a4332fa916c85ddc4 Mon Sep 17 00:00:00 2001 From: Anton Kastritskiy Date: Fri, 28 Jan 2022 08:30:51 -0800 Subject: [PATCH] Rename first batch for '.ts' files to '.tsx' in doctor, static and test-utils Summary: Rename first batch for '.ts' files to '.tsx' Reviewed By: nikoant Differential Revision: D33843051 fbshipit-source-id: 68dd2dc6538afce2daaf24c6412dc5db8b38acbc --- desktop/doctor/src/{cli.ts => cli.tsx} | 0 desktop/doctor/src/{environmentInfo.ts => environmentInfo.tsx} | 0 desktop/doctor/src/{index.ts => index.tsx} | 0 desktop/scripts/build-utils.ts | 2 +- desktop/static/fb-stubs/{isFB.ts => isFB.tsx} | 0 desktop/static/{launcher.ts => launcher.tsx} | 0 desktop/static/{main.ts => main.tsx} | 0 desktop/static/{setup.ts => setup.tsx} | 0 desktop/test-utils/src/{consoleMock.ts => consoleMock.tsx} | 0 desktop/test-utils/src/{index.ts => index.tsx} | 0 desktop/test-utils/src/{pathUtils.ts => pathUtils.tsx} | 0 11 files changed, 1 insertion(+), 1 deletion(-) rename desktop/doctor/src/{cli.ts => cli.tsx} (100%) rename desktop/doctor/src/{environmentInfo.ts => environmentInfo.tsx} (100%) rename desktop/doctor/src/{index.ts => index.tsx} (100%) rename desktop/static/fb-stubs/{isFB.ts => isFB.tsx} (100%) rename desktop/static/{launcher.ts => launcher.tsx} (100%) rename desktop/static/{main.ts => main.tsx} (100%) rename desktop/static/{setup.ts => setup.tsx} (100%) rename desktop/test-utils/src/{consoleMock.ts => consoleMock.tsx} (100%) rename desktop/test-utils/src/{index.ts => index.tsx} (100%) rename desktop/test-utils/src/{pathUtils.ts => pathUtils.tsx} (100%) diff --git a/desktop/doctor/src/cli.ts b/desktop/doctor/src/cli.tsx similarity index 100% rename from desktop/doctor/src/cli.ts rename to desktop/doctor/src/cli.tsx diff --git a/desktop/doctor/src/environmentInfo.ts b/desktop/doctor/src/environmentInfo.tsx similarity index 100% rename from desktop/doctor/src/environmentInfo.ts rename to desktop/doctor/src/environmentInfo.tsx diff --git a/desktop/doctor/src/index.ts b/desktop/doctor/src/index.tsx similarity index 100% rename from desktop/doctor/src/index.ts rename to desktop/doctor/src/index.tsx diff --git a/desktop/scripts/build-utils.ts b/desktop/scripts/build-utils.ts index a6bf91df7..8a485459d 100644 --- a/desktop/scripts/build-utils.ts +++ b/desktop/scripts/build-utils.ts @@ -327,7 +327,7 @@ export async function compileMain() { }); await Metro.runBuild(config, { platform: 'web', - entry: path.join(staticDir, 'main.ts'), + entry: path.join(staticDir, 'main.tsx'), out, dev, minify: !dev, diff --git a/desktop/static/fb-stubs/isFB.ts b/desktop/static/fb-stubs/isFB.tsx similarity index 100% rename from desktop/static/fb-stubs/isFB.ts rename to desktop/static/fb-stubs/isFB.tsx diff --git a/desktop/static/launcher.ts b/desktop/static/launcher.tsx similarity index 100% rename from desktop/static/launcher.ts rename to desktop/static/launcher.tsx diff --git a/desktop/static/main.ts b/desktop/static/main.tsx similarity index 100% rename from desktop/static/main.ts rename to desktop/static/main.tsx diff --git a/desktop/static/setup.ts b/desktop/static/setup.tsx similarity index 100% rename from desktop/static/setup.ts rename to desktop/static/setup.tsx diff --git a/desktop/test-utils/src/consoleMock.ts b/desktop/test-utils/src/consoleMock.tsx similarity index 100% rename from desktop/test-utils/src/consoleMock.ts rename to desktop/test-utils/src/consoleMock.tsx diff --git a/desktop/test-utils/src/index.ts b/desktop/test-utils/src/index.tsx similarity index 100% rename from desktop/test-utils/src/index.ts rename to desktop/test-utils/src/index.tsx diff --git a/desktop/test-utils/src/pathUtils.ts b/desktop/test-utils/src/pathUtils.tsx similarity index 100% rename from desktop/test-utils/src/pathUtils.ts rename to desktop/test-utils/src/pathUtils.tsx