小程序仓库路径统一化完成

This commit is contained in:
aixianling
2022-05-12 10:58:39 +08:00
parent 115ba62141
commit 5a4c6103e6
8 changed files with 101 additions and 137 deletions

View File

@@ -13,9 +13,10 @@ const getDirs = (dir, list = [], cb) => {
return list
}
getDirs(path.join(__dirname, '..', 'src'), [], (dir, path) => {
if (dir.name == "apps") {
if (["apps"].includes(dir.name)) {
fse.remove(path)
console.log("已清除%s", path)
}
return dir.name != "apps"
return !["apps"].includes(dir.name)
})
fse.remove(path.join(__dirname, '..', 'lib'))