File tree 2 files changed +14
-2
lines changed
2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -46,11 +46,23 @@ function getRunner(logger) {
46
46
return api . reinstall ( opts ) ;
47
47
} ) ;
48
48
}
49
+
50
+ function rebundle ( setting ) {
51
+ logger . log ( 'execute command: rebundle' ) ;
52
+
53
+ var api = getAPI ( setting ) ;
54
+ return api . readConfig ( setting . config , true ) . then ( function ( ) {
55
+ var opts = tsd . Options . fromJSON ( setting . opts ) ;
56
+ logger . log ( 'running...' ) ;
57
+ return api . updateBundle ( api . context . config . bundle , true ) ;
58
+ } ) ;
59
+ }
49
60
50
61
return {
51
62
getAPI : getAPI ,
52
63
commands : {
53
- reinstall : reinstall
64
+ reinstall : reinstall ,
65
+ rebundle : rebundle
54
66
}
55
67
} ;
56
68
}
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " gulp-tsd" ,
3
3
"author" :
" moznion <[email protected] >" ,
4
- "version" : " 0.1.0 " ,
4
+ "version" : " 0.1.1 " ,
5
5
"description" : " Gulp plugin to automate TSD and TypeScript definition related tasks" ,
6
6
"main" : " index.js" ,
7
7
"scripts" : {
You can’t perform that action at this time.
0 commit comments