Mark Vogel
02/01/2023, 10:20 PM| project
| - src/jsMain
| - kotlin
| - resources
| - js-client
| - package.json
The goal is to allow the js-client
code to use the libraries within the Kotlin/JS project without needing to first publish to an external NPM repository (like with npm-publish etc.)
Does anyone know how I would accomplish this? e.g. what I would put into my package.json
etc. perhaps even how to compile with Gradle
Thanks for any help!Big Chungus
02/01/2023, 10:44 PMMark Vogel
02/01/2023, 10:47 PMnpm-publish
to create the local?Big Chungus
02/01/2023, 11:06 PMMark Vogel
02/01/2023, 11:09 PMBig Chungus
02/01/2023, 11:14 PMMark Vogel
02/01/2023, 11:18 PMBig Chungus
02/08/2023, 7:25 PMMark Vogel
02/08/2023, 7:37 PMnpmPublish {
packages {
named("js") {
files.from("dist")
packageJsonTemplateFile.set(file("package.json"))
packageJson {
version.set(project.version as String)
repository {
type.set("git")
url.set("<https://github.com/Org/example-common.git>")
}
}
}
}
registries {
github { // Not found - PUT <https://npm.pkg.github.com/components>
authToken.set(findProperty(tokenKey) as? String)
}
register("github") { // Permission denied
uri.set(uri("<https://npm.pkg.github.com/Org>"))
authToken.set(findProperty(tokenKey) as? String)
}
}
}
The PAT is supposed to use a username also which I'm assuming is the problem, but I'm not sure how to resolve itBig Chungus
02/08/2023, 9:34 PMMark Vogel
02/08/2023, 9:43 PMBig Chungus
02/09/2023, 5:01 PMMark Vogel
02/09/2023, 5:04 PMBig Chungus
02/09/2023, 5:44 PM