1. Replace klaw with recursive-readdir

2. Break out reading files logic to a helper function (add tests)
3. Use Promise.all to make sure all files are uploaded
This commit is contained in:
Himanshu Mishra
2020-12-10 00:09:30 +01:00
parent 92ecddbe24
commit 9507d72a38
5 changed files with 114 additions and 70 deletions
+2 -3
View File
@@ -48,14 +48,13 @@
"fs-extra": "^9.0.1",
"git-url-parse": "^11.4.0",
"js-yaml": "^3.14.0",
"klaw": "^3.0.0",
"mock-fs": "^4.13.0",
"nodegit": "^0.27.0",
"recursive-readdir": "^2.2.2",
"winston": "^3.2.1"
},
"devDependencies": {
"@backstage/cli": "^0.4.0",
"@types/klaw": "^3.0.1"
"@backstage/cli": "^0.4.0"
},
"jest": {
"roots": [