Skip to content

Conversation

@stevenle
Copy link
Member

@stevenle stevenle commented Feb 5, 2026

Motivation

  • Ensure the root dev startup alerts developers when the CLI runtime version of @blinkk/root differs from the version declared by the project so they can fix mismatched deps.
  • Handle common monorepo patterns (e.g. workspace: and range prefixes) when comparing versions to avoid false positives.

Description

  • Add a startup task invoked from dev() (runDevStartupTasks) that runs a version check on server start in packages/root/src/cli/dev.ts.
  • Implement warnOnRootVersionMismatch which loads the CLI package version via createRequire and the project-declared @blinkk/root version via flattenPackageDepsFromMonorepo and loadPackageJson, then logs a console.warn when mismatched.
  • Add normalizeRootVersion to strip workspace:, ~, ^, and wildcard * cases before comparing versions.

Testing

  • No automated tests were run for this change (per repository instructions).

Codex Task

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant