Skip to content

fix: update .npmignore comments and refine build script for npm publishing#13

Merged
Coderrob merged 4 commits intomainfrom
publish-prep
Apr 2, 2026
Merged

fix: update .npmignore comments and refine build script for npm publishing#13
Coderrob merged 4 commits intomainfrom
publish-prep

Conversation

@Coderrob
Copy link
Copy Markdown
Owner

@Coderrob Coderrob commented Apr 2, 2026

This pull request makes several improvements to the package publishing process, documentation, and configuration files. The main focus is on ensuring that only the intended files are published, improving the reliability of the publish workflow, and clarifying documentation about what is included in the published package.

Publishing process improvements:

  • Updated the publish:package script in package.json to add verification, coverage testing, a dry-run packaging step, and to use npm publish --access public --provenance for enhanced security and reliability.

Configuration and file filtering:

  • Modified .npmignore to clarify its role as a secondary safeguard, explicitly allowlisting README.md and LICENSE, and ensuring only the correct files are included in the published package.
  • Removed the --sourcemap option from the build script in package.json, so source maps are no longer generated during builds.

Documentation updates:

  • Updated the README.md to clarify which files are included in the published tarball, specifically mentioning that README.md, LICENSE, and package.json are included automatically by npm and not copied into dist/.

Copilot AI review requested due to automatic review settings April 2, 2026 23:04
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates publishing-related docs and npm scripts to better control what gets shipped to npm and to make publishing steps more explicit within the repository’s workflows.

Changes:

  • Updated build to stop emitting source maps.
  • Expanded publish:package to run verification/coverage, perform a dry-run pack, and publish with provenance.
  • Clarified package contents in README.md and adjusted .npmignore comments/patterns.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
README.md Documents that npm includes top-level README/LICENSE/package.json in the published tarball.
package.json Removes sourcemap generation from builds and refines the publish:package script.
.npmignore Updates guidance/patterns intended to prevent unwanted artifacts from being published.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Coderrob Coderrob merged commit 113b9df into main Apr 2, 2026
2 checks passed
@Coderrob Coderrob deleted the publish-prep branch April 2, 2026 23:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants