Fix Flipper lints #17

Summary: Mostly disabling warnings for scripts which are fine to use `console.error` directly.

Reviewed By: timur-valiev

Differential Revision: D30812956

fbshipit-source-id: 7fdc5bdf08f72d0d849ece6a4194d6a115d693f0
This commit is contained in:
Pascal Hartig
2021-09-13 02:31:08 -07:00
committed by Facebook GitHub Bot
parent 5fb23f83e9
commit 50f19ed3a0
12 changed files with 22 additions and 2 deletions

View File

@@ -15,6 +15,7 @@ import {runBuild, computePackageChecksum} from 'flipper-pkg-lib';
import yargs from 'yargs';
import tmp from 'tmp';
import {execSync} from 'child_process';
import {promisify} from 'util';
const argv = yargs
.usage('yarn build-plugin [args]')
@@ -89,7 +90,7 @@ async function buildPlugin() {
: path.join(distDir, 'plugins', path.relative(pluginsDir, pluginDir));
await fs.ensureDir(path.dirname(outputFile));
await fs.remove(outputFile);
const {name: tmpDir} = tmp.dirSync();
const tmpDir = await promisify(tmp.dir)();
const packageJsonBackupPath = path.join(tmpDir, 'package.json');
await fs.copy(packageJsonPath, packageJsonBackupPath, {overwrite: true});
try {