From 5b19b378f6e4967099d003edb2036e755d3cc745 Mon Sep 17 00:00:00 2001 From: Michel Weststrate Date: Tue, 29 Mar 2022 09:54:15 -0700 Subject: [PATCH] Disable `.strict()` on all tsx yargs scripts Summary: Some internal jobs started to fail in the same way as GH did. Applied the same patch as in the parent diff. I suspect the cause is an earlier update of node / bash / other dep? Couldn't really find anything clearly pointing at the problem Reviewed By: aigoncharov Differential Revision: D35212673 fbshipit-source-id: c09956137a4b10537718ffa60223cc4e557f41f7 --- desktop/scripts/build-flipper-server-release.tsx | 1 - desktop/scripts/build-plugin.tsx | 1 - desktop/scripts/build-release.tsx | 1 - desktop/scripts/tsc-plugins.tsx | 1 - 4 files changed, 4 deletions(-) diff --git a/desktop/scripts/build-flipper-server-release.tsx b/desktop/scripts/build-flipper-server-release.tsx index 5492611bc..afdb6b537 100644 --- a/desktop/scripts/build-flipper-server-release.tsx +++ b/desktop/scripts/build-flipper-server-release.tsx @@ -94,7 +94,6 @@ const argv = yargs }, }) .help() - .strict() .parse(process.argv.slice(1)); if (isFB) { diff --git a/desktop/scripts/build-plugin.tsx b/desktop/scripts/build-plugin.tsx index 5eb4452de..5bf20690d 100644 --- a/desktop/scripts/build-plugin.tsx +++ b/desktop/scripts/build-plugin.tsx @@ -67,7 +67,6 @@ const argv = yargs }, }) .help() - .strict() .parse(process.argv.slice(1)); async function buildPlugin() { diff --git a/desktop/scripts/build-release.tsx b/desktop/scripts/build-release.tsx index 51687e79c..54dbdabf5 100755 --- a/desktop/scripts/build-release.tsx +++ b/desktop/scripts/build-release.tsx @@ -100,7 +100,6 @@ const argv = yargs }, }) .help() - .strict() .check((argv) => { const targetSpecified = argv.mac || diff --git a/desktop/scripts/tsc-plugins.tsx b/desktop/scripts/tsc-plugins.tsx index 78f350e83..11ab305c6 100644 --- a/desktop/scripts/tsc-plugins.tsx +++ b/desktop/scripts/tsc-plugins.tsx @@ -30,7 +30,6 @@ const argv = yargs }, }) .help() - .strict() .parse(process.argv.slice(1)); const pluginsDir = path.join(rootDir, argv.dir);