ericcornelissen / webmangler

MIT License
1 stars 2 forks source link

Use allowlist-based `.npmignore` files #421

Open ericcornelissen opened 2 years ago

ericcornelissen commented 2 years ago

Initiative

Description

The .npmignore of all packages in this project currently use a "blocklist" approach - i.e. they specify globs of things that shouldn't be published. This should be updated to use an "allowlist" instead - i.e. they should specify globs of things that should be published.

Example

- src/
- tsconfig.*
- 
- # JavaScript files that are always empty
- types.js
+ *
+ 
+ # Allowlist
+ !lib/**
+ lib/**/types.js
+ !CHANGELOG.md
+ !LICENSE
+ !package.json
+ !README.md

Progress

Related


As this issue concerns all package, the labels of individual packages won't be added.