Commit b954ac9 Carmine DiMascio
committed
1 parent 73fe192 commit b954ac9 Copy full SHA for b954ac9
File tree 1 file changed +7
-4
lines changed
1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ module.exports = class extends Generator {
50
50
{ name : 'OpenApi 3' , value : 'openapi_3' } ,
51
51
{ name : 'Swagger 2' , value : 'swagger_2' } ,
52
52
] ,
53
+ default : 'openapi_3' ,
53
54
} ,
54
55
] ;
55
56
@@ -103,14 +104,16 @@ module.exports = class extends Generator {
103
104
} ;
104
105
105
106
if ( this . specification === 'openapi_3' ) {
106
- copyOpts . globOptions . ignore . push ( '** /server/common/swagger.js ') ;
107
- copyOpts . globOptions . ignore . push ( '** /server/common/api.v2.yml') ;
107
+ copyOpts . globOptions . ignore . push ( src + ' /server/common/swagger.ts ') ;
108
+ copyOpts . globOptions . ignore . push ( src + ' /server/common/api.v2.yml') ;
108
109
} else {
109
110
files . push ( 'server/common/api.v2.yml' ) ;
110
- copyOpts . globOptions . ignore . push ( '** /server/common/api.yml') ;
111
+ copyOpts . globOptions . ignore . push ( src + ' /server/common/api.yml') ;
111
112
}
112
113
if ( ! this . docker ) {
113
- copyOpts . globOptions . ignore . push ( '**/+(Dockerfile|.dockerignore)' ) ;
114
+ copyOpts . globOptions . ignore . push (
115
+ src + '/+(Dockerfile|.dockerignore)'
116
+ ) ;
114
117
}
115
118
116
119
this . fs . copy ( src , dest , copyOpts ) ;
You can’t perform that action at this time.
0 commit comments