Skip to content

[Bug]: TypeScript recipe omits the optional compiler prerequisite #785

Closed

Description

@jimhoyd

Runtime revision and environment

Published URLCode 0.6.2 and recipe sources at v0.6.2 (a7d7ce1c4a540032cbc032ca0f605f1b3555b996); macOS, Node v26.8.2. Fresh disposable installed site.

Minimal reproduction

Follow recipes/typescript/README.md's first command with the published runtime installed: urlcode build-typescript --project <copied-recipe> --out <new-output>.

It fails because TypeScript is an optional dependency and the recipe does not mention installing it. The recipe metadata's tests.commands repeats the build/validate/test sequence without stating the compiler prerequisite. The runtime's diagnostic correctly names the exact install command; following that instruction makes the build and all three request fixtures pass.

Expected: state/link the optional compiler setup before the first build command, including where to install it so the selected runtime can resolve it. Keep TypeScript optional for JavaScript/declarative users. Include the prerequisite in recipe discovery metadata so an agent gets a complete runnable workflow.

Relevant output

Before installing the compiler: TypeScript authoring requires the optional typescript package (npm install --save-dev --save-exact [email protected]).

After installing that version in the disposable site: build emits functions/hello.js and reports typeChecked:false; urlcode test reports {"total":3,"failed":0}. No application implementation change was needed.

Activity

  1. jimhoyd commented on Sep 26, 2026

    @jimhoyd
    CollaboratorAuthor

    Fixed in #786 (dfa5489); GitHub didn't close this automatically.

    • README: the TypeScript recipe now leads with npm install --save-dev --save-exact [email protected], installed in the site that has @jimhoyd/urlcode. That is the command the runtime diagnostic prints and the devDependencies pin.
    • Recipe metadata: the same command is the first entry in recipe.yaml tests.commands.
    • Test: a new test keeps the README, the diagnostic, recipe.yaml and package.json in agreement.
    • Unchanged: TypeScript stays optional for everyone else.

    Generated by Claude Code

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions