Skip to content

Run server with tsx; stop tracking dist#16

Merged
sis0k0 merged 1 commit into
mainfrom
server-tsx-ts7
Jul 24, 2026
Merged

Run server with tsx; stop tracking dist#16
sis0k0 merged 1 commit into
mainfrom
server-tsx-ts7

Conversation

@sis0k0

@sis0k0 sis0k0 commented Jul 24, 2026

Copy link
Copy Markdown
Member

Summary

  • Replace ts-node with tsx for the start and seed scripts so the server runs directly without a separate compile step (tsx is already used for the integration tests).
  • Stop tracking server/dist (tsc build output that was committed by mistake) and add server/.gitignore to exclude it, matching how the client already ignores its dist.

The server stays on TypeScript 5.x. It's a separate package from the Angular 22 client, and the ESLint tooling (@typescript-eslint) does not yet support TypeScript 7, so the lint step (eslint src scripts) requires TS < 6.1. The client remains on TypeScript 7 for Angular 22.

Verification

  • npm run build (tsc) passes.
  • npm test / eslint src scripts exits 0.
  • npm start boots and GET /healthcheck returns {"status":"ok"}.

- Replace ts-node with tsx for the start and seed scripts so the
  server runs without a separate compile step.
- Stop tracking server/dist (tsc build output committed by mistake)
  and add server/.gitignore to exclude it, matching the client.

Note: the server stays on TypeScript 5.x because the ESLint tooling
(@typescript-eslint) does not yet support TypeScript 7; this is
independent of the Angular 22 client, which uses TypeScript 7.
@sis0k0 sis0k0 changed the title Run server with tsx on TypeScript 7 Run server with tsx; stop tracking dist Jul 24, 2026
@sis0k0
sis0k0 merged commit 5ad31bb into main Jul 24, 2026
3 checks passed
@sis0k0
sis0k0 deleted the server-tsx-ts7 branch July 25, 2026 07:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant