Skip to content

Commit f9704c4

Browse files
committed
fix(factory): type error when factory is link from local
1 parent 8d726e3 commit f9704c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/factory.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export abstract class Factory extends BaseClass {
5656

5757
public init(baseDir?: string, type?: FactoryType) {
5858
this.baseDir = this.baseDir || baseDir || ''
59-
this.type = this.type || type || 'npm'
59+
this.type = type ?? this.type
6060

6161
if (!this.baseDir) {
6262
return

0 commit comments

Comments
 (0)