Skip to content

Commit

Permalink
it is not bad-yaml to not provide an array here
Browse files Browse the repository at this point in the history
  • Loading branch information
mxcl committed Oct 20, 2022
1 parent e6372eb commit 68b283f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/hooks/usePantry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ const getScript = async (pkg: Package, key: 'build' | 'test', deps: Installation
const getProvides = async (pkg: Package | PackageRequirement) => {
const yml = await entry(pkg).yml()
const node = yml["provides"]
if (!node) return []
if (!isArray(node)) throw "bad-yaml"

return node.compact(x => {
Expand Down

0 comments on commit 68b283f

Please sign in to comment.