Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run automatically during npm install and prevent installation of incompatible packages #117

Open
func0der opened this issue Aug 16, 2024 · 0 comments

Comments

@func0der
Copy link

Basically we extend the package.json with a list of allowed license (patterns) and run a "*install" hook to prevent the installation of packages, that are not supposed to be installed because of their license.

Inspiration: https://packagist.org/packages/arokettu/composer-license-manager

Is there any reason this has not been implemented yet in the npm world? I am coming from the composer world and the hooks are basically the way to go if you want to prevent stuff like that.

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

No branches or pull requests

1 participant