mark unused vars as errors

Reviewed By: lblasa

Differential Revision: D50500690

fbshipit-source-id: 6f739fe25c232ecfe842337af4399681e85f6a13
This commit is contained in:
Anton Kastritskiy
2023-10-20 12:44:58 -07:00
committed by Facebook GitHub Bot
parent 4834fda6fa
commit 663380e721
14 changed files with 11 additions and 28 deletions

View File

@@ -437,7 +437,7 @@ async function buildServerRelease() {
await fs.mkdirp(path.join(dir, 'static', 'defaultPlugins'));
await prepareDefaultPlugins(argv.channel === 'insiders');
await compileServerMain(false);
await compileServerMain();
await copyStaticResources(dir, versionNumber);
await linkLocalDeps(dir);
await downloadIcons(path.join(dir, 'static'));

View File

@@ -279,7 +279,7 @@ export function genMercurialRevision(): Promise<string | null> {
.catch(() => null);
}
export async function compileServerMain(dev: boolean) {
export async function compileServerMain() {
console.log('⚙️ Compiling server sources...');
await exec(`cd ${serverDir} && yarn build`);
console.log('✅ Compiled server sources.');

View File

@@ -102,7 +102,7 @@ async function copyStaticResources() {
async function restartServer() {
try {
await compileServerMain(true);
await compileServerMain();
await launchServer(true, ++startCount === 1); // only open on the first time
} catch (e) {
console.error(

View File

@@ -16,7 +16,6 @@ import {EOL} from 'os';
import pmap from 'p-map';
import {rootDir} from './paths';
import yargs from 'yargs';
import {isPluginJson} from 'flipper-common';
const argv = yargs
.usage('yarn tsc-plugins [args]')