Skip to content

Commit

Permalink
fix(factory): type error when factory is link from local
Browse files Browse the repository at this point in the history
  • Loading branch information
neikvon committed Dec 21, 2020
1 parent 8d726e3 commit f9704c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export abstract class Factory extends BaseClass {

public init(baseDir?: string, type?: FactoryType) {
this.baseDir = this.baseDir || baseDir || ''
this.type = this.type || type || 'npm'
this.type = type ?? this.type

if (!this.baseDir) {
return
Expand Down

0 comments on commit f9704c4

Please sign in to comment.