Skip to content

refactor: optimized engines directory retrieval#1359

Merged
JosefBredereck merged 3 commits intopattern-lab:devfrom
mfranzke:refactor/optimized-engines-directory-retrieval
Oct 16, 2021
Merged

refactor: optimized engines directory retrieval#1359
JosefBredereck merged 3 commits intopattern-lab:devfrom
mfranzke:refactor/optimized-engines-directory-retrieval

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