-
Notifications
You must be signed in to change notification settings - Fork 52
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
fix: lerna #278
fix: lerna #278
Conversation
WalkthroughThe changes involve modifications to the Changes
Poem
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: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
📒 Files selected for processing (1)
- lerna.json (1 hunks)
🔇 Additional comments not posted (1)
lerna.json (1)
4-4
: Confirm npmClient settingThe
npmClient
is set to "pnpm". This setting has been retained from the previous configuration. Please confirm that this is still the intended package manager for the project.To ensure consistency across the project, please run the following script:
This script will help ensure that the project is consistently using pnpm as the package manager.
✅ Verification successful
NpmClient is consistently set to pnpm
The pnpm package manager is consistently used across the project, as confirmed by the presence of
pnpm-lock.yaml
and the usage of pnpm commands inpackage.json
scripts.🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Check for consistency in package manager usage # Check for pnpm-lock.yaml file if [ -f pnpm-lock.yaml ]; then echo "pnpm-lock.yaml file found, consistent with Lerna config." else echo "Warning: pnpm-lock.yaml file not found, but Lerna is configured to use pnpm." fi # Check for other lock files if [ -f package-lock.json ]; then echo "Warning: package-lock.json (npm) found, but Lerna is configured to use pnpm." fi if [ -f yarn.lock ]; then echo "Warning: yarn.lock found, but Lerna is configured to use pnpm." fi # Check for pnpm in scripts echo "Checking for pnpm usage in package.json scripts:" rg --type json '"pnpm' package.json packages/*/package.jsonLength of output: 770
{ | ||
"$schema": "node_modules/lerna/schemas/lerna-schema.json", | ||
"version": "1.0.0-alpha.12", | ||
"packages": ["packages/*", "examples/*"], | ||
"npmClient": "pnpm", | ||
"command": { | ||
"publish": { | ||
"conventionalCommits": true, | ||
"yes": true | ||
} | ||
} | ||
"packages": ["packages/*"], | ||
"npmClient": "pnpm" | ||
} |
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.
💡 Codebase verification
Inconsistent Lerna Publish Configuration Detected
The release
script in package.json
still invokes lerna publish
, but the corresponding command
configurations have been removed from lerna.json
. This mismatch may lead to unexpected behaviors during the release process.
- Affected Script:
release
script inpackage.json
:"release": "pnpm build && pnpm prettier && npx lerna publish --no-private --force-publish"
Please review and update the release strategy to align with the current Lerna configuration.
🔗 Analysis chain
Simplified Lerna configuration: Please confirm intended changes
The Lerna configuration has been significantly simplified. While this can make the setup more straightforward, it also removes some specific behaviors. Please confirm if these changes are intentional:
-
The
$schema
property has been removed. This might affect IDE support for schema validation but simplifies the configuration. -
The
packages
array now only includes"packages/*"
, removing"examples/*"
. This narrows the scope of package management. Is this intentional, and if so, how will examples be managed going forward? -
The
command
section, includingpublish
configurations, has been removed. This affects how releases might be managed, particularly around conventional commits and automated publishing. Can you clarify the new strategy for releases?
To ensure these changes don't unintentionally affect other parts of the project, please run the following script:
This script will help identify any potential conflicts with the removed configurations.
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash
# Description: Check for any references to removed Lerna configurations
# Check for references to examples in package.json files
echo "Checking for references to 'examples' in package.json files:"
rg --type json '"examples/' package.json packages/*/package.json
# Check for usage of conventional commits in commit messages
echo "Checking for usage of conventional commits in recent commits:"
git log --format=%B -n 20 | rg '^(feat|fix|docs|style|refactor|perf|test|chore)(\(.+\))?: '
# Check for any scripts that might be using Lerna publish command
echo "Checking for scripts using 'lerna publish':"
rg 'lerna publish' package.json packages/*/package.json
Length of output: 1297
Summary by CodeRabbit
$schema
property and narrowing thepackages
scope.