Skip to content

spec CLI: preflight when tsx or packages/sury/index.mjs is missing #397

Description

@DZakh

Why

A fresh isolation worktree is not toolchain-ready. pnpm spec check <id> --write --perf=skip currently fails as tsx: command not found, then as missing packages/sury/index.mjs. The author has to discover pnpm install and pnpm --filter=sury build:entry from raw not-found errors.

This belongs under Spec Harness Suggestions in CONTRIBUTING.md. The harness should print those two commands when tsx or packages/sury/index.mjs is missing, then exit non-zero.

Scope

packages/spec CLI startup, before any spec is loaded.

Out of scope: installing or building automatically.

Suggested mechanism

A preflight that checks for tsx on PATH and for packages/sury/index.mjs. On miss, print pnpm install && pnpm --filter=sury build:entry and fail.

Came from a reflect pass on adding valid-negative-infinity to packages/sury/specs/number.yaml.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions