Problem
Three issues affect package publishing, peer dependencies, and the npm package metadata.
1. sorokit-core and @creit.tech/stellar-wallets-kit are listed as dependencies but should be peerDependencies
A component library should not bundle its peer dependencies. Listing them as dependencies means npm installs a separate copy alongside the consumer's own copy, causing version conflicts and bundle bloat. They should be moved to peerDependencies with compatible version ranges.
2. package.json is missing "files" field — npm publish includes all source files
Without a "files" field, npm publish includes everything in the repo: src/, _issues/, _b/, _c/, and other scratch files. This inflates the published package size and exposes development artefacts to consumers.
3. package.json "keywords" array is missing common search terms
The keywords array has 7 entries but misses: "dapp", "defi", "xlm", "freighter", "wallet-kit", "soroban-contracts". These are frequently searched terms that would improve discoverability on npm.
Solution
- Move
sorokit-core and @creit.tech/stellar-wallets-kit to peerDependencies with ">=0.1.0" ranges.
- Add
"files": ["dist", "README.md", "LICENSE", "CHANGELOG.md"] to package.json.
- Add the 6 missing keywords to the
keywords array.
Acceptance Criteria
Note for Contributors: Write a clear PR description. Include the output of npm pack --dry-run before and after the files field change.
Problem
Three issues affect package publishing, peer dependencies, and the npm package metadata.
1.
sorokit-coreand@creit.tech/stellar-wallets-kitare listed asdependenciesbut should bepeerDependenciesA component library should not bundle its peer dependencies. Listing them as
dependenciesmeans npm installs a separate copy alongside the consumer's own copy, causing version conflicts and bundle bloat. They should be moved topeerDependencieswith compatible version ranges.2.
package.jsonis missing"files"field —npm publishincludes all source filesWithout a
"files"field,npm publishincludes everything in the repo:src/,_issues/,_b/,_c/, and other scratch files. This inflates the published package size and exposes development artefacts to consumers.3.
package.json"keywords"array is missing common search termsThe keywords array has 7 entries but misses:
"dapp","defi","xlm","freighter","wallet-kit","soroban-contracts". These are frequently searched terms that would improve discoverability on npm.Solution
sorokit-coreand@creit.tech/stellar-wallets-kittopeerDependencieswith">=0.1.0"ranges."files": ["dist", "README.md", "LICENSE", "CHANGELOG.md"]topackage.json.keywordsarray.Acceptance Criteria
sorokit-coreandstellar-wallets-kitinpeerDependencies"files"field limits publish todist/,README.md,LICENSE,CHANGELOG.mdkeywordsarray includes the 6 new search termsnpm pack --dry-runshows only the expected filesnpm run buildpasses