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

[FEATURE] Allow custom node_modules path #204

Open
alfonsogrondo opened this issue Apr 27, 2021 · 2 comments
Open

[FEATURE] Allow custom node_modules path #204

alfonsogrondo opened this issue Apr 27, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@alfonsogrondo
Copy link

alfonsogrondo commented Apr 27, 2021

In my organization we have a monolith application that for a number of reasons has two root folders for front-end and back-end separation.

This means the Sonatype plugin cannot locate the node_modules folder since the config is tied to look for $PROJECT_ROOT/node_modules instead of (for example) $PROJECT_ROOT/frontend/node_modules

Is it possible to request a feature to specify a path to node_modules (possibly even multiple node modules)?

A suggestion for a solution is to add a free text field to the settings config to allow a comma separated list of node_module locations.

Ideally of course we would avoid such a project structure but I wanted to ask if it's something to consider as a feature?

Many Thanks

Al

cc @bhamail / @DarthHater

@alfonsogrondo alfonsogrondo added the enhancement New feature or request label Apr 27, 2021
@DarthHater
Copy link
Member

Hi @alfonsogrondo ! So recently we introduced a file that's called .sonatype-config. My thought is within this file, maybe we could add a npm block and under that the ability to provide config for npm/yarn specifically?

@alfonsogrondo
Copy link
Author

Hey @DarthHater, let's pretend I didn't take a whole 14 months to reply here!

A npm block in the .sonatype-config file sounds ideal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants