From d82377e2de289a25031ad028d42dd4880a3bdc94 Mon Sep 17 00:00:00 2001 From: David Baker Date: Wed, 7 Jul 2021 21:38:09 +0100 Subject: [PATCH] Fix not specifying a target ie. it should use whatever's detected --- scripts/hak/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/hak/index.js b/scripts/hak/index.js index 08c0083..cafcc3d 100644 --- a/scripts/hak/index.js +++ b/scripts/hak/index.js @@ -77,6 +77,7 @@ async function main() { } const hakEnvs = targetIds.map(tid => new HakEnv(prefix, packageJson, tid)); + if (hakEnvs.length == 0) hakEnvs.push(new HakEnv(prefix, packageJson, null)); const hakEnv = hakEnvs[0]; const deps = {};