Skip to content

Whitelist npm package files#47

Open
MatthiasKunnen wants to merge 1 commit intokesla:masterfrom
MatthiasKunnen:exclude-files-in-package
Open

Whitelist npm package files#47
MatthiasKunnen wants to merge 1 commit intokesla:masterfrom
MatthiasKunnen:exclude-files-in-package

Conversation

@MatthiasKunnen
Copy link

The npm package currently contains the following files:

├── app
│   ├── cmd.js
│   ├── index.js
│   ├── overwrite.js
│   └── visit.js
├── .editorconfig
├── .eslintrc
├── index.js
├── LICENSE
├── package.json
├── README.md
├── tests
│   ├── cmd.js
│   ├── overwrite.js
│   └── visit.js
└── .travis.yml

Files such as tests/*, .editorconfig, and.eslintrc do not serve a purpose for consumers of the package while increasing package size. Therefore, I've whitelisted the files that are required for the package to run.

index.js, README.md and LICENSE are included by default. Test using npm pack.

README.md and LICENSE are included by default. Test using `npm pack`.
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