From b47fba37d5e16f4cbf99e5ef720775808c719a7a Mon Sep 17 00:00:00 2001 From: Alec Larson <1925840+aleclarson@users.noreply.github.com> Date: Sun, 17 Nov 2024 14:15:13 -0500 Subject: [PATCH] disable warning for --experimental-strip-types --- scripts/run.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/run.js b/scripts/run.js index 209473f6..20767d70 100644 --- a/scripts/run.js +++ b/scripts/run.js @@ -18,7 +18,7 @@ async function main([command, ...argv]) { process.exit(1) } - // Only a few environment variables are exposed to install/postinstall + // Only a few environment variables are exposed to install/postinstall // scripts when installing dependencies from NPM. const strictEnv = pick(process.env, [ 'PATH', @@ -103,7 +103,10 @@ async function main([command, ...argv]) { } } else { runner = 'node' - runnerArgs = ['--experimental-strip-types'] + runnerArgs = [ + '--experimental-strip-types', + '--disable-warning=ExperimentalWarning', + ] } const commandPath = path.join(commandDir, 'src/main.ts')