diff --git a/.changeset/astro-plugin-doctor-cwd.md b/.changeset/astro-plugin-doctor-cwd.md new file mode 100644 index 0000000..8d09c41 --- /dev/null +++ b/.changeset/astro-plugin-doctor-cwd.md @@ -0,0 +1,5 @@ +--- +"@rrlab/astro-plugin": patch +--- + +`rr tsc doctor` looks for what `astro check` needs, `@astrojs/check` and `typescript`, in each package it checks instead of the directory `rr` was started from. Run at a monorepo root, it used to look for them there, and reported them missing when only the Astro package had them. 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/.changeset/cli-tsc-doctor-workspace.md b/.changeset/cli-tsc-doctor-workspace.md new file mode 100644 index 0000000..98ce314 --- /dev/null +++ b/.changeset/cli-tsc-doctor-workspace.md @@ -0,0 +1,5 @@ +--- +"@rrlab/cli": minor +--- + +`rr tsc doctor` checks the packages `rr tsc` checks. In a monorepo it runs the health check in each workspace package with a `tsconfig.json`, one row per package, instead of once at the workspace root, which `rr tsc` never checks. The other `doctor` commands and `rr doctor` run in the package they report on, the one with the nearest `package.json`, instead of the directory `rr` was started from. Plugins get that package as `doctor({ cwd })`, typed by the new `DoctorOptions`. 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