From 426137f2caa89590c7da8365685ed8ceb80c50dc Mon Sep 17 00:00:00 2001 From: "james.haytko" Date: Fri, 16 Oct 2026 15:22:34 -0500 Subject: [PATCH] fix(scripts): use namespace import for js-yaml js-yaml 5.x has no default export. The namespace import works on 4.x and 5.x. Co-Authored-By: Claude Sonnet 5.5 --- scripts/doc-draft/slop.mjs | 2 +- scripts/quality/gen-lint-digest.mjs | 2 +- scripts/quality/lib/dale.mjs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/doc-draft/slop.mjs b/scripts/doc-draft/slop.mjs index a08fb8cdae..15cebafbe8 100644 --- a/scripts/doc-draft/slop.mjs +++ b/scripts/doc-draft/slop.mjs @@ -24,7 +24,7 @@ import fs from 'fs'; import path from 'path'; import { fileURLToPath } from 'url'; -import yaml from 'js-yaml'; +import * as yaml from 'js-yaml'; import { extractProse, splitSentences, splitWords } from './lib/prose.mjs'; import { buildResult, printResult, exitForResult } from './lib/report.mjs'; diff --git a/scripts/quality/gen-lint-digest.mjs b/scripts/quality/gen-lint-digest.mjs index d3704a8799..ff6656e060 100644 --- a/scripts/quality/gen-lint-digest.mjs +++ b/scripts/quality/gen-lint-digest.mjs @@ -10,7 +10,7 @@ import fs from 'fs'; import path from 'path'; import { fileURLToPath } from 'url'; -import yaml from 'js-yaml'; +import * as yaml from 'js-yaml'; const OUT = '.claude/references/lint-rules.md'; const readYml = f => yaml.load(fs.readFileSync(f, 'utf8')); diff --git a/scripts/quality/lib/dale.mjs b/scripts/quality/lib/dale.mjs index c66f530dce..3272fc2c23 100644 --- a/scripts/quality/lib/dale.mjs +++ b/scripts/quality/lib/dale.mjs @@ -6,7 +6,7 @@ */ import fs from 'fs'; import path from 'path'; -import yaml from 'js-yaml'; +import * as yaml from 'js-yaml'; import { getClient, textOf } from './llm.mjs'; import { verdictKey, readCachedVerdict, writeVerdict, verifyFindings, consensus } from './consensus.mjs'; import { inRanges } from './scope.mjs';