epool
09/12/2022, 6:19 PMSomeLibrary
) instead of the base name from js(IR) { moduleName = "some-library" ... }
and when I want to publish to npm I’m getting this error npm ERR! 400 Bad Request - PUT <https://registry.npmjs.org/SomeLibrary> - "SomeLibrary" is invalid for new packages
where I would expect to publish it with the moduleName
I defined form the js gradle block. A “workaround” was to rename my module to SomeLibrary
to some-library
but since I’m also targeting iOS I need to have it like SomeLibrary
since iOS doesn’t support names like some-library
. Thank you in advance!shaktiman_droid
09/12/2022, 6:23 PMshaktiman_droid
09/12/2022, 6:23 PMnpmPublish
taskshaktiman_droid
09/12/2022, 6:24 PMepool
09/12/2022, 6:36 PMSomeLibrary
is my modules’ name
npmPublish {
packages {
register("SomeLibrary") {
packageName.set("some-library")
}
}
...
}
but I’m still facing the same issue
Request - PUT <https://registry.npmjs.org/SomeLibrary> - "SomeLibrary" is invalid for new packages
do you know if am I missing something?shaktiman_droid
09/12/2022, 6:48 PMnamed("SomeLibrary") {
packageJson {
name.set("some-library")
}
}
epool
09/12/2022, 6:50 PMnpmPublish {
packages["js"].packageName.set("some-library")
...
}
thank you so much for the help! 🙏Big Chungus
09/12/2022, 7:07 PMBig Chungus
09/12/2022, 7:08 PMBig Chungus
09/12/2022, 7:10 PMepool
09/12/2022, 7:19 PMpackages {
register("SomeLibrary")
named("SomeLibrary") {
packageJson {
packageName.set("some-library")
}
}
}
it gives me the same error :c
Request - PUT <https://registry.npmjs.org/SomeLibrary> - "SomeLibrary" is invalid for new packages
I also tried
packages {
named("js") {
packageJson {
packageName.set("some-library")
}
}
}
but gives me this error
> The value for property 'packageName' is final and cannot be changed any further.
Big Chungus
09/12/2022, 7:24 PMBig Chungus
09/12/2022, 7:25 PMepool
09/12/2022, 7:30 PMpackages {
named("js") {
packageName.set("cpf-validator")
}
}
could you please elaborate on the differences with
packages["js"].packageName.set("some-library")
? I didn’t get it well and I would like to understand why one option is better that the another oneBig Chungus
09/12/2022, 7:33 PMBig Chungus
09/12/2022, 7:34 PMBig Chungus
09/12/2022, 7:34 PMepool
09/12/2022, 7:35 PMBig Chungus
09/12/2022, 8:27 PM