Use globby instead of glob-all because it can handle large lists of includes

This commit is contained in:
Doug Moscrop 2017-03-09 19:53:00 -05:00
parent 9facc08792
commit e9bf9f3045
3 changed files with 7 additions and 7 deletions

View File

@ -4,7 +4,7 @@ const archiver = require('archiver');
const BbPromise = require('bluebird');
const path = require('path');
const fs = require('fs');
const glob = require('glob-all');
const globby = require('globby');
module.exports = {
zipDirectory(servicePath, exclude, include, zipFileName) {
@ -39,7 +39,7 @@ module.exports = {
output.on('open', () => {
zip.pipe(output);
const files = glob.sync(patterns, {
const files = globby.sync(patterns, {
cwd: servicePath,
dot: true,
silent: true,

8
npm-shrinkwrap.json generated
View File

@ -322,10 +322,10 @@
"from": "glob@>=7.0.0 <8.0.0",
"resolved": "https://registry.npmjs.org/glob/-/glob-7.1.1.tgz"
},
"glob-all": {
"version": "3.1.0",
"from": "glob-all@>=3.1.0 <4.0.0",
"resolved": "https://registry.npmjs.org/glob-all/-/glob-all-3.1.0.tgz"
"globby": {
"version": "6.1.0",
"from": "globby@>=6.1.0 <7.0.0",
"resolved": "https://registry.npmjs.org/globby/-/globby-6.1.0.tgz"
},
"got": {
"version": "6.6.3",

View File

@ -91,7 +91,7 @@
"filesize": "^3.3.0",
"fs-extra": "^0.26.7",
"get-stdin": "^5.0.1",
"glob-all": "^3.1.0",
"globby": "^6.1.0",
"https-proxy-agent": "^1.0.0",
"js-yaml": "^3.6.1",
"json-refs": "^2.1.5",