Skip to content

Commit 4e5283f

Browse files
committed
🐛 fix when no npm_depdencies flag is added
1 parent 6cea03b commit 4e5283f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bin/helpers/checkUploaded.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,9 @@ const checkUploadedMd5 = (bsConfig, args, instrumentBlocks) => {
8787
packageUrlPresent: false,
8888
};
8989
const runSettings = bsConfig.run_settings;
90-
if (typeof runSettings.npm_dependencies === 'object') {
90+
if (runSettings.npm_dependencies !== undefined &&
91+
Object.keys(runSettings.npm_dependencies).length !== 0 &&
92+
typeof runSettings.npm_dependencies === 'object') {
9193
if (!("cypress" in runSettings.npm_dependencies)) {
9294
logger.warn("Missing cypress not found in npm_dependencies");
9395
if ("cypress_version" in runSettings && !runSettings.cypress_version.toString().match(Constants.LATEST_VERSION_SYNTAX_REGEX)) {

0 commit comments

Comments
 (0)