-
Notifications
You must be signed in to change notification settings - Fork 11
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
Lumos: dependencies or peerDependencies #64
Comments
It depends on how users utilize the Spore SDK. If we only require Spore SDK methods and not other Lumos methods, then installing the Spore SDK is better. However, if we need other CKB-related methods in most situations when using Spore SDK, then it's more flexible to use BTW, Lumos has refactored the entry package spore-sdk/packages/core/package.json Lines 20 to 26 in 6c57341
|
@ShookLyngs this issue gets a potential resolution for a better experience? |
For now, I suggest we keep the lumos family in the Regarding the improvement resolution, as homura mentioned, if we can reduce the lumos-related dependency count in the spore-sdk, such as only having |
Lumos is a collection of packages that developers commonly use for developing dapps on CKB. It serves as a foundation for the spore-sdk and plays a significant role in managing cells and witnesses.
However, I sometimes encounter a dilemma. The spore-sdk lists lumos as a dependency in its
package.json
, but when lumos releases a new version, the spore-sdk doesn't automatically update to the latest version. It lags behind in this regard.One potential solution is to move lumos from dependencies to peerDependencies. This allows developers to freely choose which version of lumos they want to use. However, this solution has a drawback: unlike dependencies, developers must manually specify and install peerDependencies into their dapp projects (as dependencies or devDependencies).
In conclusion:
dependencies
:peerDependencies
:The text was updated successfully, but these errors were encountered: