Skip to content

Commit b5ab88a

Browse files
committed
Add log line
1 parent ef3ccad commit b5ab88a

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

bin/helpers/archiver.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,10 @@ const archiveSpecs = (runSettings, filePath, excludeFiles) => {
3838

3939
archive.pipe(output);
4040

41+
let ignoreFiles = getFilesToIgnore(runSettings, excludeFiles);
42+
4143
Constants.allowedFileTypes.forEach(fileType => {
42-
archive.glob(`**/*.${fileType}`, { cwd: cypressFolderPath, matchBase: true, ignore: getFilesToIgnore(runSettings, excludeFiles) });
44+
archive.glob(`**/*.${fileType}`, { cwd: cypressFolderPath, matchBase: true, ignore: ignoreFiles });
4345
});
4446

4547
let packageJSON = {};
@@ -67,9 +69,12 @@ const getFilesToIgnore = (runSettings, excludeFiles) => {
6769
// exclude files asked by the user
6870
// args will take precedence over config file
6971
if (!utils.isUndefined(excludeFiles)) {
70-
ignoreFiles = ignoreFiles.concat(utils.fixCommaSeparatedString(excludeFiles).split(','));
72+
let excludePatterns = utils.fixCommaSeparatedString(excludeFiles).split(',');
73+
ignoreFiles = ignoreFiles.concat(excludePatterns);
74+
logger.info(`Excluding files matching: ${JSON.stringify(excludePatterns)}`);
7175
} else if (!utils.isUndefined(runSettings.exclude) && runSettings.exclude.length) {
7276
ignoreFiles = ignoreFiles.concat(runSettings.exclude);
77+
logger.info(`Excluding files matching: ${JSON.stringify(runSettings.exclude)}`);
7378
}
7479

7580
return ignoreFiles;

0 commit comments

Comments
 (0)