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

Commit 2b444b5

Browse files
committed
add logs
1 parent 7b4e565 commit 2b444b5

File tree

3 files changed

+8
-10
lines changed

3 files changed

+8
-10
lines changed

dist/index.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,12 +109,11 @@ function searchForFile(filename) {
109109
return __awaiter(this, void 0, void 0, function* () {
110110
console.log(`searching for ${filename} in ${process.cwd()}`);
111111
const { stdout } = yield (0, execa_1.default)('find', [
112-
'.',
112+
`'${process.cwd()}'`,
113113
'-name',
114114
`'${filename}'`
115-
], {
116-
cwd: process.cwd()
117-
});
115+
]);
116+
console.log(stdout);
118117
const dirs = stdout
119118
.split('\n')
120119
.filter(s => s.length > 0)

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: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,12 @@ async function searchForFile (filename:string) {
1919
console.log(`searching for ${filename} in ${process.cwd()}`)
2020

2121
const { stdout } = await execa('find', [
22-
'.',
22+
`'${process.cwd()}'`,
2323
'-name',
2424
`'${filename}'`
25-
],
26-
{
27-
cwd: process.cwd()
28-
})
25+
])
26+
27+
console.log(stdout)
2928

3029
const dirs = stdout
3130
.split('\n')

0 commit comments

Comments
 (0)