From f54437826c6649b384735ef5a64d46427b32b708 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Thu, 22 Oct 2026 01:42:19 +0200 Subject: [PATCH] =?UTF-8?q?Answer=20principles=20round=202:=200=20?= =?UTF-8?q?=F0=9F=94=B4,=200=20=F0=9F=9F=A1;=20probe=20directive/=20import?= =?UTF-8?q?ing=20emit/=20too?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ci.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ci.sh b/ci.sh index 98875f0..2079d23 100755 --- a/ci.sh +++ b/ci.sh @@ -9,20 +9,22 @@ leg "lint ($node_image)" in_image "$node_image" npm run lint # The boundaries pass by finding nothing, so probe that each still fires: oxlint bumps automerge on green. boundaries_fire() { - local allowed=src/markdown/parse/boundary-probe-allowed.ts directive=src/markdown/directive/boundary-probe.ts lint_log parse=src/markdown/parse/boundary-probe.ts + local allowed=src/markdown/parse/boundary-probe-allowed.ts directive=src/markdown/directive/boundary-probe.ts directive_emit=src/markdown/directive/boundary-probe-emit.ts lint_log parse=src/markdown/parse/boundary-probe.ts lint_log=$(mktemp) && # The paths are baked in: the trap fires after this function's locals are gone. - trap "rm -f $allowed $directive $lint_log $parse" EXIT && + trap "rm -f $allowed $directive $directive_emit $lint_log $parse" EXIT && trap 'exit 130' INT && trap 'exit 143' TERM && echo "import '../emit/spelling-questions.ts';" > "$allowed" && in_image "$node_image" npm run lint && echo "import '../parse/blocks.ts';" > "$directive" && + echo "import '../emit/image.ts';" > "$directive_emit" && echo "import '../emit/adf-to-markdown.ts';" > "$parse" && ! in_image "$node_image" npm run lint -- --format unix 2>&1 | tee "$lint_log" && grep -q "^$directive:.*eslint(no-restricted-imports)" "$lint_log" && + grep -q "^$directive_emit:.*eslint(no-restricted-imports)" "$lint_log" && grep -q "^$parse:.*eslint(no-restricted-imports)" "$lint_log" && - rm -f "$allowed" "$directive" "$lint_log" "$parse" + rm -f "$allowed" "$directive" "$directive_emit" "$lint_log" "$parse" } leg "import boundaries fire ($node_image)" boundaries_fire