Skip to content

Commit bd6b61c

Browse files
committed
refactor: format code
1 parent f951c63 commit bd6b61c

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/index.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,10 @@ const transformer = <T extends ts.Node>(_: ts.Program) => {
1515
}
1616
const baseUrl = compilerOptions.baseUrl;
1717
const paths = compilerOptions.paths;
18-
const regPaths = Object.keys(paths)
19-
.map(key => ({
20-
regexp: new RegExp("^" + key.replace("*", "(.*)") + "$"),
21-
resolve: paths[key][0]
22-
}));
18+
const regPaths = Object.keys(paths).map(key => ({
19+
regexp: new RegExp("^" + key.replace("*", "(.*)") + "$"),
20+
resolve: paths[key][0]
21+
}));
2322
let fileDir = "";
2423
function findFileInPaths(text: string) {
2524
for (const path of regPaths) {

0 commit comments

Comments
 (0)