-
Notifications
You must be signed in to change notification settings - Fork 407
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
Deprecate checkAndInstallPackage
and fetchPackage
#1247
Comments
@JosefBredereck @mfranzke @sghoweri due to the resolver changes I'm slowly integrating, bugs are reported (#1257) which expose exactly the scenario as described in this issue: This fails because the resolver loads from a temporary folder like When I first run However, this has an impact on the global user experience. A workaround for now could be that the Feedback appreciated. |
It could modify the |
I'm hearing from the core maintainers that everything in Patternlab should be(come) more explicit. In the uikit handling (#1225, #1246), I'm making the package name and explicit requirement and I'm loading resources via de NodeJS resolver.
NPM, Yarn v1, Yarn v2 and pnpm don't all have the same "package" lookup strategy. Yarn v2 with PnP even wants to get rid of the complete
node_modules
folder(s). The reason to work via the NodeJS resolver is that it doesn't matter anymore which package manager our users are using.As part of the above work, I also bumped into an issue with starterkits. The CLI has the option to install a starterkit based on the package name. But if it isn't found, there is a check to detect which package manager is used and a subprocess will install the required package. But installing the package in a subprocess will, given the different package managers, not always make the package available in the parent process.
So, a starterkit should be a dependency of the project at hand if the lookup happens via the resolver. That is why I want to get rid of the functions
checkAndInstallPackage
andfetchPackage
:patternlab-node/packages/cli/bin/utils.js
Lines 125 to 166 in f4d6bd1
@sghoweri @JosefBredereck
The text was updated successfully, but these errors were encountered: