Skip to content

Commit db549fa

Browse files
jhheidermxcl
authored andcommitted
rename platform > platforms
1 parent 2b3c107 commit db549fa

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
</p>
1717

1818

19-
# tea/cli 0.29.0
19+
# tea/cli 0.30.0
2020

2121
`tea` puts the whole open source ecosystem at your fingertips:
2222

src/hooks/usePantry.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -137,11 +137,11 @@ const getRuntimeEnvironment = async (pkg: Package): Promise<Record<string, strin
137137
}
138138

139139
const available = async (pkg: PackageRequirement): Promise<boolean> => {
140-
let { platform } = await entry(pkg).yml()
141-
if (!platform) return true
142-
if (isString(platform)) platform = [platform]
143-
if (!isArray(platform)) throw new Error("bad-yaml")
144-
return platform.includes(host().platform) ||platform.includes(`${host().platform}/${host().arch}`)
140+
let { platforms } = await entry(pkg).yml()
141+
if (!platforms) return true
142+
if (isString(platforms)) platforms = [platforms]
143+
if (!isArray(platforms)) throw new Error("bad-yaml")
144+
return platforms.includes(host().platform) ||platforms.includes(`${host().platform}/${host().arch}`)
145145
}
146146

147147
function entry({ project }: { project: string }): Entry {

0 commit comments

Comments
 (0)