Skip to content
This repository was archived by the owner on Jun 16, 2022. It is now read-only.

Commit 1569dbc

Browse files
committed
logit
1 parent 8146dc9 commit 1569dbc

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

dist/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,10 +114,12 @@ function searchForFile(filename) {
114114
]);
115115
const dirs = stdout
116116
.split('\n')
117+
.filter(s => s.length > 0)
117118
// remove the file name
118119
.map((filename) => path.dirname(filename))
119120
// map to absolute path
120121
.map((pathname) => path.resolve(__dirname, pathname));
122+
console.log(dirs);
121123
return dirs;
122124
});
123125
}

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,14 @@ async function searchForFile (filename:string) {
2424

2525
const dirs = stdout
2626
.split('\n')
27+
.filter(s => s.length > 0)
2728
// remove the file name
2829
.map((filename) => path.dirname(filename))
2930
// map to absolute path
3031
.map((pathname) => path.resolve(__dirname, pathname))
3132

33+
console.log(dirs)
34+
3235
return dirs
3336
}
3437

0 commit comments

Comments
 (0)