Skip to content
This repository has been archived by the owner on May 9, 2024. It is now read-only.

Use allowlist-based .npmignore files #421

Open
5 of 14 tasks
ericcornelissen opened this issue Nov 8, 2022 · 0 comments
Open
5 of 14 tasks

Use allowlist-based .npmignore files #421

ericcornelissen opened this issue Nov 8, 2022 · 0 comments
Assignees
Labels
meta Relates to project configuration

Comments

@ericcornelissen
Copy link
Owner

ericcornelissen commented Nov 8, 2022

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.

@ericcornelissen ericcornelissen added the meta Relates to project configuration label Nov 8, 2022
@ericcornelissen ericcornelissen self-assigned this Nov 9, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
meta Relates to project configuration
Projects
None yet
Development

No branches or pull requests

1 participant