From c946013fecc86f467a155fe8c4442dc4a513ae12 Mon Sep 17 00:00:00 2001 From: peze Date: Thu, 6 Aug 2020 00:03:20 +0800 Subject: [PATCH] be compatible with Teafile when install subModule libraries --- commands/install.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/install.js b/commands/install.js index 812d2b5..48e4b80 100644 --- a/commands/install.js +++ b/commands/install.js @@ -104,7 +104,7 @@ async function checkInstall(ctx, libs, aliasId, pwd) { } async function getLibsFromTeaFile(ctx, pwd) { - const pkgPath = path.join(pwd, PKG_FILE); + const pkgPath = fs.existsSync(path.join(pwd, 'Darafile')) ? path.join(pwd, 'Darafile') : path.join(pwd,'Teafile'); if (!fs.existsSync(pkgPath)) { return []; }