Skip to content

Commit

Permalink
fix(template): rootPath is empty when path is relative
Browse files Browse the repository at this point in the history
  • Loading branch information
neikvon committed Dec 17, 2020
1 parent 9e9397a commit 6a69b7e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ export abstract class Template extends BaseClass {
this.error(`Cann't find the path of factory. Please update the factory.`)
return this.exit()
}

this.rootPath = join(factoryDir, this.path)
}
}
protected async gathering(flags: any): Promise<any> {}
Expand Down

0 comments on commit 6a69b7e

Please sign in to comment.