fix: build watching

This commit is contained in:
cha0s 2024-02-12 00:32:43 -06:00
parent b5822a2def
commit 60e286d8d5

View File

@ -237,6 +237,12 @@ exports.commands = (program, flecks) => {
if (!watch) { if (!watch) {
return spawnWith(cmd, options); return spawnWith(cmd, options);
} }
try {
await access(join(FLECKS_CORE_ROOT, 'build/flecks.yml'));
}
catch (error) {
return spawnWith(cmd, options);
}
await rootsDependencies(flecks.roots, flecks.resolver); await rootsDependencies(flecks.roots, flecks.resolver);
const watched = Object.keys(dependencies); const watched = Object.keys(dependencies);
watched.push( watched.push(