mirror of
https://github.com/serverless/serverless.git
synced 2026-01-25 15:07:39 +00:00
Use globby instead of glob-all because it can handle large lists of includes
This commit is contained in:
parent
9facc08792
commit
e9bf9f3045
@ -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
8
npm-shrinkwrap.json
generated
@ -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",
|
||||
|
||||
@ -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",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user