fix(driver-sql): add vitest.config.ts to resolve @objectstack/spec subpath imports#1231
Merged
Conversation
…x CI test failures Agent-Logs-Url: https://github.com/objectstack-ai/framework/sessions/f486d120-cd12-474d-942b-65a8547828b0 Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
hotlong
May 7, 2026 06:25
View session
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
hotlong
marked this pull request as ready for review
May 7, 2026 06:25
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
@objectstack/driver-sql#testfails in CI withERR_MODULE_NOT_FOUND: Cannot find package '@objectstack/spec/system'— all 81 tests fail before executing.The package exports in
@objectstack/specpoint to./dist/artifacts, but vitest needs source-level resolution. Other packages (e.g.plugin-hono-server) already solve this with avitest.config.tsthat aliases subpath exports to source entry points.driver-sqlwas missing this config.packages/plugins/driver-sql/vitest.config.tswith resolve aliases for@objectstack/spec,@objectstack/spec/data,@objectstack/spec/contracts,@objectstack/spec/system