chore: update api package exports types

This commit is contained in:
Huakun Shen 2025-01-31 02:54:55 -05:00
parent d8e3eeac81
commit 68a4c32074
No known key found for this signature in database
7 changed files with 80 additions and 26 deletions

View File

@ -20,7 +20,7 @@
"svelte-check": "^4.1.1",
"turbo": "^2.3.4",
"typescript": "5.7.2",
"verify-package-export": "^0.0.2"
"verify-package-export": "^0.0.3"
},
"packageManager": "pnpm@9.15.4",
"engines": {

View File

@ -1,60 +1,104 @@
{
"name": "@kksh/api",
"version": "0.0.56-next.0",
"version": "0.0.56-next.1",
"type": "module",
"exports": {
".": {
"types": "./dist/index.d.ts",
"types": {
"import": "./dist/index.d.ts",
"require": "./dist/index.d.cts",
"default": "./dist/index.d.ts"
},
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"./ui": {
"types": "./dist/ui/index.d.ts",
"types": {
"import": "./dist/ui/index.d.ts",
"require": "./dist/ui/index.d.cts",
"default": "./dist/ui/index.d.ts"
},
"import": "./dist/ui/index.js",
"require": "./dist/ui/index.cjs"
},
"./ui/iframe": {
"types": "./dist/ui/iframe/index.d.ts",
"types": {
"import": "./dist/ui/iframe/index.d.ts",
"require": "./dist/ui/iframe/index.d.cts",
"default": "./dist/ui/iframe/index.d.ts"
},
"import": "./dist/ui/iframe/index.js",
"require": "./dist/ui/iframe/index.cjs"
},
"./ui/worker": {
"types": "./dist/ui/worker/index.d.ts",
"types": {
"import": "./dist/ui/worker/index.d.ts",
"require": "./dist/ui/worker/index.d.cts",
"default": "./dist/ui/worker/index.d.ts"
},
"import": "./dist/ui/worker/index.js",
"require": "./dist/ui/worker/index.cjs"
},
"./headless": {
"types": "./dist/headless/index.d.ts",
"types": {
"import": "./dist/headless/index.d.ts",
"require": "./dist/headless/index.d.cts",
"default": "./dist/headless/index.d.ts"
},
"import": "./dist/headless/index.js",
"require": "./dist/headless/index.cjs"
},
"./models": {
"types": "./dist/models/index.d.ts",
"types": {
"import": "./dist/models/index.d.ts",
"require": "./dist/models/index.d.cts",
"default": "./dist/models/index.d.ts"
},
"import": "./dist/models/index.js",
"require": "./dist/models/index.cjs"
},
"./commands": {
"types": "./dist/commands/index.d.ts",
"types": {
"import": "./dist/commands/index.d.ts",
"require": "./dist/commands/index.d.cts",
"default": "./dist/commands/index.d.ts"
},
"import": "./dist/commands/index.js",
"require": "./dist/commands/index.cjs"
},
"./runtime/deno": {
"types": "./dist/runtime/deno.d.ts",
"types": {
"import": "./dist/runtime/deno.d.ts",
"require": "./dist/runtime/deno.d.cts",
"default": "./dist/runtime/deno.d.ts"
},
"import": "./dist/runtime/deno.js",
"require": "./dist/runtime/deno.cjs"
},
"./permissions": {
"types": "./dist/permissions/index.d.ts",
"types": {
"import": "./dist/permissions/index.d.ts",
"require": "./dist/permissions/index.d.cts",
"default": "./dist/permissions/index.d.ts"
},
"import": "./dist/permissions/index.js",
"require": "./dist/permissions/index.cjs"
},
"./dev": {
"types": "./dist/dev/index.d.ts",
"types": {
"import": "./dist/dev/index.d.ts",
"require": "./dist/dev/index.d.cts",
"default": "./dist/dev/index.d.ts"
},
"import": "./dist/dev/index.js",
"require": "./dist/dev/index.cjs"
},
"./events": {
"types": "./dist/events.d.ts",
"types": {
"import": "./dist/events.d.ts",
"require": "./dist/events.d.cts",
"default": "./dist/events.d.ts"
},
"import": "./dist/events.js",
"require": "./dist/events.cjs"
},
@ -84,7 +128,7 @@
"tsup": "^8.3.6",
"typedoc": "^0.27.6",
"typescript": "^5.0.0",
"verify-package-export": "^0.0.2"
"verify-package-export": "^0.0.3"
},
"dependencies": {
"@huakunshen/jsr-client": "^0.1.5",

View File

@ -21,7 +21,7 @@ export const breakingChangesVersionCheckpoints = [
const checkpointVersions = breakingChangesVersionCheckpoints.map((c) => c.version)
const sortedCheckpointVersions = sort(checkpointVersions)
export const version = "0.0.55"
export const version = "0.0.56-next.1"
export function isVersionBetween(v: string, start: string, end: string) {
const vCleaned = clean(v)

View File

@ -14,6 +14,14 @@
"shell:kill",
"security:mac:all",
"clipboard:read-all",
{
"permission": "fs:write",
"allow": [
{
"path": "**"
}
]
},
{
"permission": "shell:deno:spawn",
"allow": [

View File

@ -50,6 +50,8 @@ class ExtensionTemplate extends WorkerExtension {
}
async load() {
// await fs.writeTextFile("/Users/hk/Desktop/test.txt", "Hello World")
await fs.writeFile("/Users/hk/Desktop/abc.txt", new Uint8Array([1, 2, 3]))
ui.setSearchBarPlaceholder("Search for items")
ui.showLoadingBar(true)
setTimeout(() => {

View File

@ -13,7 +13,7 @@
},
"devDependencies": {
"@types/bun": "latest",
"verify-package-export": "^0.0.2"
"verify-package-export": "^0.0.3"
},
"peerDependencies": {
"typescript": "^5.0.0"

20
pnpm-lock.yaml generated
View File

@ -109,8 +109,8 @@ importers:
specifier: 5.7.2
version: 5.7.2
verify-package-export:
specifier: ^0.0.2
version: 0.0.2(typescript@5.7.2)
specifier: ^0.0.3
version: 0.0.3(typescript@5.7.2)
apps/cli:
dependencies:
@ -494,8 +494,8 @@ importers:
specifier: ^5.0.0
version: 5.7.2
verify-package-export:
specifier: ^0.0.2
version: 0.0.2(typescript@5.7.2)
specifier: ^0.0.3
version: 0.0.3(typescript@5.7.2)
packages/ci:
dependencies:
@ -732,8 +732,8 @@ importers:
specifier: latest
version: 1.2.1
verify-package-export:
specifier: ^0.0.2
version: 0.0.2(typescript@5.7.3)
specifier: ^0.0.3
version: 0.0.3(typescript@5.7.3)
packages/schema:
dependencies:
@ -11233,8 +11233,8 @@ packages:
peerDependencies:
vue: ^3.4.26
verify-package-export@0.0.2:
resolution: {integrity: sha512-eTxBMzf5O5G+KZYyGg33Zp36rnlbuMAKSR3nNzh299SDLOgxoFDlNVbiy1mANVWJ/uG15qVZv0K4KdwV5u1FZQ==}
verify-package-export@0.0.3:
resolution: {integrity: sha512-EEkH32KXpVdaUBRWA84CSwdQZExpyMgN8cR3OI9y7evJwhZfvNj+sAZHeMqglrnZ7dTK3FrdXqeK54QniUCnxg==}
engines: {node: '>=18.0.0'}
hasBin: true
@ -23773,7 +23773,7 @@ snapshots:
type-fest: 4.27.0
vue: 3.5.13(typescript@5.6.3)
verify-package-export@0.0.2(typescript@5.7.2):
verify-package-export@0.0.3(typescript@5.7.2):
dependencies:
'@oclif/core': 4.2.2
'@oclif/plugin-help': 6.2.21
@ -23783,7 +23783,7 @@ snapshots:
- supports-color
- typescript
verify-package-export@0.0.2(typescript@5.7.3):
verify-package-export@0.0.3(typescript@5.7.3):
dependencies:
'@oclif/core': 4.2.2
'@oclif/plugin-help': 6.2.21