[ci] format
This commit is contained in:
parent
1d2389cb6f
commit
f206bde0ff
1 changed files with 12 additions and 8 deletions
|
@ -43,15 +43,19 @@ export async function getPackage<T>(
|
|||
|
||||
function tryResolve(packageName: string, cwd: string) {
|
||||
return new Promise((resolve, reject) => {
|
||||
resolvePackage(packageName, {
|
||||
basedir: cwd,
|
||||
}, (err) => {
|
||||
if(err) {
|
||||
reject(err);
|
||||
} else {
|
||||
resolve(0);
|
||||
resolvePackage(
|
||||
packageName,
|
||||
{
|
||||
basedir: cwd,
|
||||
},
|
||||
(err) => {
|
||||
if (err) {
|
||||
reject(err);
|
||||
} else {
|
||||
resolve(0);
|
||||
}
|
||||
}
|
||||
});
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue