Skip to content

Commit

Permalink
fix: 🐛error when .env is a folder (parcel-bundler#3958)
Browse files Browse the repository at this point in the history
* fix: 🐛error when .env is a folder

* fix linting issue

Co-authored-by: Jasper De Moor <[email protected]>
Co-authored-by: Niklas Mischkulnig <[email protected]>
  • Loading branch information
3 people committed Jan 11, 2020
1 parent 9da061e commit 08956dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/utils/src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export async function resolveConfig(

for (const filename of filenames) {
let file = path.join(filepath, filename);
if (await fs.exists(file)) {
if ((await fs.exists(file)) && (await fs.stat(file)).isFile()) {
return file;
}
}
Expand Down

0 comments on commit 08956dd

Please sign in to comment.