Skip to content

Rename shared package to api-contracts for client/server DTO contracts - #55

Draft
mterczynski with Copilot wants to merge 2 commits into
mainfrom
copilot/rename-shared-package-to-api-contracts
Draft

Rename shared package to api-contracts for client/server DTO contracts#55
mterczynski with Copilot wants to merge 2 commits into
mainfrom
copilot/rename-shared-package-to-api-contracts

Conversation

Copilot AI commented Jun 6, 2026

Copy link
Copy Markdown
Contributor

This updates the client/server contract package name to reflect its actual scope: API DTO/type sharing only. The old shared/chess-shared naming has been replaced with api-contracts consistently across package resolution and imports.

  • Package identity + location

    • Renamed workspace folder shared/api-contracts/.
    • Updated package name in api-contracts/package.json from chess-shared to api-contracts.
  • Consumer import updates

    • Replaced all chess-shared imports with api-contracts in client and server code paths using lobby DTOs.
  • Local linking workflow

    • Updated scripts/link-packages.sh to link/unlink api-contracts and resolve REPO_ROOT/api-contracts instead of shared.
// before
import { LobbyUpdateDto } from "chess-shared";

// after
import { LobbyUpdateDto } from "api-contracts";

Copilot AI changed the title [WIP] Rename shared package to api-contracts Rename shared package to api-contracts for client/server DTO contracts Jun 6, 2026
Copilot AI requested a review from mterczynski June 6, 2026 00:49
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.

Rename shared package to api-types or similar

2 participants