From 48cd43595c48ea2174236a35d2cf34bf06aee0d1 Mon Sep 17 00:00:00 2001 From: Huakun Shen Date: Fri, 7 Feb 2025 00:28:25 -0500 Subject: [PATCH] chore: Update package version to 0.0.6 and enhance publish workflow with verification step --- .github/workflows/jsr-publish.yml | 2 ++ build.ts | 4 ++-- bun.lockb | Bin 98361 -> 104105 bytes jsr.json | 2 +- package.json | 4 ++-- src/index.ts | 6 +++--- 6 files changed, 10 insertions(+), 8 deletions(-) diff --git a/.github/workflows/jsr-publish.yml b/.github/workflows/jsr-publish.yml index 48bbe9d..189ba2c 100644 --- a/.github/workflows/jsr-publish.yml +++ b/.github/workflows/jsr-publish.yml @@ -17,6 +17,8 @@ jobs: - uses: oven-sh/setup-bun@v2 - name: Install dependencies run: bun install + - name: Verify Package + run: bunx kksh verify --publish - name: Build run: bun run build - name: Publish package diff --git a/build.ts b/build.ts index a99deb5..f4118ae 100644 --- a/build.ts +++ b/build.ts @@ -1,6 +1,6 @@ import { watch } from "fs" import { join } from "path" -import { refreshTemplateWorkerExtension } from "@kksh/api/dev" +import { refreshTemplateWorkerCommand } from "@kksh/api/dev" import { $ } from "bun" const entrypoints = ["./src/index.ts"] @@ -11,7 +11,7 @@ async function build() { await $`bun build --minify --target=browser --outdir=./dist ${entrypoint}` } if (Bun.argv.includes("dev")) { - await refreshTemplateWorkerExtension() + await refreshTemplateWorkerCommand() } } catch (error) { console.error(error) diff --git a/bun.lockb b/bun.lockb index 3714cedcfb1e7434ae540456430015100b62ab6d..3de2f4309ee6db04ff25d3fe523b23788d2df1fd 100755 GIT binary patch delta 22829 zcmeHvcU)9Q*Z-ZBRTfzgq!$q@3QKQ_uGq_>u_GiTuCNrP30Sc0+I!2WSFyL)TP&zC zwnP(OOEl3Kv7$-TSfWWxG_m}?=axvGnCE%le}A9n>UYnaDQC_(b7tNV;a}1i=;juxv|yxhqQv&ILepVvAb96mf=~za1$gS_F(`>k za*?~)14`;xiqp-x<_t?K@YHQEs2gYiDAm7%cGOR)IX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|dr!+Ot~n%66=-m|v`leNvf& z914lNErt20vexZb1M`T2oP6tG?d2NTEKrOv%OTk;M#k5iQY!~$vpu*^!oF>Hq;J!y%S*K}cx zmol)WAUnAifmFAYfq``@LZN8@08#w%np;p%l%JhBsH8~X64MITm7xLcTELtAB5RXD^y_lhLz&Q z404Y?xYM`n13NRjv&og7J(yfWzA_VCG9Kh~Vd(XX*>a%CQ>=4CLu bO5*@L@TeR!kX?0>e_hBLRDQmYU1a|Ui$p>w diff --git a/jsr.json b/jsr.json index 5d33a3c..188f5c2 100644 --- a/jsr.json +++ b/jsr.json @@ -1,6 +1,6 @@ { "name": "@kunkun/ext-ossinsight", - "version": "0.0.5", + "version": "0.0.6", "license": "MIT", "exports": "./mod.ts", "publish": { diff --git a/package.json b/package.json index 4ece386..cf07b47 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "license": "MIT", "$schema": "https://schema.kunkun.sh", "name": "kunkun-ext-ossinsight", - "version": "0.0.5", + "version": "0.0.6", "type": "module", "repository": { "type": "git", @@ -47,7 +47,7 @@ }, "dependencies": { "@hk/ossinsight-client": "npm:@jsr/hk__ossinsight-client", - "@kksh/api": "0.0.52", + "@kksh/api": "^0.1.1", "i18next": "^24.2.1" }, "devDependencies": { diff --git a/src/index.ts b/src/index.ts index daa9a70..1ff4102 100644 --- a/src/index.ts +++ b/src/index.ts @@ -12,14 +12,14 @@ import { shell, toast, ui, - WorkerExtension, -} from "@kksh/api/ui/worker"; + TemplateUiCommand, +} from "@kksh/api/ui/template"; import { client, listTrendingRepos } from "@hk/ossinsight-client/heyapi"; client.setConfig({ baseUrl: "https://api.ossinsight.io/v1", }); -class TrendingRepos extends WorkerExtension { +class TrendingRepos extends TemplateUiCommand { async onFormSubmit(value: Record): Promise { console.log("Form submitted", value); toast.success(`Form submitted: ${JSON.stringify(value)}`);