Skip to content

Commit 5ebce9a

Browse files
committed
fix: cwd
1 parent 270a0ed commit 5ebce9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/commands/AddReferencesCommand.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export class AddReferencesCommand implements yargs.CommandModule<object, command
5151
}
5252

5353
async handler(args: commandArgs) {
54-
const cwd = this.cwd;
54+
const cwd = this.cwd ?? process.cwd();
5555
let addedMigrationFiles: string[] = [];
5656
let addedEntityFiles: string[] = [];
5757
let addedSubscriberFiles: string[] = [];

0 commit comments

Comments
 (0)