Commit c507227 1 parent c69b969 commit c507227 Copy full SHA for c507227
File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -124,12 +124,13 @@ export default class Blueprint extends Command {
124
124
. reduce < { [ key : string ] : typeof Blueprint } > ( ( BlueprintsSoFar , dirname : string ) => {
125
125
let BlueprintClass ;
126
126
try {
127
- BlueprintClass = require ( path . join ( dir , dirname ) ) ;
127
+ let Klass = require ( path . join ( dir , dirname ) ) ;
128
+ BlueprintClass = Klass . default || Klass ;
128
129
} catch ( e ) {
129
130
throw new NestedError ( `Unable to load blueprint from ${ dir } -> ${ dirname } ` , e ) ;
130
131
}
131
132
BlueprintClass . addon = addonName ;
132
- BlueprintsSoFar [ dirname ] = BlueprintClass . default || BlueprintClass ;
133
+ BlueprintsSoFar [ dirname ] = BlueprintClass ;
133
134
return BlueprintsSoFar ;
134
135
} , { } ) ;
135
136
// Capture the source directory of the blueprint
You can’t perform that action at this time.
0 commit comments