File tree 2 files changed +6
-6
lines changed 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -6,14 +6,14 @@ module.exports = class Migrator extends Generator {
6
6
plugin,
7
7
8
8
pkg = { } ,
9
- completeCbs = [ ] ,
9
+ afterInvokeCbs = [ ] ,
10
10
files = { } ,
11
11
invoking = false
12
12
} = { } ) {
13
13
super ( context , {
14
14
pkg,
15
15
plugins : [ ] ,
16
- completeCbs ,
16
+ afterInvokeCbs ,
17
17
files,
18
18
invoking
19
19
} )
Original file line number Diff line number Diff line change @@ -118,13 +118,13 @@ module.exports = class Upgrader {
118
118
installed : options . installed
119
119
}
120
120
121
- const createCompleteCbs = [ ]
121
+ const afterInvokeCbs = [ ]
122
122
const migrator = new Migrator ( this . context , {
123
123
plugin : plugin ,
124
124
125
125
pkg : this . pkg ,
126
126
files : await readFiles ( this . context ) ,
127
- completeCbs : createCompleteCbs ,
127
+ afterInvokeCbs ,
128
128
invoking : true
129
129
} )
130
130
@@ -146,9 +146,9 @@ module.exports = class Upgrader {
146
146
await this . pm . install ( )
147
147
}
148
148
149
- if ( createCompleteCbs . length ) {
149
+ if ( afterInvokeCbs . length ) {
150
150
logWithSpinner ( '⚓' , `Running completion hooks...` )
151
- for ( const cb of createCompleteCbs ) {
151
+ for ( const cb of afterInvokeCbs ) {
152
152
await cb ( )
153
153
}
154
154
stopSpinner ( )
You can’t perform that action at this time.
0 commit comments