mark unused vars as errors
Reviewed By: lblasa Differential Revision: D50500690 fbshipit-source-id: 6f739fe25c232ecfe842337af4399681e85f6a13
This commit is contained in:
committed by
Facebook GitHub Bot
parent
4834fda6fa
commit
663380e721
@@ -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'));
|
||||
|
||||
@@ -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.');
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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]')
|
||||
|
||||
Reference in New Issue
Block a user