Skip to content

Commit

Permalink
Merge 63e9266 into 77d1e80
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima committed Mar 17, 2020
2 parents 77d1e80 + 63e9266 commit dfbac4d
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions lib/run-context.js
Expand Up @@ -100,11 +100,9 @@ RunContext.prototype._run = function() {
helpers.registerDependencies(this.env, this.dependencies);

if (typeof this.Generator === 'string') {
// If the generator contains : then treat as a namespace.
if (!path.isAbsolute(this.Generator) && this.Generator.includes(':')) {
namespace = this.Generator;
} else {
namespace = this.env.namespace(this.Generator);
namespace = this.env.namespace(this.Generator);
if (namespace !== this.Generator) {
// Generator is a file path, it should be registered.
this.env.register(this.Generator);
}
} else {
Expand Down

0 comments on commit dfbac4d

Please sign in to comment.