fix: build watching
This commit is contained in:
parent
b5822a2def
commit
60e286d8d5
|
@ -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(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user