-
Notifications
You must be signed in to change notification settings - Fork 5.3k
fix: cleanup and fix configs package #5524
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
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ Finishing Touches🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. 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 (
|
Claude finished @ChristopherTrimboli's task —— View job ElizaOS PR Review - Configs Package CleanupReview SummaryThis PR properly cleans up the configs package by converting it from a generic plugin template to a proper configuration package. The changes are mostly well-structured and align with ElizaOS patterns. ✅ APPROVED CHANGESPackage Configuration (
Documentation (
Build Configuration (
Code Updates:
Lock 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.
Bug: Exported Configurations Missing from Build
The package.json
exports
field points to individual configuration files in src/
. However, the files
field was changed to only include dist/
, and the tsup
build configuration only processes src/index.ts
without bundling. As a result, the exported configuration files are neither built into nor included in the dist/
directory, leading to import failures in the published package.
packages/config/package.json#L25-L37
eliza/packages/config/package.json
Lines 25 to 37 in 14d657c
}, | |
"exports": { | |
"./eslint/eslint.config.plugin.js": "./src/eslint/eslint.config.plugin.js", | |
"./eslint/eslint.config.base.js": "./src/eslint/eslint.config.base.js", | |
"./eslint/eslint.config.frontend.js": "./src/eslint/eslint.config.frontend.js", | |
"./prettier/prettier.config.js": "./src/prettier/prettier.config.js", | |
"./typescript/tsconfig.base.json": "./src/typescript/tsconfig.base.json", | |
"./typescript/tsconfig.plugin.json": "./src/typescript/tsconfig.plugin.json", | |
"./typescript/tsconfig.frontend.json": "./src/typescript/tsconfig.frontend.json", | |
"./typescript/tsconfig.test.json": "./src/typescript/tsconfig.test.json" | |
}, | |
"files": [ | |
"dist" |
packages/config/tsup.config.ts#L3-L4
eliza/packages/config/tsup.config.ts
Lines 3 to 4 in 14d657c
export default defineConfig({ | |
entry: ['src/index.ts'], |
Was this report helpful? Give feedback by reacting with 👍 or 👎
🧹 Config Package Cleanup and Documentation Update
This PR addresses several issues found in the
@elizaos/config
package and brings it up to standard with proper documentation.Changes Made:
1. Fixed Missing Build Exports
build/
directory fromindex.ts
andindex.d.ts
2. Corrected Package Name References
configPaths
exports that incorrectly referenced@elizaos/core
instead of@elizaos/config
@elizaos/configs
per user preference3. Replaced Incorrect README
4. Cleaned Up tsup Configuration
src/specs/v1/*.ts
,src/specs/v2/index.ts
)@solana/web3.js
,sharp
,zod
)bundle: false
- this package just re-exports configsminify: false
- keep exported paths readable5. Updated TypeScript Paths
tsconfig.base.json
:@elizaos/agent
,@elizaos/api-service
,@elizaos/plugin-autocoder
, etc.eliza/packages/
Issues Found But Not Fixed:
"build": "tsup"
but doesn't list tsup in devDependenciessrc/
files, but main/module/types point todist/
. Consider if this package even needs a build step.Testing:
This cleanup ensures the config package is properly documented and doesn't reference non-existent code, making it easier for developers to understand and use the shared configurations across the ElizaOS ecosystem.