File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -83,7 +83,9 @@ module.exports = class Generator {
83
83
this . pm = new PackageManager ( { context } )
84
84
this . imports = { }
85
85
this . rootOptions = { }
86
- this . afterInvokeCbs = afterInvokeCbs
86
+ // we don't load the passed afterInvokes yet because we want to ignore them from other plugins
87
+ this . passedAfterInvokeCbs = afterInvokeCbs
88
+ this . afterInvokeCbs = [ ]
87
89
this . afterAnyInvokeCbs = afterAnyInvokeCbs
88
90
this . configTransforms = { }
89
91
this . defaultConfigTransforms = defaultConfigTransforms
@@ -130,6 +132,7 @@ module.exports = class Generator {
130
132
const afterAnyInvokeCbsFromPlugins = this . afterAnyInvokeCbs
131
133
132
134
// reset hooks
135
+ this . afterInvokeCbs = this . passedAfterInvokeCbs
133
136
this . afterAnyInvokeCbs = [ ]
134
137
this . postProcessFilesCbs = [ ]
135
138
@@ -142,7 +145,7 @@ module.exports = class Generator {
142
145
if ( apply . hooks ) {
143
146
// while we execute the entire `hooks` function,
144
147
// only the `afterInvoke` hook is respected
145
- // because `afterAnyHooks` is already determined by the `allPluginIds` loop aboe
148
+ // because `afterAnyHooks` is already determined by the `allPluginIds` loop above
146
149
await apply . hooks ( api , options , rootOptions , pluginIds )
147
150
}
148
151
You can’t perform that action at this time.
0 commit comments