diff --git a/desktop/doctor/package.json b/desktop/doctor/package.json index 3d728f0882b..2c703e4e3da 100644 --- a/desktop/doctor/package.json +++ b/desktop/doctor/package.json @@ -13,8 +13,7 @@ "scripts": { "reset": "rimraf lib *.tsbuildinfo", "build": "tsc -b", - "prepack": "yarn reset && yarn build", - "run": "yarn run build && node lib/cli.js" + "prepack": "yarn reset && yarn build" }, "files": [ "lib/**/*" diff --git a/desktop/doctor/src/cli.tsx b/desktop/doctor/src/cli.tsx deleted file mode 100644 index dd1b1089776..00000000000 --- a/desktop/doctor/src/cli.tsx +++ /dev/null @@ -1,38 +0,0 @@ -/** - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @format - */ - -import {getHealthchecks} from './index'; -import {getEnvInfo} from './environmentInfo'; - -(async () => { - const environmentInfo = await getEnvInfo(); - console.log(JSON.stringify(environmentInfo)); - const healthchecks = getHealthchecks(false); - const results = await Promise.all( - Object.entries(healthchecks).map(async ([key, category]) => [ - key, - category.isSkipped - ? category - : { - label: category.label, - results: await Promise.all( - category.healthchecks.map(async ({key, label, run}) => ({ - key, - label, - // TODO: Fix this the next time the file is edited. - // eslint-disable-next-line @typescript-eslint/no-non-null-assertion - result: await run!(environmentInfo), - })), - ), - }, - ]), - ); - - console.log(JSON.stringify(results, null, 2)); -})();