perf(npm): reduce package payload and split frontend startup - #99
Merged
Merged
Conversation
Derssa
approved these changes
Sep 6, 2026
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.
Summary of Changes
This PR prepares the npm package for launch by reducing what users download, making the published runtime dependency graph explicit, and deferring frontend code that is not needed for the projects screen.
dist/and exclude unit tests, integration tests, and test helpers. The npm allowlist no longer ships nested package manifests or a nonexistent file. The tarball falls from 655 KB to 613 KB compressed, 2.23 MB to 1.94 MB unpacked, and 132 to 107 files.buildcompiles backend and frontend, andprepackinvokes it sonpm packand publication cannot use stale artifacts.adm-zipandajv, required by the distributed backend, are direct root dependencies. Unused directchokidaris removed;@types/adm-zipmoves to backend development dependencies; the backend package is private.Types of Changes
Verification & Testing
Automated Checks
npm run lintsuccessfully with no errors (backend clean; frontend: 0 errors and 5 pre-existing warnings in untouched files)npm run buildsuccessfully with no compilation errors (backend and frontend)npm testsuccessfully: root 32, backend 509, frontend 371npm auditsuccessfully with 0 vulnerabilities in root, backend, and frontendManual Verification
torollo --helpruns, the distributed backend resolvesadm-zipandajv, and no compiled test files or nested package manifests are present.Checklist