kunkun/packages/api/package.json
Huakun Shen e21bef154e
Feature: install extension from JSR (#53)
* chore: upgrade many dependencies

* fix: @kksh/svelte, migrate 5

* refactor: move dialog plugin code out of ui package

* chore: disable check-types in api build.ts

Causing build error in kunkun-services

* feat: add jsr package

* feat: implement jsr package with API and parsers for jsr

* feat: modify API, add function to extract linked github repo from html

* perf: improve jsr package API with @hk/jsr-client

* feat: add jsr package version table for publishing extension

* fix: dependency and type incompatibility in ui package

* feat: add validateJsrPackageAsKunkunExtension function in jsr package

* feat: improve jsr table

* feat: add a ElementAlert component

* feat: update ElementAlert UI

* chore: update deno.lock

* chore: enable submodule support in jsr-publish workflow

* chore: bump version to 0.0.48 in jsr.json

* feat: regenerate supabase types, add author_id

* Move @kksh/jsr package to @kksh/api

* update deno.lock

* chore: change @tauri-plugin/plugin-upload version from git url to version

* feat: add rounded corner for ElementAlert

* chore: update deno.lock

* chore: bump version to 0.0.51 in jsr.json and update import paths for ExtPackageJson

* feat: add publishExtJSR API to SupabaseAPI

* refactor: replace "@hk/jsr-client" from jsr with @huakunshen/jsr-client from npm

* chore: update  deno.lock

* feat: update validateJsrPackageAsKunkunExtension return type

* refactor: improve error message

* feat: add metadata to ext_publish, update database.types.ts

* feat: add models module for Supabase with ExtPublishMetadata and source type enumeration

* feat: support installing JSR package as extension

Since JSR overwrites package.json with its own code to be compatible with npm, causing manifest parsing to be impossible. I add metadata field to ext_publish.
When extension comes from jsr, kunkun app will fetch the original package.json from jsr and overwrite the one modified by jsr.

* fix: add missing dep @tauri-apps/plugin-upload to @kksh/extension

* chore: update version to 0.0.52 in version.ts
2025-01-10 08:23:18 -05:00

78 lines
2.3 KiB
JSON

{
"name": "@kksh/api",
"version": "0.0.52",
"type": "module",
"exports": {
".": "./src/index.ts",
"./ui": "./src/ui/index.ts",
"./ui/iframe": "./src/ui/iframe/index.ts",
"./ui/worker": "./src/ui/worker/index.ts",
"./headless": "./src/headless/index.ts",
"./models": "./src/models/index.ts",
"./commands": "./src/commands/index.ts",
"./runtime/deno": "./src/runtime/deno.ts",
"./permissions": "./src/permissions/index.ts",
"./dev": "./src/dev/index.ts",
"./events": "./src/events.ts",
"./supabase": "./src/supabase/index.ts",
"./supabase/types": "./src/supabase/database.types.ts",
"./package.json": "./package.json",
"./extensions/jsr": "./src/extensions/jsr/index.ts"
},
"license": "MIT",
"scripts": {
"test": "bun test --coverage",
"gen:deno:types": "deno types > deno.d.ts",
"build:docs": "npx typedoc",
"check-types": "tsc --noEmit",
"dev": "bun --watch build.ts",
"build": "bun build.ts",
"prepare": "bun setup.ts",
"format": "prettier --write \"**/*.{ts,tsx,md,vue,json,yaml,yml}\""
},
"devDependencies": {
"@types/bun": "latest",
"@types/lodash": "^4.17.14",
"@types/madge": "^5.0.3",
"@types/node": "^22.10.5",
"@types/semver": "^7.5.8",
"fs-extra": "^11.2.0",
"madge": "^8.0.0",
"typedoc": "^0.27.6",
"typescript": "^5.0.0"
},
"dependencies": {
"@huakunshen/jsr-client": "^0.1.5",
"@tauri-apps/api": "^2.2.0",
"@tauri-apps/cli": "^2.2.2",
"@tauri-apps/plugin-deep-link": "^2.2.0",
"@tauri-apps/plugin-dialog": "^2.2.0",
"@tauri-apps/plugin-fs": "^2.2.0",
"@tauri-apps/plugin-global-shortcut": "^2.2.0",
"@tauri-apps/plugin-http": "^2.2.0",
"@tauri-apps/plugin-log": "^2.2.0",
"@tauri-apps/plugin-notification": "^2.2.0",
"@tauri-apps/plugin-os": "^2.2.0",
"@tauri-apps/plugin-process": "2.2.0",
"@tauri-apps/plugin-shell": "^2.2.0",
"@tauri-apps/plugin-store": "^2.2.0",
"@tauri-apps/plugin-updater": "^2.3.0",
"@tauri-apps/plugin-upload": "^2.2.1",
"kkrpc": "^0.0.13",
"lodash": "^4.17.21",
"minimatch": "^10.0.1",
"node-fetch": "^3.3.2",
"semver": "^7.6.3",
"svelte-sonner": "^0.3.28",
"tauri-api-adapter": "^0.3.16",
"tauri-plugin-network-api": "2.0.5",
"tauri-plugin-shellx-api": "^2.0.14",
"tauri-plugin-system-info-api": "2.0.8",
"valibot": "^1.0.0-beta.10"
},
"files": [
"src",
"dist"
]
}