Skip to content

Commit 796a6ea

Browse files
committed
Fixes #275
1 parent 0325f7b commit 796a6ea

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

bin/cmd/build

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,6 @@ if (config.path.build.string.includes(" ")) {
5050
Deno.exit(1)
5151
}
5252

53-
if (!await hooks.usePantry().project(config.pkg.project).available()) {
54-
console.warn("warn: project not available on this platform")
55-
Deno.exit(2)
56-
}
57-
5853
const yml = YAML.parse(await config.path.yaml.read()) as any
5954

6055
/// fetch

lib/config.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@ export interface ConfigPath {
3636
export default async function config(arg?: string): Promise<Config> {
3737
const { pkg, path, constraint } = await resolve_pkg(arg)
3838

39+
//FIXME shouldn't be here, but fixing things properly is outside my time allotments nowadays
40+
if (!await hooks.usePantry().project(pkg.project).available()) {
41+
console.warn("warn: project not available on this platform")
42+
Deno.exit(2)
43+
}
44+
3945
let pantry = path
4046
for (let x = 0, N = pkg.project.split('/').length + 1; x < N; x++) {
4147
pantry = pantry.parent()

0 commit comments

Comments
 (0)