Skip to content

Commit

Permalink
fix: allowing nested empty directories. fixes #245 and #144
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Maietta committed Oct 27, 2022
1 parent e48b380 commit 29ae780
Show file tree
Hide file tree
Showing 3 changed files with 334 additions and 265 deletions.
3 changes: 3 additions & 0 deletions lib/filesystem.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ class Filesystem {
const dirs = p.split(path.sep)
for (const dir of dirs) {
if (dir !== '.') {
if (!json.files[dir]) {
json.files[dir] = { files: {} }
}
json = json.files[dir]
}
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"devDependencies": {
"@continuous-auth/semantic-release-npm": "^2.0.0",
"@semantic-release/changelog": "^5.0.0",
"electron": "^5.0.0",
"electron": "^15.0.0",
"electron-mocha": "^8.2.1",
"lodash": "^4.17.15",
"mocha": "^7.1.1",
Expand Down
Loading

0 comments on commit 29ae780

Please sign in to comment.