Skip to content

refactor: optimized engines directory retrieval #1359

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

mfranzke
Copy link
Contributor

@mfranzke mfranzke commented Oct 9, 2021

Closes #1347

Summary of changes:

The logic for resolving the path to engines directories has been implemented long before npm workspaces got introduced (actually with commit 416132c in mid 2016), so we would need to refactor this implementation.

@JosefBredereck
Copy link
Contributor

This PR needs to be reopened

@mfranzke mfranzke deleted the refactor/optimized-engines-directory-retrieval branch October 16, 2021 14:53
@mfranzke mfranzke restored the refactor/optimized-engines-directory-retrieval branch October 16, 2021 14:55
@mfranzke
Copy link
Contributor Author

mfranzke commented Oct 17, 2021

I needed to make a small optimization on my initial merge requests code due to problems when running in pattern lab codebase clone and opened a new pull request for this: #1364

JosefBredereck added a commit that referenced this pull request Nov 3, 2021
* refactor: replacing existing way to retrieve the actual node_directory

especially for npm workspaces usage (aka npm 7 monorepos)

* refactor: outputting the engines directory path as well for debugging

* fix: we'll still need the process.cwd entry

especially for development in the PL codebase itself

Co-authored-by: Josef Bredreck <slime.games@outlook.de>
Co-authored-by: Josef Bredreck <13408112+JosefBredereck@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Issues when running with npm workspaces
2 participants