From 071bcaff96e8a333105d37b35684239ebc62e85d Mon Sep 17 00:00:00 2001 From: Anton Kastritskiy Date: Mon, 31 Jan 2022 02:56:52 -0800 Subject: [PATCH] Rename second batch for '.ts' files to '.tsx' in scripts dir Summary: Rename first batch for '.ts' files to '.tsx' Reviewed By: passy Differential Revision: D33843246 fbshipit-source-id: eb8080db8cc3ef07820339bf8deafa208432de7c --- desktop/jest.config.js | 4 +-- desktop/package.json | 28 +++++++++---------- ...se.ts => build-flipper-server-release.tsx} | 0 .../{build-icons.ts => build-icons.tsx} | 0 .../{build-plugin.ts => build-plugin.tsx} | 0 .../{build-release.ts => build-release.tsx} | 0 .../{build-utils.ts => build-utils.tsx} | 0 .../{bump-versions.ts => bump-versions.tsx} | 0 ...-all-plugins.ts => bundle-all-plugins.tsx} | 0 ...ecksum.ts => compute-package-checksum.tsx} | 0 ....ts => copy-package-with-dependencies.tsx} | 0 ...le.ts => ensurePluginFoldersWatchable.tsx} | 0 ...ts.ts => generate-plugin-entry-points.tsx} | 0 ...h-folders.ts => get-app-watch-folders.tsx} | 0 ...st-setup-after.ts => jest-setup-after.tsx} | 0 .../scripts/{jest-setup.ts => jest-setup.tsx} | 0 .../{list-plugins.ts => list-plugins.tsx} | 0 desktop/scripts/{paths.ts => paths.tsx} | 0 ...blish-packages.ts => publish-packages.tsx} | 0 ...e-plugin-dir.ts => resolve-plugin-dir.tsx} | 0 ...art-dev-server.ts => start-dev-server.tsx} | 0 ...er-dev.ts => start-flipper-server-dev.tsx} | 0 ...tWatchPlugins.ts => startWatchPlugins.tsx} | 0 .../{tsc-plugins.ts => tsc-plugins.tsx} | 0 desktop/scripts/{watchman.ts => watchman.tsx} | 0 .../scripts/{workspaces.ts => workspaces.tsx} | 0 26 files changed, 16 insertions(+), 16 deletions(-) rename desktop/scripts/{build-flipper-server-release.ts => build-flipper-server-release.tsx} (100%) rename desktop/scripts/{build-icons.ts => build-icons.tsx} (100%) rename desktop/scripts/{build-plugin.ts => build-plugin.tsx} (100%) rename desktop/scripts/{build-release.ts => build-release.tsx} (100%) rename desktop/scripts/{build-utils.ts => build-utils.tsx} (100%) rename desktop/scripts/{bump-versions.ts => bump-versions.tsx} (100%) rename desktop/scripts/{bundle-all-plugins.ts => bundle-all-plugins.tsx} (100%) rename desktop/scripts/{compute-package-checksum.ts => compute-package-checksum.tsx} (100%) rename desktop/scripts/{copy-package-with-dependencies.ts => copy-package-with-dependencies.tsx} (100%) rename desktop/scripts/{ensurePluginFoldersWatchable.ts => ensurePluginFoldersWatchable.tsx} (100%) rename desktop/scripts/{generate-plugin-entry-points.ts => generate-plugin-entry-points.tsx} (100%) rename desktop/scripts/{get-app-watch-folders.ts => get-app-watch-folders.tsx} (100%) rename desktop/scripts/{jest-setup-after.ts => jest-setup-after.tsx} (100%) rename desktop/scripts/{jest-setup.ts => jest-setup.tsx} (100%) rename desktop/scripts/{list-plugins.ts => list-plugins.tsx} (100%) rename desktop/scripts/{paths.ts => paths.tsx} (100%) rename desktop/scripts/{publish-packages.ts => publish-packages.tsx} (100%) rename desktop/scripts/{resolve-plugin-dir.ts => resolve-plugin-dir.tsx} (100%) rename desktop/scripts/{start-dev-server.ts => start-dev-server.tsx} (100%) rename desktop/scripts/{start-flipper-server-dev.ts => start-flipper-server-dev.tsx} (100%) rename desktop/scripts/{startWatchPlugins.ts => startWatchPlugins.tsx} (100%) rename desktop/scripts/{tsc-plugins.ts => tsc-plugins.tsx} (100%) rename desktop/scripts/{watchman.ts => watchman.tsx} (100%) rename desktop/scripts/{workspaces.ts => workspaces.tsx} (100%) diff --git a/desktop/jest.config.js b/desktop/jest.config.js index fafd43f61..630cdb374 100644 --- a/desktop/jest.config.js +++ b/desktop/jest.config.js @@ -12,8 +12,8 @@ module.exports = { '^.*__tests__(/|\\\\).*\\.tsx?$': 'ts-jest', '\\.(js|tsx?)$': '/scripts/jest-transform.js', }, - setupFiles: ['/scripts/jest-setup.ts'], - setupFilesAfterEnv: ['/scripts/jest-setup-after.ts'], + setupFiles: ['/scripts/jest-setup.tsx'], + setupFilesAfterEnv: ['/scripts/jest-setup-after.tsx'], moduleNameMapper: { '^flipper$': '/app/src', '^flipper-plugin$': '/flipper-plugin/src', diff --git a/desktop/package.json b/desktop/package.json index 4a1e0341e..2513fc5dd 100644 --- a/desktop/package.json +++ b/desktop/package.json @@ -116,33 +116,33 @@ "adbkit-logcat": "^2.0.1" }, "scripts": { - "build": "cross-env NODE_ENV=production ./ts-node scripts/build-release.ts $@", - "build-plugin": "./ts-node scripts/build-plugin.ts", - "build:dev": "cross-env NODE_ENV=development ./ts-node scripts/build-release.ts $@", + "build": "cross-env NODE_ENV=production ./ts-node scripts/build-release.tsx $@", + "build-plugin": "./ts-node scripts/build-plugin.tsx", + "build:dev": "cross-env NODE_ENV=development ./ts-node scripts/build-release.tsx $@", "build:eslint": "cd eslint-plugin-flipper && yarn build", "build:themes": "lessc --js themes/light.less static/themes/light.css && lessc --js themes/dark.less static/themes/dark.css", - "build:tsc": "tsc -b tsc-root/tsconfig.json && ./ts-node ./scripts/compute-package-checksum.ts -d ./babel-transformer -o ./lib/checksum.txt", - "build:flipper-server": "yarn build:tsc && ./ts-node scripts/build-flipper-server-release.ts", - "bump-versions": "./ts-node scripts/bump-versions.ts", - "bundle-all-plugins": "./ts-node scripts/bundle-all-plugins.ts", + "build:tsc": "tsc -b tsc-root/tsconfig.json && ./ts-node ./scripts/compute-package-checksum.tsx -d ./babel-transformer -o ./lib/checksum.txt", + "build:flipper-server": "yarn build:tsc && ./ts-node scripts/build-flipper-server-release.tsx", + "bump-versions": "./ts-node scripts/bump-versions.tsx", + "bundle-all-plugins": "./ts-node scripts/bundle-all-plugins.tsx", "predev-server": "yarn build:tsc", - "dev-server": "cross-env NODE_ENV=development ./ts-node scripts/start-dev-server.ts", + "dev-server": "cross-env NODE_ENV=development ./ts-node scripts/start-dev-server.tsx", "preflipper-server": "yarn build:tsc", - "flipper-server": "cross-env NODE_ENV=development ./ts-node scripts/start-flipper-server-dev.ts", + "flipper-server": "cross-env NODE_ENV=development ./ts-node scripts/start-flipper-server-dev.tsx", "fix": "eslint . --fix --ext .js,.ts,.tsx", "lint": "yarn lint:eslint && yarn lint:tsc && yarn tsc-plugins", "lint:eslint": "eslint . --ext .js,.ts,.tsx", "lint:tsc": "tsc -p tsc-root/tsconfig.json --noemit", - "list-plugins": "./ts-node scripts/list-plugins.ts", + "list-plugins": "./ts-node scripts/list-plugins.tsx", "open-dist": "open ../dist/mac/Flipper.app --args --launcher=false --inspect=9229", - "postinstall": "patch-package && yarn --cwd plugins install --mutex network:30331 && yarn tsc -b pkg-lib/tsconfig.json && ./ts-node scripts/generate-plugin-entry-points.ts && yarn build:tsc && yarn build:themes", + "postinstall": "patch-package && yarn --cwd plugins install --mutex network:30331 && yarn tsc -b pkg-lib/tsconfig.json && ./ts-node scripts/generate-plugin-entry-points.tsx && yarn build:tsc && yarn build:themes", "prebuild": "yarn build:tsc && yarn rm-dist && yarn build:themes", "preinstall": "node scripts/prepare-watchman-config.js && yarn config set ignore-engines", "prelint:eslint": "yarn build:eslint", "pretest": "yarn build:tsc", - "publish-packages": "./ts-node scripts/publish-packages.ts", + "publish-packages": "./ts-node scripts/publish-packages.tsx", "reset": "yarn rm-dist && yarn rm-temp && yarn rm-metro-cache && yarn cache clean && yarn rm-bundle && yarn rm-modules", - "resolve-plugin-dir": "./ts-node scripts/resolve-plugin-dir.ts", + "resolve-plugin-dir": "./ts-node scripts/resolve-plugin-dir.tsx", "rm-bundle": "rimraf static/main.bundle.* **/dist/bundle.* **/lib **/*.tsbuildinfo", "rm-dist": "rimraf ../dist", "rm-metro-cache": "rimraf $TMPDIR/metro-cache*", @@ -155,7 +155,7 @@ "docs": "cd ../website && yarn start", "test": "cross-env TZ=Pacific/Pohnpei jest", "test:debug": "yarn build:tsc && cross-env TZ=Pacific/Pohnpei node --inspect node_modules/.bin/jest --runInBand", - "tsc-plugins": "./ts-node scripts/tsc-plugins.ts", + "tsc-plugins": "./ts-node scripts/tsc-plugins.tsx", "watch": "cross-env TZ=Pacific/Pohnpei node --expose-gc --stack-trace-limit=40 ./node_modules/.bin/jest --watch" }, "version": "0.131.1", diff --git a/desktop/scripts/build-flipper-server-release.ts b/desktop/scripts/build-flipper-server-release.tsx similarity index 100% rename from desktop/scripts/build-flipper-server-release.ts rename to desktop/scripts/build-flipper-server-release.tsx diff --git a/desktop/scripts/build-icons.ts b/desktop/scripts/build-icons.tsx similarity index 100% rename from desktop/scripts/build-icons.ts rename to desktop/scripts/build-icons.tsx diff --git a/desktop/scripts/build-plugin.ts b/desktop/scripts/build-plugin.tsx similarity index 100% rename from desktop/scripts/build-plugin.ts rename to desktop/scripts/build-plugin.tsx diff --git a/desktop/scripts/build-release.ts b/desktop/scripts/build-release.tsx similarity index 100% rename from desktop/scripts/build-release.ts rename to desktop/scripts/build-release.tsx diff --git a/desktop/scripts/build-utils.ts b/desktop/scripts/build-utils.tsx similarity index 100% rename from desktop/scripts/build-utils.ts rename to desktop/scripts/build-utils.tsx diff --git a/desktop/scripts/bump-versions.ts b/desktop/scripts/bump-versions.tsx similarity index 100% rename from desktop/scripts/bump-versions.ts rename to desktop/scripts/bump-versions.tsx diff --git a/desktop/scripts/bundle-all-plugins.ts b/desktop/scripts/bundle-all-plugins.tsx similarity index 100% rename from desktop/scripts/bundle-all-plugins.ts rename to desktop/scripts/bundle-all-plugins.tsx diff --git a/desktop/scripts/compute-package-checksum.ts b/desktop/scripts/compute-package-checksum.tsx similarity index 100% rename from desktop/scripts/compute-package-checksum.ts rename to desktop/scripts/compute-package-checksum.tsx diff --git a/desktop/scripts/copy-package-with-dependencies.ts b/desktop/scripts/copy-package-with-dependencies.tsx similarity index 100% rename from desktop/scripts/copy-package-with-dependencies.ts rename to desktop/scripts/copy-package-with-dependencies.tsx diff --git a/desktop/scripts/ensurePluginFoldersWatchable.ts b/desktop/scripts/ensurePluginFoldersWatchable.tsx similarity index 100% rename from desktop/scripts/ensurePluginFoldersWatchable.ts rename to desktop/scripts/ensurePluginFoldersWatchable.tsx diff --git a/desktop/scripts/generate-plugin-entry-points.ts b/desktop/scripts/generate-plugin-entry-points.tsx similarity index 100% rename from desktop/scripts/generate-plugin-entry-points.ts rename to desktop/scripts/generate-plugin-entry-points.tsx diff --git a/desktop/scripts/get-app-watch-folders.ts b/desktop/scripts/get-app-watch-folders.tsx similarity index 100% rename from desktop/scripts/get-app-watch-folders.ts rename to desktop/scripts/get-app-watch-folders.tsx diff --git a/desktop/scripts/jest-setup-after.ts b/desktop/scripts/jest-setup-after.tsx similarity index 100% rename from desktop/scripts/jest-setup-after.ts rename to desktop/scripts/jest-setup-after.tsx diff --git a/desktop/scripts/jest-setup.ts b/desktop/scripts/jest-setup.tsx similarity index 100% rename from desktop/scripts/jest-setup.ts rename to desktop/scripts/jest-setup.tsx diff --git a/desktop/scripts/list-plugins.ts b/desktop/scripts/list-plugins.tsx similarity index 100% rename from desktop/scripts/list-plugins.ts rename to desktop/scripts/list-plugins.tsx diff --git a/desktop/scripts/paths.ts b/desktop/scripts/paths.tsx similarity index 100% rename from desktop/scripts/paths.ts rename to desktop/scripts/paths.tsx diff --git a/desktop/scripts/publish-packages.ts b/desktop/scripts/publish-packages.tsx similarity index 100% rename from desktop/scripts/publish-packages.ts rename to desktop/scripts/publish-packages.tsx diff --git a/desktop/scripts/resolve-plugin-dir.ts b/desktop/scripts/resolve-plugin-dir.tsx similarity index 100% rename from desktop/scripts/resolve-plugin-dir.ts rename to desktop/scripts/resolve-plugin-dir.tsx diff --git a/desktop/scripts/start-dev-server.ts b/desktop/scripts/start-dev-server.tsx similarity index 100% rename from desktop/scripts/start-dev-server.ts rename to desktop/scripts/start-dev-server.tsx diff --git a/desktop/scripts/start-flipper-server-dev.ts b/desktop/scripts/start-flipper-server-dev.tsx similarity index 100% rename from desktop/scripts/start-flipper-server-dev.ts rename to desktop/scripts/start-flipper-server-dev.tsx diff --git a/desktop/scripts/startWatchPlugins.ts b/desktop/scripts/startWatchPlugins.tsx similarity index 100% rename from desktop/scripts/startWatchPlugins.ts rename to desktop/scripts/startWatchPlugins.tsx diff --git a/desktop/scripts/tsc-plugins.ts b/desktop/scripts/tsc-plugins.tsx similarity index 100% rename from desktop/scripts/tsc-plugins.ts rename to desktop/scripts/tsc-plugins.tsx diff --git a/desktop/scripts/watchman.ts b/desktop/scripts/watchman.tsx similarity index 100% rename from desktop/scripts/watchman.ts rename to desktop/scripts/watchman.tsx diff --git a/desktop/scripts/workspaces.ts b/desktop/scripts/workspaces.tsx similarity index 100% rename from desktop/scripts/workspaces.ts rename to desktop/scripts/workspaces.tsx