Skip to content

Add missing TypeScript project references for @objectstack/runtime#131

Merged
hotlong merged 2 commits intocopilot/load-plugins-and-start-servicefrom
copilot/update-action-run-job-status
Jan 28, 2026
Merged

Add missing TypeScript project references for @objectstack/runtime#131
hotlong merged 2 commits intocopilot/load-plugins-and-start-servicefrom
copilot/update-action-run-job-status

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Jan 28, 2026

TypeScript build fails with Cannot find module '@objectstack/runtime' despite the package existing in the monorepo. The runtime package was not included in TypeScript project references.

Changes

Added missing project references:

  • Root tsconfig.json: Added ./packages/runtime to references array
  • packages/server/tsconfig.json: Added ../runtime to references array

This allows TypeScript to resolve type declarations for @objectstack/runtime when building the server package.

{
  "files": [],
  "references": [
    { "path": "./packages/kernel" },
    { "path": "./packages/runtime" },  // Added
    { "path": "./packages/server" }
  ]
}
Original prompt

引用: https://github.com/objectstack-ai/objectos/actions/runs/21438821697/job/61754398462#step:6:1


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

@vercel
Copy link
Copy Markdown

vercel bot commented Jan 28, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
objectos Ready Ready Preview, Comment Jan 28, 2026 3:25pm

Request Review

Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
Copilot AI changed the title [WIP] Update action run job status for better tracking Add missing TypeScript project references for @objectstack/runtime Jan 28, 2026
Copilot AI requested a review from hotlong January 28, 2026 15:27
@hotlong hotlong marked this pull request as ready for review January 28, 2026 15:42
Copilot AI review requested due to automatic review settings January 28, 2026 15:42
@hotlong hotlong merged commit d91d453 into copilot/load-plugins-and-start-service Jan 28, 2026
2 checks passed
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a TypeScript build failure by adding missing project references for the @objectstack/runtime package. The package was already present in the monorepo and was being imported by the server package, but TypeScript couldn't resolve its type declarations because it wasn't included in the project references configuration.

Changes:

  • Added ./packages/runtime to the root tsconfig.json references array
  • Added ../runtime to the packages/server/tsconfig.json references array to enable type resolution for imports from @objectstack/runtime

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.

File Description
tsconfig.json Added runtime package to root-level TypeScript project references
packages/server/tsconfig.json Added runtime package reference to enable type resolution for server imports

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.

3 participants