Skip to content

fix: preferred pm logic enhancement - #1026

Merged
erunion merged 9 commits into
mainfrom
fix/preferred-pm
Jun 2, 2025
Merged

erunion merged 9 commits into
mainfrom
fix/preferred-pm

Conversation

@AndriiAndreiev

@AndriiAndreiev AndriiAndreiev commented May 5, 2025 •

Copy link
Copy Markdown
Contributor
🚥 Resolves #560 (partly)

🧰 Changes

Enhances the preferable-pm detection logic to additionally consider the root project's configuration, improving accuracy in multi-package setups. This PR is required for #1027 (Yarn support) and will support future package manager integrations.

🧬 QA & Testing

Create a Yarn/Bun/PNPM-based project, run the installation process, and log the preferable-pm output.

@AndriiAndreiev AndriiAndreiev changed the title fix: preferred pm logic to prevent redundant generation of package-lock.json fix: preferred pm logic enhancement May 6, 2025
@AndriiAndreiev AndriiAndreiev added the area:api Issues related to the `api` CLI, which builds the SDKs label May 6, 2025
@AndriiAndreiev
AndriiAndreiev marked this pull request as ready for review May 30, 2025 14:40
@AndriiAndreiev
AndriiAndreiev requested a review from erunion as a code owner May 30, 2025 14:40
* the current working directory. It then returns the directory name of the storage path.
*
*/
static getProjectDir() {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Mind adding a small test for this?

@erunion
erunion merged commit 20b7bc4 into main Jun 2, 2025
@erunion
erunion deleted the fix/preferred-pm branch June 2, 2025 16:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:api Issues related to the `api` CLI, which builds the SDKs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Running with a project that uses yarn creates a package-lock.json file

2 participants