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

Add base directory and pnpm support #1

Merged
merged 2 commits into from
Sep 28, 2021
Merged

Add base directory and pnpm support #1

merged 2 commits into from
Sep 28, 2021

Conversation

apazzolini
Copy link
Collaborator

Support for the configuration we need in the new monorepo structure.

@apazzolini apazzolini requested a review from zbuc September 18, 2021 17:42
@apazzolini
Copy link
Collaborator Author

Note that we'll need to keep our fork alive until your PR is merged as well as this coinbase/salus#445 issue is addressed.

Comment on lines +10 to +17
AUDIT_COMMAND = 'pnpm audit --json'.freeze

def should_run?
@repository.package_lock_json_present?
true
end

def version
shell_return = run_shell('npm audit --version')
shell_return = run_shell('pnpm --version')

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like it breaks npm support. Is that desired? I'd expect this to be additive.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I took a shortcut in the interest of time since we won't need npm support on our private fork. I can make it additive, but will take some time to figure out how to crawl up from the basedir to find the pnpm lockfile (instead of returning true) and all of the necessary places to hook into to provide pnpm as a standalone thing. Happy to do it if you think it's time well spent, but I was hoping the coinbase maintainers would do it in the issue I opened.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the specific purposes of our fork I think this is ok. It would be nice if we could submit a PR to Salus rather than just an issue, but I also understand that we have higher priority things to work on. I'm not super optimistic we'll be able to get off of our fork any time soon though 😢

@apazzolini apazzolini merged commit 91c45b2 into master Sep 28, 2021
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