Skip to content

fix path gets not resolved in pl create script #1266

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

Merged
merged 1 commit into from
Dec 17, 2020

Conversation

JosefBredereck
Copy link
Contributor

While changes were made to the package resolving, some errors appeared. This should fix these errors.

Closes #1157
Closes #1247
Closes #1257

Summary of changes:
Added CWD to the installation of packages
Added an approach where packages are relative to their base like the default of require.resolve does.

@JosefBredereck
Copy link
Contributor Author

@ringods @sghoweri I did a full debug of the npx create-pattern-lab script and found out that resolve.cache has still the %USER_HOME%/appdata... paths in it. The documentation gives a hint that you can define your own lookup paths and that's what I did when we set our process variable while the init script is running.

@JosefBredereck
Copy link
Contributor Author

I merged this now since it was a critical topic. It seems to work as expected. 👍🏼

@JosefBredereck JosefBredereck deleted the feature-fix-pl-create-resolver branch January 7, 2023 18:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant