Skip to content

Commit

Permalink
fix: resolve manifest promise when manifest is not found
Browse files Browse the repository at this point in the history
ref #4822
  • Loading branch information
zkochan committed May 31, 2022
1 parent 5e4b9e4 commit 0ba6d8f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions packages/cafs/src/addFilesFromTarball.ts
Expand Up @@ -47,5 +47,8 @@ export default async function (
.pipe(decompress() as Duplex)
.on('error', reject).pipe(extract)
})
if (!filesIndex['package.json'] && manifest != null) {
manifest.resolve(undefined)
}
return filesIndex
}
2 changes: 1 addition & 1 deletion packages/fetcher-base/src/index.ts
Expand Up @@ -45,7 +45,7 @@ export interface FetchOptions {
}

export interface DeferredManifestPromise {
resolve: (manifest: DependencyManifest) => void
resolve: (manifest: DependencyManifest | undefined) => void
reject: (err: Error) => void
}

Expand Down

0 comments on commit 0ba6d8f

Please sign in to comment.