Skip to content
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

Install as require-dev? #7

Open
rhoerr opened this issue Nov 21, 2024 · 3 comments
Open

Install as require-dev? #7

rhoerr opened this issue Nov 21, 2024 · 3 comments

Comments

@rhoerr
Copy link
Contributor

rhoerr commented Nov 21, 2024

Should we advise people to install this as require-dev by default, and not to install it on production?

It will only be useful once, for the original install, right? At least for now.

Dev install can be defaulted (encouraged?) by adding a dev keyword, for example https://github.com/markshust/magento2-module-disabletwofactorauth/pull/28/files

    "keywords": [
        "dev", ...
    ]
@jakwinkler
Copy link
Collaborator

agreed

@jakwinkler
Copy link
Collaborator

Based on my research composer itself doesn’t have a strict mechanism to enforce that your package is used only in the require-dev section of another project.
We can only add a note in README.md

@rhoerr
Copy link
Contributor Author

rhoerr commented Nov 21, 2024

A strict mechanism, no, but it can suggest: composer/composer#10960

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants