From 2a8738aa2feb7f3485823496a45de3bcd2f65799 Mon Sep 17 00:00:00 2001 From: Huakun Shen Date: Fri, 7 Feb 2025 01:18:40 -0500 Subject: [PATCH] bump version to 0.1.5 in package.json, update @kksh/api dependency to ^0.1.1, and refactor build process --- .github/workflows/jsr-publish.yml | 1 + build.ts | 4 ++-- bun.lockb | Bin 96374 -> 102126 bytes jsr.json | 2 +- package.json | 4 ++-- src/index.ts | 6 +++--- 6 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/jsr-publish.yml b/.github/workflows/jsr-publish.yml index 578212b..e3182ad 100644 --- a/.github/workflows/jsr-publish.yml +++ b/.github/workflows/jsr-publish.yml @@ -22,4 +22,5 @@ jobs: run: | bun install bun run build + bunx kksh verify --publish bunx jsr publish --allow-slow-types diff --git a/build.ts b/build.ts index 6a7ba8f..b1bf3e2 100644 --- a/build.ts +++ b/build.ts @@ -1,11 +1,11 @@ import { watch } from "fs" import { join } from "path" -import { refreshTemplateWorkerExtension } from "@kksh/api/dev" +import { refreshTemplateWorkerCommand } from "@kksh/api/dev" import { $ } from "bun" async function build() { await $`bun build --minify --target=browser --outdir=./dist ./src/index.ts` - await refreshTemplateWorkerExtension() + await refreshTemplateWorkerCommand() } const srcDir = join(import.meta.dir, "src") diff --git a/bun.lockb b/bun.lockb index d0a13c0a42ce49b8aa9314a66091eed74b7dc104..3067c02ea82ebc5d8555a78ead113fdd7be38818 100755 GIT binary patch delta 22607 zcmeHvd0>p!*Z-}n9R_eUQ-bMCqK+;i_a_uPA*JkQMi?Sbb0 zlDe}(gHFyIap|!0m9EQLAAbGzal@SIch;IV4`^KX@~-a9kEY&T`PK}kqRWoW?(JJ= zKs`3Qvaw~kTBT~LQdw`IzzK8=_{N}SP#@4Cro#LIB^9bpG9L!o5czI0eFmLg;BUzE z1gIzY9Wq@c)A67l$S;y6>g)dxQ`&s>~kR;i9@ z#R}HFpgQDRA?yHp9keOv$DrPz!?pZ~rlsW(${=aI18NU?Ri<4XRVqL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-1,6 +1,6 @@ { "name": "@kunkun/kunkun-ext-vscode", - "version": "0.1.4", + "version": "0.1.5", "license": "MIT", "exports": "./mod.ts", "publish": { diff --git a/package.json b/package.json index 494059a..ab92095 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "$schema": "https://schema.kunkun.sh/", "name": "kunkun-ext-vscode", - "version": "0.1.4", + "version": "0.1.5", "license": "MIT", "repository": "https://github.com/kunkunsh/kunkun-ext-vscode", "type": "module", @@ -78,7 +78,7 @@ "build": "bun build.ts" }, "dependencies": { - "@kksh/api": "^0.0.52", + "@kksh/api": "^0.1.1", "valibot": "1.0.0-beta.11" }, "devDependencies": { diff --git a/src/index.ts b/src/index.ts index ab8f32a..c1b0faf 100644 --- a/src/index.ts +++ b/src/index.ts @@ -10,8 +10,8 @@ import { shell, toast, ui, - WorkerExtension -} from "@kksh/api/ui/worker" + TemplateUiCommand +} from "@kksh/api/ui/template" import { array, boolean, flatten, object, safeParse, string, type InferOutput } from "valibot" const Project = object({ @@ -59,7 +59,7 @@ function openWithVSCode(path: string) { }) } -class VSCodeProjectManager extends WorkerExtension { +class VSCodeProjectManager extends TemplateUiCommand { async load() { ui.render(new List.List({ items: [] })) const platform = await os.platform()