Conversation
… package size 26%, fix release workflow, improve README for npm listing Agent-Logs-Url: https://github.com/Hack23/euparliamentmonitor/sessions/04ae32d1-071e-4772-961a-707b45836242
Copilot created this pull request from a session on behalf of
pethers
April 5, 2026 00:56
View session
Contributor
There was a problem hiding this comment.
Pull request overview
This PR improves the published npm package’s discoverability and consumer experience while reducing package size and fixing the GitHub Release artifact so it includes generated TypeScript declarations.
Changes:
- Expanded
package.jsonmetadata (keywords, funding) and improved tree-shaking support (sideEffects: false) while reducing published file set by excluding source maps. - Fixed the release workflow to run
npm run buildbefore creating the release zip so generated.d.tsfiles are included. - Added a prominent “Quick Start” + clearer npm-first installation/usage examples in
README.mdfor the npmjs.com listing.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| README.md | Adds npm install + ESM/TypeScript usage examples near the top and restructures installation guidance. |
| package.json | Improves npm metadata, enables tree-shaking, adds funding, and narrows published files to reduce package size. |
| .github/workflows/release.yml | Ensures TypeScript build runs before zipping release artifacts so generated declaration files are present. |
| .github/FUNDING.yml | Adds GitHub Sponsors configuration for the org. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
npm package had limited discoverability keywords, shipped unnecessary source maps (152
.mapfiles), release zip was missing.d.tsfiles, and README lacked npm install/usage examples visible on the npmjs.com listing.package.json
eu,mep,european-union,democracy,civic-tech,political-analysis,legislative,voting,monitoring,news-generation,multilingual,i18n)sideEffects: false— enables tree-shaking in bundlersfunding— GitHub Sponsors link (renders on npm page)files—scripts/→scripts/**/*.js+scripts/**/*.d.tsglobs, excluding.js.mapand.d.ts.maprelease.yml
Added missing
npm run buildin thebuildjob before zip artifact creation. The.d.tsfiles are gitignored and only exist aftertsc— without this step the release zip had no type declarations.README.md
Added Quick Start section near top (what npm renders on package page):
Restructured Installation: npm-first, git clone under "From Source (Development)".
.github/FUNDING.yml
New file — GitHub Sponsors config for Hack23 org.
Dependency review
Runtime deps are correct: 1 required (
european-parliament-mcp-server), 1 optional (worldbank-mcp). All others correctly in devDependencies.