Skip to content

Node full-site start needs tsx, a devDependency #13

Closed

Description

@amenophis1er

Node full-site projects start with tsx src/server.ts (src/emit.ts), and tsx is a devDependency. A platform that installs with NODE_ENV=production (Railway/Nixpacks among them) drops devDependencies, and npm start dies. The smoke installs devDependencies, so it never sees this.

Either compile server.ts at build time and start with node, or move tsx to dependencies; then make the smoke prune devDependencies (npm prune --omit=dev) before npm start.

Activity

  1. amenophis1er commented on Nov 15, 2026

    @amenophis1er
    ContributorAuthor

    Fixed in #15 (create-trokky 0.1.8): Node full-site builds compile the server (astro build && tsc) and start with node dist/src/server.js. Correction to the report: the old tsx start was not actually failing on production installs, because tsx reaches production through astro → vite; the compiled start removes the reliance on that.

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