File tree Expand file tree Collapse file tree 3 files changed +872
-670
lines changed Expand file tree Collapse file tree 3 files changed +872
-670
lines changed Original file line number Diff line number Diff line change 15
15
"package" : " pkg --targets node8.11.3-linux-x64,node8.11.3-win-x64,node8.11.3-macos-x64 -o exoframe index.js"
16
16
},
17
17
"dependencies" : {
18
- "boxen" : " ^1.2.2 " ,
18
+ "boxen" : " ^2.0.0 " ,
19
19
"chalk" : " ^2.4.1" ,
20
20
"cli-table" : " ^0.3.1" ,
21
- "got" : " ^8.3 .2" ,
21
+ "got" : " ^9.2 .2" ,
22
22
"highland" : " ^2.13.0" ,
23
- "ignore" : " ^4.0.2" ,
24
- "inquirer" : " ^6.0.0" ,
23
+ "inquirer" : " ^6.2.0" ,
25
24
"js-yaml" : " ^3.12.0" ,
26
25
"jsonwebtoken" : " ^8.3.0" ,
27
- "lodash" : " ^4.17.10" ,
26
+ "lodash" : " ^4.17.11" ,
27
+ "multimatch" : " ^2.1.0" ,
28
28
"opn" : " ^5.3.0" ,
29
- "ora" : " ^2.1 .0" ,
29
+ "ora" : " ^3.0 .0" ,
30
30
"tar-fs" : " ^1.16.3" ,
31
31
"update-notifier" : " ^2.5.0" ,
32
- "yargs" : " ^12.0.1 "
32
+ "yargs" : " ^12.0.2 "
33
33
},
34
34
"devDependencies" : {
35
35
"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"
40
40
},
41
41
"jest" : {
42
42
"testEnvironment" : " node"
Original file line number Diff line number Diff line change 1
1
// npm modules
2
2
const chalk = require ( 'chalk' ) ;
3
- const ignore = require ( 'ignore ' ) ;
3
+ const multimatch = require ( 'multimatch ' ) ;
4
4
const tar = require ( 'tar-fs' ) ;
5
5
const got = require ( 'got' ) ;
6
6
const path = require ( 'path' ) ;
@@ -164,9 +164,12 @@ exports.handler = async (args = {}) => {
164
164
}
165
165
166
166
// create tar stream from current folder
167
- const ig = ignore ( ) . add ( ignores ) ;
168
167
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
+ } ,
170
173
} ) ;
171
174
// if in verbose mode - log ignores
172
175
verbose && console . log ( '\nIgnoring following paths:' , ignores ) ;
You can’t perform that action at this time.
0 commit comments