From f6facdb491fc20dbe8726d15d606df51a04033fe Mon Sep 17 00:00:00 2001 From: Prajwal Dhawarikar Date: Mon, 10 Apr 2023 16:47:44 +0530 Subject: [PATCH] fix missing cypress issue --- bin/commands/runs.js | 3 +++ bin/helpers/checkUploaded.js | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/commands/runs.js b/bin/commands/runs.js index b6554ce5..7c72c703 100644 --- a/bin/commands/runs.js +++ b/bin/commands/runs.js @@ -102,6 +102,9 @@ module.exports = function run(args, rawArgs) { // set the no-wrap utils.setNoWrap(bsConfig, args); + // add cypress dependency if missing + utils.setCypressNpmDependency(bsConfig); + const { packagesInstalled } = await packageInstaller.packageSetupAndInstaller(bsConfig, config.packageDirName, {markBlockStart, markBlockEnd}); // set build tag caps diff --git a/bin/helpers/checkUploaded.js b/bin/helpers/checkUploaded.js index 79385946..32cafb5d 100644 --- a/bin/helpers/checkUploaded.js +++ b/bin/helpers/checkUploaded.js @@ -86,7 +86,7 @@ const checkUploadedMd5 = (bsConfig, args, instrumentBlocks) => { zipUrlPresent: false, packageUrlPresent: false, }; - utils.setCypressNpmDependency(bsConfig); + if (args["force-upload"]) { logger.debug("force-upload set to true. Uploading tests and npm packages."); return resolve(obj);