refactor(package): use files#100
Conversation
|
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
Refactors the npm package publishing configuration to explicitly control what gets published, and updates a dependency version.
Changes:
- Add
fileswhitelist inpackage.jsonto only publishdist/ - Remove
.npmignore(no longer needed withfiles) - Bump
i18nextdependency version
Reviewed changes
Copilot reviewed 2 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| package.json | Restricts published artifacts to dist/ and updates i18next version. |
| .npmignore | Removes ignore file in favor of files whitelist. |
Files not reviewed (1)
- pnpm-lock.yaml: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| "files": [ | ||
| "dist/" | ||
| ], |
There was a problem hiding this comment.
With files restricting the published package to dist/, the tarball will be effectively empty (or missing runtime entrypoints) if dist/ isn’t present at publish time. Ensure the publish flow guarantees dist/ exists (commonly via a prepack/prepare script that builds) so consumers don’t install a broken package.



No description provided.