Skip to content

Commit 81f6059

Browse files
committed
Update dependencies
1 parent c346f9d commit 81f6059

File tree

3 files changed

+872
-670
lines changed

3 files changed

+872
-670
lines changed

package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,28 +15,28 @@
1515
"package": "pkg --targets node8.11.3-linux-x64,node8.11.3-win-x64,node8.11.3-macos-x64 -o exoframe index.js"
1616
},
1717
"dependencies": {
18-
"boxen": "^1.2.2",
18+
"boxen": "^2.0.0",
1919
"chalk": "^2.4.1",
2020
"cli-table": "^0.3.1",
21-
"got": "^8.3.2",
21+
"got": "^9.2.2",
2222
"highland": "^2.13.0",
23-
"ignore": "^4.0.2",
24-
"inquirer": "^6.0.0",
23+
"inquirer": "^6.2.0",
2524
"js-yaml": "^3.12.0",
2625
"jsonwebtoken": "^8.3.0",
27-
"lodash": "^4.17.10",
26+
"lodash": "^4.17.11",
27+
"multimatch": "^2.1.0",
2828
"opn": "^5.3.0",
29-
"ora": "^2.1.0",
29+
"ora": "^3.0.0",
3030
"tar-fs": "^1.16.3",
3131
"update-notifier": "^2.5.0",
32-
"yargs": "^12.0.1"
32+
"yargs": "^12.0.2"
3333
},
3434
"devDependencies": {
3535
"coveralls": "^3.0.2",
36-
"jest": "^23.3.0",
37-
"nock": "^9.4.1",
38-
"pkg": "^4.3.3",
39-
"sinon": "^6.1.3"
36+
"jest": "^23.6.0",
37+
"nock": "^10.0.0",
38+
"pkg": "^4.3.4",
39+
"sinon": "^6.3.3"
4040
},
4141
"jest": {
4242
"testEnvironment": "node"

src/commands/deploy.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// npm modules
22
const chalk = require('chalk');
3-
const ignore = require('ignore');
3+
const multimatch = require('multimatch');
44
const tar = require('tar-fs');
55
const got = require('got');
66
const path = require('path');
@@ -164,9 +164,12 @@ exports.handler = async (args = {}) => {
164164
}
165165

166166
// create tar stream from current folder
167-
const ig = ignore().add(ignores);
168167
const tarStream = tar.pack(workdir, {
169-
ignore: name => ig.ignores(name),
168+
ignore: name => {
169+
const relativePath = name.replace(`${workdir}/`, '');
170+
const result = multimatch([relativePath], ignores).length !== 0;
171+
return result;
172+
},
170173
});
171174
// if in verbose mode - log ignores
172175
verbose && console.log('\nIgnoring following paths:', ignores);

0 commit comments

Comments
 (0)