Skip to content

fix: make sure npm is enabled only if package-lock.json is enabled #112

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

Conversation

carlosthe19916
Copy link
Member

@carlosthe19916 carlosthe19916 commented Mar 20, 2025

Description

This change should be the counter part of trustification/exhort-javascript-api#151
which will avoid npm projects being analyzed unless the owner of the code has the file package-lock.json.

In order to detect whether or not there is a package-lock.json file next to the manifest file (package.json), an additional parameter needs to be passed to the exhortApi . The additional param is the directory path where the manifest file lies.

Checklist

  • I have followed this repository's contributing guidelines.
  • I will adhere to the project's code of conduct.

Additional information

Anything else?

@carlosthe19916 carlosthe19916 force-pushed the hotfix/npm-package-lock.json branch from 525f604 to 1741240 Compare March 20, 2025 09:32
@carlosthe19916 carlosthe19916 requested a review from ruromero March 20, 2025 09:45
@ruromero
Copy link
Collaborator

ruromero commented Apr 8, 2025

Closing in favor of #114

@ruromero ruromero closed this Apr 8, 2025
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.

2 participants