Skip to content

Commit 5f37853

Browse files
committed
Use current working dir rather than __dirname
1 parent d82798f commit 5f37853

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

buildFiles.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function getBuildFiles(externalFiles, debugLog) {
2020
});
2121
}
2222

23-
const directoryToSearchIn = __dirname
23+
const directoryToSearchIn = process.cwd()
2424

2525
debugLog(`Recursively looking for build files in directory ${directoryToSearchIn}`)
2626

@@ -34,6 +34,7 @@ function getBuildFiles(externalFiles, debugLog) {
3434
}
3535

3636
const getAllBuildFiles = function (dirPath, arrayOfFiles) {
37+
console.log('checking ' + dirPath)
3738
const files = fs.readdirSync(dirPath)
3839

3940
arrayOfFiles = arrayOfFiles || []

0 commit comments

Comments
 (0)