Use allowlist-based `.npmignore` files
Opened this issue · 0 comments
ericcornelissen commented
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
- benchmarking
- cli (#424)
- core (#424)
- language-css (#436)
- language-html
- language-js
- language-utils
- mangler-css-classes
- mangler-css-variables
- mangler-html-attributes
- mangler-html-ids
- mangler-utils (#436)
- testing (#436)
- types
Related
As this issue concerns all package, the labels of individual packages won't be added.