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

Dependency search algorithm POC #63

Closed
wants to merge 4 commits into from
Closed

Conversation

francinelucca
Copy link
Contributor

POC for the dependency search algorithm

@francinelucca francinelucca requested review from jharvey10 and a team as code owners September 1, 2023 00:29
pocs/dependencies-search-poc/index.js Outdated Show resolved Hide resolved
pocs/dependencies-search-poc/index.js Outdated Show resolved Hide resolved
// what happens if we run out of paths? would that even happen?
while (installingPackages.length === 0 && currentPath !== '' && currentPath !== '../') {
const pkgJsonPath = path.join(currentPath, '/package.json')
if (existsSync(pkgJsonPath)) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Eventually we'll want to change this to async to make everything async as much as possible.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Made async

pocs/dependencies-search-poc/index.js Outdated Show resolved Hide resolved
francinelucca and others added 3 commits September 1, 2023 12:24
Co-authored-by: Joe Harvey <51208233+jdharvey-ibm@users.noreply.github.com>
Co-authored-by: Joe Harvey <51208233+jdharvey-ibm@users.noreply.github.com>
@francinelucca
Copy link
Contributor Author

We used this in #53 :)

@jharvey10 jharvey10 deleted the dependency-search/poc branch September 22, 2023 13:53
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.

None yet

2 participants