Skip to content

Commit

Permalink
feat(@nestjs/swagger): add resolve-path util
Browse files Browse the repository at this point in the history
  • Loading branch information
destyk committed Jul 31, 2023
1 parent 5fa7e48 commit cb299b1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/utils/resolve-path.util.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import * as pathLib from 'path';

export function resolvePath(path: string): string {
return path ? pathLib.resolve(path) : path;
}

0 comments on commit cb299b1

Please sign in to comment.