Skip to content

Commit

Permalink
be compatible with Teafile when install subModule libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
peze authored and JacksonTian committed Aug 5, 2020
1 parent 678d804 commit c946013
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commands/install.js
Expand Up @@ -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 [];
}
Expand Down

0 comments on commit c946013

Please sign in to comment.