We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c69b969 commit c507227Copy full SHA for c507227
1 file changed
lib/blueprint.ts
@@ -124,12 +124,13 @@ export default class Blueprint extends Command {
124
.reduce<{ [key: string]: typeof Blueprint }>((BlueprintsSoFar, dirname: string) => {
125
let BlueprintClass;
126
try {
127
- BlueprintClass = require(path.join(dir, dirname));
+ let Klass = require(path.join(dir, dirname));
128
+ BlueprintClass = Klass.default || Klass;
129
} catch (e) {
130
throw new NestedError(`Unable to load blueprint from ${ dir } -> ${ dirname }`, e);
131
}
132
BlueprintClass.addon = addonName;
- BlueprintsSoFar[dirname] = BlueprintClass.default || BlueprintClass;
133
+ BlueprintsSoFar[dirname] = BlueprintClass;
134
return BlueprintsSoFar;
135
}, {});
136
// Capture the source directory of the blueprint
0 commit comments