From 7d376dfb389c65ad8d75efbe820080c5ccde3748 Mon Sep 17 00:00:00 2001 From: systemfsoftware-bot <318394648+systemfsoftware-bot@users.noreply.github.com> Date: Sun, 22 Nov 2026 21:47:02 -0500 Subject: [PATCH] fix(lint): run oxlint through effect-tsgo so the effecttsgo plugin never depends on a node_modules patch Lint scripts ran bare oxlint, which only knows the effecttsgo plugin after the prepare patch has run. A install that skips or loses the patch fails with 'Unknown plugin: effecttsgo'. effect-tsgo oxlint has the plugin built in, and the prepare patch drops --skip-missing so a missing replacement fails loudly. --- apps/api-extractor-e2e/package.json | 2 +- apps/api-extractor-profile/package.json | 2 +- package.json | 2 +- packages/api-extractor/package.json | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/api-extractor-e2e/package.json b/apps/api-extractor-e2e/package.json index 1175af80..9e446a7b 100644 --- a/apps/api-extractor-e2e/package.json +++ b/apps/api-extractor-e2e/package.json @@ -7,7 +7,7 @@ "node": ">=24" }, "scripts": { - "lint": "f=${OXLINT_FORMAT:-${AGENT:+agent}}; oxlint . --format=${f:-default}", + "lint": "f=${OXLINT_FORMAT:-${AGENT:+agent}}; effect-tsgo oxlint . --format=${f:-default}", "typecheck": "tsc --noEmit", "test": "vitest run" }, diff --git a/apps/api-extractor-profile/package.json b/apps/api-extractor-profile/package.json index 4b96853f..6ca8112f 100644 --- a/apps/api-extractor-profile/package.json +++ b/apps/api-extractor-profile/package.json @@ -8,7 +8,7 @@ "node": ">=24" }, "scripts": { - "lint": "f=${OXLINT_FORMAT:-${AGENT:+agent}}; oxlint . --format=${f:-default}", + "lint": "f=${OXLINT_FORMAT:-${AGENT:+agent}}; effect-tsgo oxlint . --format=${f:-default}", "typecheck": "tsc --noEmit", "profile": "node --conditions=@systemfsoftware/source profile.ts" }, diff --git a/package.json b/package.json index f55cb23f..a7a49b37 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "node": ">=24" }, "scripts": { - "prepare": "effect-tsgo patch --oxlint --no-typescript --skip-missing", + "prepare": "effect-tsgo patch --oxlint --no-typescript", "bootstrap": "sandbox -- pnpm install --frozen-lockfile && sandbox -- pnpm run prepare", "build": "turbo run build", "lint": "turbo run lint", diff --git a/packages/api-extractor/package.json b/packages/api-extractor/package.json index 8a97b171..aa49536a 100644 --- a/packages/api-extractor/package.json +++ b/packages/api-extractor/package.json @@ -25,7 +25,7 @@ ], "scripts": { "build": "tsdown -l warn", - "lint": "f=${OXLINT_FORMAT:-${AGENT:+agent}}; oxlint . --format=${f:-default}", + "lint": "f=${OXLINT_FORMAT:-${AGENT:+agent}}; effect-tsgo oxlint . --format=${f:-default}", "typecheck": "tsc --noEmit", "test": "vitest run", "attw": "attw --pack . --profile esm-only",