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 dependencies to tar? #50

Open
drumnation opened this issue Nov 13, 2022 · 0 comments
Open

Add dependencies to tar? #50

drumnation opened this issue Nov 13, 2022 · 0 comments

Comments

@drumnation
Copy link

drumnation commented Nov 13, 2022

I'm using node-fetch in my library and that is not installed in my react-native project. When it uses the api call in my library it looks for the node-fetch library to be installed inside node_modules/myLibrary/node_modules/node-fetch and it isn't there. I've been trying to come up with a way to do this, but the best I've been able to do is to get node_modules/node-fetch into the build folder of the app when it needs to be in the root level of the package to satisfy the app.

Is there a way where dependencies could be added to the tarball? Installing them in the folder of my react-native app is one way, but as soon as a change is made to the library the tar copies over what was in the directory requiring another time consuming install. If it could just copy the installed node_modules package into a node modules folder in the tarball it would work for me.

Thoughts? Great library.

Thanks.

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