Skip to content

Replace .npmignore with files field in package.json - #8

Merged
bensie merged 1 commit into
mainfrom
bensie/npmignore-to-pkg-files
Mar 6, 2026
Merged

Replace .npmignore with files field in package.json#8
bensie merged 1 commit into
mainfrom
bensie/npmignore-to-pkg-files

Conversation

@bensie

@bensie bensie commented Mar 6, 2026

Copy link
Copy Markdown
Member

Simplify npm distribution configuration by replacing .npmignore with package.json fields.

  • Delete .npmignore which incorrectly excluded dist/
  • Set main to dist/hotsock.umd.js (non-minified UMD for bundlers)
  • Add files field as allowlist pattern, shipping only dist/

README.md and LICENSE are automatically included by npm.

- Delete .npmignore which incorrectly excluded dist/
- Set main to dist/hotsock.umd.js (non-minified UMD build)
- Add files field as allowlist for dist/ only
@bensie
bensie merged commit 514b6bd into main Mar 6, 2026
1 check passed
@bensie
bensie deleted the bensie/npmignore-to-pkg-files branch March 6, 2026 20:12
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.

1 participant