@stll/oxlint-config 1.5.0 → 1.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -17,7 +17,7 @@ picomatch = require_rolldown_runtime.__toESM(picomatch, 1);
17
17
  let node_module = require("node:module");
18
18
  //#endregion
19
19
  //#region src/toolchain-consumer-checks.ts
20
- const consumerRunnerVersion = "1.5.0";
20
+ const consumerRunnerVersion = "1.5.2";
21
21
  const consumerCheckWorkflow = "stella/.github/.github/workflows/package-consumer-compat.yml";
22
22
  const record$10 = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
23
23
  const repositoryDirectory = (value) => typeof value === "string" && value !== "" && !value.includes("\\") && !value.includes("${{") && !value.split("").some((character) => {
@@ -14,7 +14,7 @@ import { LineCounter, isAlias, isMap, isNode, isScalar, isSeq, parseAllDocuments
14
14
  import picomatch from "picomatch";
15
15
  //#endregion
16
16
  //#region src/toolchain-consumer-checks.ts
17
- const consumerRunnerVersion = "1.5.0";
17
+ const consumerRunnerVersion = "1.5.2";
18
18
  const consumerCheckWorkflow = "stella/.github/.github/workflows/package-consumer-compat.yml";
19
19
  const record$10 = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
20
20
  const repositoryDirectory = (value) => typeof value === "string" && value !== "" && !value.includes("\\") && !value.includes("${{") && !value.split("").some((character) => {
@@ -1173,6 +1173,60 @@ runtime_ready() {
1173
1173
  node_ready || fail 'Pinned Node, npm or npx is unavailable; run install'
1174
1174
  [[ -x "$BUN_DIR/bun" && "$($BUN_DIR/bun --version)" == "$BUN_VERSION" ]] || fail 'Pinned Bun is unavailable; run install'
1175
1175
  }
1176
+ bun_route() {
1177
+ local label="$1" resolved version
1178
+ shift
1179
+ resolved="$("$@" -c 'command -v bun')" || fail "Bun is unavailable through $label"
1180
+ version="$("$@" -c 'bun --version')" || fail "Bun at $resolved failed through $label"
1181
+ [[ "$version" == "$BUN_VERSION" ]] || fail "Bun at $resolved resolves version $version through $label; expected $BUN_VERSION"
1182
+ }
1183
+ verify_bun_routes() {
1184
+ local configured_mise login_shell minimal_path mise_root root_mise shims
1185
+ # Test-only overrides keep route executables and image locations inside fixtures.
1186
+ login_shell="$(printenv STLL_CLOUD_TEST_LOGIN_SHELL || true)"
1187
+ [[ -n "$login_shell" ]] || login_shell=bash
1188
+ minimal_path="$(printenv STLL_CLOUD_TEST_MINIMAL_PATH || true)"
1189
+ [[ -n "$minimal_path" ]] || minimal_path=/usr/local/bin:/usr/bin:/bin
1190
+ root_mise="$(printenv STLL_CLOUD_TEST_ROOT_MISE || true)"
1191
+ [[ -n "$root_mise" ]] || root_mise=/root/.local/share/mise
1192
+ bun_route 'the setup PATH' env PATH="$PATH" sh
1193
+ bun_route 'sh -c' sh
1194
+ bun_route 'bash -lc' "$login_shell" -l
1195
+ bun_route 'the minimal system PATH' env -i PATH="$minimal_path" sh
1196
+ configured_mise="$(printenv MISE_DATA_DIR || true)"
1197
+ for mise_root in "$configured_mise" "$OUTPUT_HOME/.local/share/mise" "$root_mise"; do
1198
+ [[ -n "$mise_root" ]] || continue
1199
+ shims="$mise_root/shims"
1200
+ [[ -d "$shims" ]] || continue
1201
+ bun_route "mise shims PATH $shims" env PATH="$shims:$PATH" sh
1202
+ done
1203
+ }
1204
+ replace_image_buns() {
1205
+ local candidate configured_mise directory mise_root root_mise
1206
+ configured_mise="$(printenv MISE_DATA_DIR || true)"
1207
+ root_mise="$(printenv STLL_CLOUD_TEST_ROOT_MISE || true)"
1208
+ [[ -n "$root_mise" ]] || root_mise=/root/.local/share/mise
1209
+ for mise_root in "$configured_mise" "$OUTPUT_HOME/.local/share/mise" "$root_mise"; do
1210
+ [[ -n "$mise_root" ]] || continue
1211
+ if [[ -d "$mise_root/installs/bun" ]]; then
1212
+ while IFS= read -r -d '' candidate; do
1213
+ [[ -d "$candidate" ]] || ln -sfnT -- "$BUN_DIR/bun" "$candidate"
1214
+ done < <(find "$mise_root/installs/bun" \( -type f -o -type l \) \( -name bun -o -name bunx \) -print0)
1215
+ fi
1216
+ for candidate in "$mise_root/shims/bun" "$mise_root/shims/bunx"; do
1217
+ [[ -e "$candidate" || -L "$candidate" ]] || continue
1218
+ [[ -d "$candidate" ]] || ln -sfnT -- "$BUN_DIR/bun" "$candidate"
1219
+ done
1220
+ done
1221
+ while IFS= read -r directory; do
1222
+ [[ -n "$directory" ]] || directory=.
1223
+ for candidate in "$directory/bun" "$directory/bunx"; do
1224
+ [[ -e "$candidate" || -L "$candidate" ]] || continue
1225
+ [[ -d "$candidate" ]] && continue
1226
+ [[ "$(readlink -f -- "$candidate")" == "$(readlink -f -- "$BUN_DIR/bun")" ]] || ln -sfnT -- "$BUN_DIR/bun" "$candidate"
1227
+ done
1228
+ done < <(printf '%s' "$PATH" | tr : '\n')
1229
+ }
1176
1230
  install_runtimes() (
1177
1231
  if [[ ! -s /etc/ssl/certs/ca-certificates.crt ]]; then
1178
1232
  command -v update-ca-certificates >/dev/null || fail 'System CA certificate bundle is missing; restore ca-certificates in the base image offline before install'
@@ -1210,6 +1264,8 @@ install_runtimes() (
1210
1264
  ln -sfnT -- "$NODE_DIR/bin/npm" /usr/local/bin/npm
1211
1265
  ln -sfnT -- "$NODE_DIR/bin/npx" /usr/local/bin/npx
1212
1266
  ln -sfnT -- "$BUN_DIR/bun" /usr/local/bin/bun
1267
+ replace_image_buns
1268
+ verify_bun_routes
1213
1269
  )
1214
1270
 
1215
1271
  dependency_install() {