diff options
Diffstat (limited to 'hooks/files.js')
-rw-r--r-- | hooks/files.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hooks/files.js b/hooks/files.js index 8e26dee..36a7894 100644 --- a/hooks/files.js +++ b/hooks/files.js @@ -42,5 +42,6 @@ const getAllFiles = function(dirPath, arrayOfFiles) { }
module.exports = (pkg) => {
- return getAllFiles((home + "/packages/" + pkg).replaceAll("\\", "/")).map(i => i.replaceAll("\\", "/").replaceAll((home + "/packages/" + pkg).replaceAll("\\", "/") + "/", ""));
+ let pkg2 = (twiplatform === "alicorn" ? pkg.replaceAll("_", "-").replaceAll(".", "-").split("-").map((i) => { return i.substring(0, 1).toUpperCase() + i.substring(1).toLowerCase() }).join("") : pkg)
+ return getAllFiles((home + "/packages/" + pkg2).replaceAll("\\", "/")).map(i => i.replaceAll("\\", "/").replaceAll((home + "/packages/" + pkg2).replaceAll("\\", "/") + "/", ""));
}
\ No newline at end of file |