Császár Ákos
03/27/2024, 1:12 PMpackage.json
file of A?
2. When I run jsonBrowserProductionWebpack
on B, will the generated package.json
contain the dependencies/fields from A?Artem Kobzar
03/27/2024, 1:21 PMCsászár Ákos
03/27/2024, 1:27 PM@react-native-async-storage/async-storage
to A as implementation(npm("@react-native-async-storage/async-storage", "1.23.1"))
But when I run jsonBrowserProductionWebpack
on B (or even on A) the generated package.json file doesn't contain this dependency (Maybe I am doing someting wrong). So when I want to publish B I need to manually add the dependency to the package.json of BCsászár Ákos
03/27/2024, 1:28 PMEdoardo Luppi
03/27/2024, 1:28 PMnpm
implementation dependency of A should definitely appear when creating B distribution.Edoardo Luppi
03/27/2024, 1:31 PMCsászár Ákos
03/27/2024, 1:34 PMEdoardo Luppi
03/27/2024, 1:37 PMjsBrowserProductionLibraryDistribution
, and not jsBrowserProductionWebpack
The task you mentioned doesn't seem to existEdoardo Luppi
03/27/2024, 1:42 PMbinaries.library()
, and the answer is Webpack won't run with a library target. So I'm not sure where you found that Webpack taskCsászár Ákos
03/28/2024, 6:56 AMjsBrowserProductionLibraryDistribution
.Császár Ákos
03/28/2024, 6:57 AMEdoardo Luppi
03/28/2024, 9:08 AMpeer dependenciesCould you make an example? Just so I understand
Császár Ákos
03/28/2024, 9:09 AMEdoardo Luppi
03/28/2024, 9:09 AMIs there any step by step guide for how to publish the library to npmYou can have a look at https://github.com/mpetuska/npm-publish Or, you can set up scripts/tasks and publish it on your own
Császár Ákos
03/28/2024, 9:10 AMEdoardo Luppi
03/28/2024, 9:10 AMusing implementation(peerNpmThat's something I never tried. I think this is a question for K/JS devs
Edoardo Luppi
03/28/2024, 9:10 AM