Skip to content

Commit

Permalink
🐛 fix when no npm_depdencies flag is added
Browse files Browse the repository at this point in the history
  • Loading branch information
Archish27 committed Feb 15, 2023
1 parent 6cea03b commit fd677e8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/helpers/checkUploaded.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@ const checkUploadedMd5 = (bsConfig, args, instrumentBlocks) => {
packageUrlPresent: false,
};
const runSettings = bsConfig.run_settings;
if (typeof runSettings.npm_dependencies === 'object') {
if (runSettings.npm_dependencies != undefined &&
Object.keys(obj).length !== 0 &&
runSettings.npm_dependencies == typeof runSettings.npm_dependencies === 'object') {
if (!("cypress" in runSettings.npm_dependencies)) {
logger.warn("Missing cypress not found in npm_dependencies");
if ("cypress_version" in runSettings && !runSettings.cypress_version.toString().match(Constants.LATEST_VERSION_SYNTAX_REGEX)) {
Expand Down

0 comments on commit fd677e8

Please sign in to comment.