Skip to content

Commit cc04cbf

Browse files
committed
fix - archive the package.json before finalize()
1 parent e65dd49 commit cc04cbf

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

bin/helpers/archiver.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,9 @@ const archiveSpecs = (bsConfig, filePath) => {
3939

4040
let allowedFileTypes = [ 'js', 'json', 'txt', 'ts' ]
4141
allowedFileTypes.forEach(fileType => {
42-
archive
43-
.glob(`**/*.${fileType}`, { cwd: cypressFolderPath, matchBase: true, ignore: 'node_modules/**' })
44-
.append(packageJSON, { name: 'package.json' });
42+
archive.glob(`**/*.${fileType}`, { cwd: cypressFolderPath, matchBase: true, ignore: 'node_modules/**' })
4543
});
44+
archive.append(packageJSON, { name: 'package.json' });
4645

4746
archive.finalize();
4847
});

0 commit comments

Comments
 (0)