-
Notifications
You must be signed in to change notification settings - Fork 308
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
Not all package managers are respected #1219
Comments
@moltar I agree that this should support pnpm but I don't think we have the bandwidth at the present moment to implement a solution. However, we'll take a PR if you need a solution now and it's something you're willing to take on. |
Would you accept the use of this dependency? https://www.npmjs.com/package/detect-package-manager |
Yeah looks fine to me |
This doesn't appear to respect the "package.json" Example: "packageManager": "yarn@4.0.2", For background, we attempted to change an oclif CLI implementation embedded as a subdirectory of a monorepo with # IMPORTANT: oclif expects classic dependencies
nodeLinker: node-modules
nmHoistingLimits: dependencies |
Hey @ericis, could you provide insight into how you handle yarn workspace dependencies when running
And does your monorepo have a single |
@kurtaking I'll take a look. I am fairly certain we abandoned any OS-specific installs along with tarball packaging in favor of publishing the CLI to a private node registry and simply encouraging the use of NodeJS, project-specific dependencies that pin the version required and in exceptional cases to install globally ( |
That's fair. I'm also not having issues with the yarn workspace and publishing the Running Running It's been a pain to figure out with my current knowledge, but we can't abandon OS-specific installs right now. |
It looks like only yarn and npm are handled, but pnpm (and others) are not.
oclif/src/tarballs/build.ts
Lines 70 to 99 in 3570d93
Related:
I think this should be solved with a proper interface that each package manager solution can implement.
The text was updated successfully, but these errors were encountered: