From 8fab1d2e45089df3903e994ec19e6ad42be1828d Mon Sep 17 00:00:00 2001 From: "LocalAI [bot]" <139863280+localai-bot@users.noreply.github.com> Date: Sun, 21 Jun 2026 17:52:02 +0200 Subject: [PATCH] fix(ci): namespace-import js-yaml in changed-backends.js (Bun ESM: missing default export) (#10427) fix(ci): use namespace import for js-yaml in changed-backends.js js-yaml's ESM build exposes only named exports (load, dump, ...) and no default export. Bun's strict ESM interop rejects the default import with 'Missing default export in module js-yaml.mjs', failing the detect-changes and generate-matrix CI jobs. Import the namespace instead; yaml.load (the only usage) resolves to the named export, so behavior is unchanged. Assisted-by: Claude:claude-opus-4-8 Signed-off-by: Ettore Di Giacinto Co-authored-by: Ettore Di Giacinto --- scripts/changed-backends.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/changed-backends.js b/scripts/changed-backends.js index d5dcdc707..a2fe48e06 100644 --- a/scripts/changed-backends.js +++ b/scripts/changed-backends.js @@ -1,5 +1,5 @@ import fs from "fs"; -import yaml from "js-yaml"; +import * as yaml from "js-yaml"; import { Octokit } from "@octokit/core"; // Matrix data lives in a small data-only YAML so both backend.yml (master push)