From bf8b9df4450ae4ec454f096607cc2b0e029d48bb Mon Sep 17 00:00:00 2001 From: "Ricardo Q. Bazan" Date: Sun, 18 Oct 2026 12:15:52 -0500 Subject: [PATCH 1/2] fix(astro-plugin): run tsc instead of astro check in packages without Astro In a monorepo `rr tsc` hands its single typecheck provider every package with a tsconfig.json, and the astro plugin ran `astro check` in all of them. In a plain TypeScript package that booted Astro, printed Vite warnings and wrote `.astro/` into the package. The plugin now runs `astro check` only in an Astro package, one with an `astro.config.*` or with `astro` in its own dependencies, devDependencies or peerDependencies, and `tsc --noEmit --pretty` in any other. A package without Astro needs only `typescript`, and doctor checks `tsc` there. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01EZVC7xzzsEmByszmfff4u2 --- .changeset/astro-plugin-non-astro-packages.md | 5 + run-run/CLAUDE.md | 2 +- run-run/astro-plugin/README.md | 6 +- .../astro-plugin/src/__tests__/check.test.ts | 169 ++++++++++++++++-- run-run/astro-plugin/src/index.ts | 87 ++++++++- 5 files changed, 243 insertions(+), 26 deletions(-) create mode 100644 .changeset/astro-plugin-non-astro-packages.md diff --git a/.changeset/astro-plugin-non-astro-packages.md b/.changeset/astro-plugin-non-astro-packages.md new file mode 100644 index 0000000..742b370 --- /dev/null +++ b/.changeset/astro-plugin-non-astro-packages.md @@ -0,0 +1,5 @@ +--- +"@rrlab/astro-plugin": patch +--- + +In a monorepo, `rr tsc` and `rr check` run `astro check` only in the Astro packages, the ones with an `astro.config.*` or with `astro` in `dependencies`, `devDependencies` or `peerDependencies`, and `tsc --noEmit` in the other packages with a `tsconfig.json`. `astro check` used to run in every one of them, so in a plain TypeScript package it booted Astro, printed Vite warnings and wrote `.astro/` into the package. Such a package needs only `typescript`, and `rr tsc doctor` there checks `tsc`. diff --git a/run-run/CLAUDE.md b/run-run/CLAUDE.md index fd313e6..99252f3 100644 --- a/run-run/CLAUDE.md +++ b/run-run/CLAUDE.md @@ -21,7 +21,7 @@ If you find yourself tempted to add a `pnpm