-
-
Notifications
You must be signed in to change notification settings - Fork 106
fix: don't use package name starting with dot #1854
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
📝 WalkthroughWalkthroughThe pull request modifies the Changes
Assessment against linked issues
Possibly related PRs
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Outside diff range and nitpick comments (1)
packages/schema/src/plugins/plugin-utils.ts (1)
Line range hint
36-83
: Consider documenting the package name change in migration guidesThis change in package naming convention could affect existing projects using ZenStack. Consider:
- Adding a note in the changelog
- Updating documentation to reflect the new package name
- Adding migration instructions for existing projects
The change is architecturally sound and should resolve the module resolution issues while maintaining backward compatibility through the exports configuration.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
📒 Files selected for processing (1)
packages/schema/src/plugins/plugin-utils.ts
(2 hunks)
🔇 Additional comments (3)
packages/schema/src/plugins/plugin-utils.ts (3)
1-8
: LGTM: Clean import organization
The import statements are well-organized and the addition of getVersion
is necessary for the dynamic version handling.
38-38
: Verify getVersion implementation and behavior
The dynamic version handling with fallback looks good, but let's verify the implementation of getVersion()
.
#!/bin/bash
# Check the implementation of getVersion
rg -A 10 "export function getVersion" "src/utils/version-utils.ts"
# Check if getVersion is used consistently across the codebase
rg "getVersion\(\)"
37-37
: Package name change looks good and addresses the core issue
The change from '.zenstack' to 'zenstack-generated' fixes the dot-prefix package naming issue which could have been causing module resolution problems.
Let's verify existing imports aren't broken:
fixes #1687