diff --git a/Website/plugins/typegraph/add-type-graph.raku b/Website/plugins/typegraph/add-type-graph.raku index 9a998ec..400809b 100644 --- a/Website/plugins/typegraph/add-type-graph.raku +++ b/Website/plugins/typegraph/add-type-graph.raku @@ -4,9 +4,11 @@ use Doc::TypeGraph::Viz; use Collection::Progress; sub ($pp, %options) { - unless 'typegraphs'.IO ~~ :e & :d - and 'type-graph.txt'.IO.modified le 'typegraphs'.IO.modified - and +'typegraphs'.IO.dir + unless ( + ('typegraphs'.IO ~~ :e & :d) + and ( 'type-graph.txt'.IO.modified le 'typegraphs'.IO.modified ) + and ( +'typegraphs'.IO.dir > 1 ) + ) { note 'Generating Typegraphs' unless %options; mkdir 'typegraphs' unless 'typegraphs'.IO ~~ :e & :d;