Skip to content

Commit d4a1c4f

Browse files
mgechevalexeagle
authored andcommitted
fix(@angular-devkit/architect): consume the default export in TestingArchitectHost
Using the TestingArchitectHost architect is unable to execute the handler of the builder since it needs to access its `default` property.
1 parent 950ebaf commit d4a1c4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/angular_devkit/architect/testing/testing-architect-host.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export class TestingArchitectHost implements ArchitectHost {
5656
const b = builders[builderName];
5757
// TODO: remove this check as v1 is not supported anymore.
5858
if (!b.implementation) { continue; }
59-
const handler = await import(builderJsonPath + '/../' + b.implementation);
59+
const handler = (await import(builderJsonPath + '/../' + b.implementation)).default;
6060
const optionsSchema = await import(builderJsonPath + '/../' + b.schema);
6161
this.addBuilder(`${packageJson.name}:${builderName}`, handler, b.description, optionsSchema);
6262
}

0 commit comments

Comments
 (0)