-
Notifications
You must be signed in to change notification settings - Fork 26
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
Running with a project that uses yarn
creates a package-lock.json
file
#560
Comments
There was actually a bug that was preventing the installed API in |
Thanks for fixing the consumption part, however I am still having some problems and I am not sure if they are due to the API spec that I am trying to consume or something missing from this package. Following is the terminal output:
As you can see, yarn complains about the installed api sdk due to a missing version. I can manually rectify this locally but I don't think this is the correct way to approach this. Is the problem on my end? On the API spec I am consuming? Or is this still a bug? |
Seems this is happening because we aren't setting a |
@erunion similarly, it would be nice to have support for pnpm, but it could be more complicated. What ended up working for me as a workaround was to:
However, I wonder if it would be worth looking into how Prisma generates its client since that works rather well across package managers in my experience. You'd have to regenerate the API package in fresh directories though (since it's dropped into |
Dug into this a bit after discovering preferred-pm and that's got a pretty big blocker for us where if we you run |
I use ynpx and get the same problems
answer received |
It seems like this script does not respect projects that use
yarn
and instead will always create apackage-lock
file. Here is the outcome from running it on my project:I am not sure why the
package-lock.json
file is there at all - I don't think it will do anything since I am usingyarn
.Furthermore I also am not sure how I would go about importing the downloaded SDK. I can see the files under
./.api
but there is nothing in the documentation instructing me on how to consume them. Do I need to add a local file entry topackage.json
?The text was updated successfully, but these errors were encountered: