-
Notifications
You must be signed in to change notification settings - Fork 0
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
Thoughts on moving this to jsr.io? #8
Comments
Sounds reasonable. I haven't familiarized myself with the publish process yet. I think jsr has scopes so I suppose I'd make a cloudydeno scope. |
Yeah you need a scope and it has a similar feature where you can link it to your repo which grants you OIDC auth access from your workflows. Here is an example of a super simple publish workflow I did in one of my repos: |
I've registered a scope etc, but getting this particular module published will take a little longer. Complications include:
|
I have published my first JSR package :) https://jsr.io/@cloudydeno/stream-observables Will continue biting a chunk off every day or two. JSR has some new guidelines, even for stream-observables it made me update some of the files to pass the slowtypes check. |
I now have
The remaining work here in #13 is JSR's slow-types audit. In particular deno-kubernetes_apis/lib/vpa/autoscaling.k8s.io@v1/structs.ts Lines 65 to 95 in 47558c3
I also need to add a LICENSE, I'm taking Apache-2 from kubernetes project |
Importing from JSR should work now, e.g.: import { autoDetectClient } from "jsr:@cloudydeno/[email protected]";
import { CoreV1Api } from "jsr:@cloudydeno/[email protected]/core/v1";
const coreV1 = new CoreV1Api(await autoDetectClient());
const podList = await coreV1.namespace("nginx-internet").getPodList()
console.log(podList.items.map(x => x.metadata?.name)); Note that the module exports are a bit different. There's a slash between the apigroup and apiversion. Let me know if you have any issues using it |
Very nice, I forgot to mention that the dependent modules sort of needed to be virally updated as well but I had the same experience updating some of my packages. |
I've been using it, it works. It seems like jsr.io is denos long term plan for modules and it would be nice to see this get re-homed there from a maintenance perspective.
The text was updated successfully, but these errors were encountered: