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

Add new dependency to a package #502

Open
benomatis opened this issue Nov 18, 2023 · 0 comments
Open

Add new dependency to a package #502

benomatis opened this issue Nov 18, 2023 · 0 comments

Comments

@benomatis
Copy link

I have added a dependency to the package.json file of a package that I'm patching, but this would never actually install that package properly, as the patching of the package.json file would happen after install, and by that time all relevant packages would be installed.

If I add npm install xyz with path to the package to the postinstall script, it would install all packages of the module, but would cause all sorts of errors in my app.

What would be the best way to patch a package adding a dependency to it in the process?

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

1 participant