mirror of
https://github.com/mudler/LocalAI.git
synced 2026-06-22 07:39:02 -04:00
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 <mudler@localai.io> Co-authored-by: Ettore Di Giacinto <mudler@localai.io>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user