From 2dfcde49f57355f8b00a6a889bc5dc1954d4f01a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nacho=20Codo=C3=B1er?= Date: Sat, 3 May 2025 09:07:20 +0200 Subject: [PATCH] add METEOR_CORDOVA_DISABLE env --- tools/cli/commands.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/cli/commands.js b/tools/cli/commands.js index 2563973998..5cae318e1f 100644 --- a/tools/cli/commands.js +++ b/tools/cli/commands.js @@ -596,7 +596,8 @@ async function doRunCommand(options) { const buildMode = options.production ? 'production' : 'development'; let cordovaRunner; - if (!_.isEmpty(runTargets)) { + const shouldDisableCordova = Boolean(JSON.parse(process.env.METEOR_CORDOVA_DISABLE || 'false')); + if (!shouldDisableCordova && !_.isEmpty(runTargets)) { async function prepareCordovaProject() { import { CordovaProject } from '../cordova/project.js';