Skip to content

Add scripts to work in monorepo#19

Merged
shellicar merged 6 commits intomainfrom
feature/health-scripts
Apr 12, 2026
Merged

Add scripts to work in monorepo#19
shellicar merged 6 commits intomainfrom
feature/health-scripts

Conversation

@shellicar
Copy link
Copy Markdown
Owner

No description provided.

The dev script name implies a specific tool or workflow, but the purpose
is just watching for changes during development — watch says what it does.
All nine packages updated.

build-version had prepublishOnly/postpublish hooks left over from when
each package had its own release process. Publishing is now owned by
@shellicar/changes; those hooks have no role here and would be confusing
if they ever ran.
Four scripts for auditing ecosystem package quality:

check-tsconfig.sh: resolves effective TypeScript config via tsc --showConfig
(so inherited settings count) and scores verbatimModuleSyntax, moduleDetection,
moduleResolution, isolatedDeclarations, src/ include, and tsconfig.check.json.

audit-package-json.sh: checks that each package has the publishing metadata
right for this monorepo — correct repository URL, homepage pattern, exports
structure and ordering, publishConfig, required files, and build script.

check-biome.sh: verifies per-package biome.json is wired to the workspace
root config (extends: "//", root: false) and has intentional linter rule
overrides beyond just recommended.

health.sh: aggregator. Runs all three per-package scripts and check-deps,
merges results by package name, and emits a single JSON object with combined
scores per package plus workspace deps. Single-package mode also supported.

All scripts output JSON, exit non-zero on errors (not warnings), and support
both full-workspace and single-package invocation.
pnpm audit --json runs at workspace root alongside check-deps. The
severity breakdown (critical/high/moderate/low/total) lands in
workspace.vuln in the output, parallel to workspace.deps.

Single-package mode is unaffected -- both workspace checks are skipped
when a package argument is given.
@shellicar shellicar self-assigned this Apr 12, 2026
@shellicar shellicar added the enhancement New feature or request label Apr 12, 2026
@shellicar shellicar enabled auto-merge (squash) April 12, 2026 01:01
@shellicar shellicar merged commit 6688f5d into main Apr 12, 2026
4 checks passed
@shellicar shellicar deleted the feature/health-scripts branch April 12, 2026 01:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant