-
-
Notifications
You must be signed in to change notification settings - Fork 105
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
GENERAL: Only allow PNPM #366
Comments
We need to make sure that npx works after this. |
Then it should be replaced with |
/attempt fosshack |
Assigned the issue to @Z-xus! |
It seems there's an ongoing issue which doesn't work for npm but only for yarn pnpm/only-allow#27 |
Let me have a look what it says |
/attempt |
Assigned the issue to @MelloB1989! |
|
Hey @MelloB1989, please check if the issues are already assigned or not. You are only allowed to take up issues in case they are not assigned to anyone for FOSS Hack. |
@rajdip-b @kriptonian1 |
@kriptonian1 thoughts? @Z-xus can you give a slight example of how this script will work? |
Maybe we can do use |
|
ig that is corepack doing it for us, so I feature I don't like about corepack is that it is a bit too strict with the version of package manager |
you can refer to this to learn how corepack work https://www.totaltypescript.com/how-to-use-corepack I think we can just use it to restrict users to use pnpm, but the problem with this is it won't even allow to run command if the version of your pnpm dosen't match. so maybe you can look into this |
Although, other package managers will show error due to presence of |
I'll give this a try. UPDATE: I tried it, seems like it doesn't work. I guess we should close this issue. |
I tested it on my end and it was working fine, except for the |
Description
We have noticed many of the contributors are using NPM instead of using PNPM. So we want to have a strict restriction over the package manager to be use for this project, and throw error if they are using any other package manager. To only allow PNPM, you can refer to this section of PNPM Doc to set it up for us.
The text was updated successfully, but these errors were encountered: