From f680fdfef9b49b15cedc3373a64faed2f3c7f693 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=97=8D+85CD?= <50108258+kwaa@users.noreply.github.com> Date: Thu, 20 Feb 2025 21:10:58 +0800 Subject: [PATCH] refactor: use publish config with tsup (#70) * refactor: use publish config with tsup * fix(tsup): set tsconfig * fix(tsup): find workspace dir * fix(docs): remove references * docs: update references link * fix: lint errors --- .gitignore | 4 - cspell.config.yaml | 1 - docs/content/docs/get-started/embed.mdx | 2 +- .../docs/get-started/generate/object.mdx | 4 +- .../docs/get-started/generate/speech.mdx | 2 +- .../docs/get-started/generate/text.mdx | 4 +- .../get-started/generate/transcription.mdx | 2 +- docs/content/docs/get-started/model.mdx | 2 +- docs/content/docs/get-started/providers.mdx | 2 +- docs/content/docs/get-started/stream-text.mdx | 2 +- docs/content/docs/get-started/tool.mdx | 2 +- docs/content/docs/references/embed.model.mdx | 8 - .../docs/references/generate-object.model.mdx | 8 - .../docs/references/generate-speech.model.mdx | 8 - .../docs/references/generate-text.model.mdx | 8 - .../generate-transcription.model.mdx | 8 - .../docs/references/providers.model.mdx | 8 - .../docs/references/shared-chat.model.mdx | 8 - .../docs/references/stream-object.model.mdx | 8 - .../docs/references/stream-text.model.mdx | 8 - docs/content/docs/references/tool.model.mdx | 8 - docs/content/docs/references/xsai.model.mdx | 8 - docs/generate-files.ts | 13 - docs/lib/references/embed.ts | 1 - docs/lib/references/generate-object.ts | 1 - docs/lib/references/generate-speech.ts | 1 - docs/lib/references/generate-text.ts | 1 - docs/lib/references/generate-transcription.ts | 1 - docs/lib/references/providers.ts | 1 - docs/lib/references/shared-chat.ts | 1 - docs/lib/references/stream-object.ts | 1 - docs/lib/references/stream-text.ts | 1 - docs/lib/references/tool.ts | 1 - docs/lib/references/xsai.ts | 1 - docs/package.json | 6 +- package.json | 4 +- packages/embed/package.json | 23 +- packages/generate-object/package.json | 23 +- packages/generate-speech/package.json | 23 +- packages/generate-text/package.json | 23 +- packages/generate-transcription/package.json | 23 +- packages/model/package.json | 23 +- packages/providers/package.json | 30 +- packages/providers/tsup.config.ts | 11 + packages/shared-chat/package.json | 23 +- packages/shared/package.json | 23 +- packages/stream-object/package.json | 23 +- packages/stream-text/package.json | 25 +- packages/tool/package.json | 23 +- packages/utils-chat/package.json | 23 +- packages/utils-stream/package.json | 23 +- packages/xsai/package.json | 32 +- packages/xsai/tsup.config.ts | 11 + packages/xsfetch/package.json | 23 +- packages/xsschema/package.json | 23 +- pnpm-lock.yaml | 485 +++++++++--------- tsconfig.node.json | 2 +- tsup.config.ts | 13 + 58 files changed, 529 insertions(+), 551 deletions(-) delete mode 100644 docs/content/docs/references/embed.model.mdx delete mode 100644 docs/content/docs/references/generate-object.model.mdx delete mode 100644 docs/content/docs/references/generate-speech.model.mdx delete mode 100644 docs/content/docs/references/generate-text.model.mdx delete mode 100644 docs/content/docs/references/generate-transcription.model.mdx delete mode 100644 docs/content/docs/references/providers.model.mdx delete mode 100644 docs/content/docs/references/shared-chat.model.mdx delete mode 100644 docs/content/docs/references/stream-object.model.mdx delete mode 100644 docs/content/docs/references/stream-text.model.mdx delete mode 100644 docs/content/docs/references/tool.model.mdx delete mode 100644 docs/content/docs/references/xsai.model.mdx delete mode 100644 docs/generate-files.ts delete mode 100644 docs/lib/references/embed.ts delete mode 100644 docs/lib/references/generate-object.ts delete mode 100644 docs/lib/references/generate-speech.ts delete mode 100644 docs/lib/references/generate-text.ts delete mode 100644 docs/lib/references/generate-transcription.ts delete mode 100644 docs/lib/references/providers.ts delete mode 100644 docs/lib/references/shared-chat.ts delete mode 100644 docs/lib/references/stream-object.ts delete mode 100644 docs/lib/references/stream-text.ts delete mode 100644 docs/lib/references/tool.ts delete mode 100644 docs/lib/references/xsai.ts create mode 100644 packages/providers/tsup.config.ts create mode 100644 packages/xsai/tsup.config.ts create mode 100644 tsup.config.ts diff --git a/.gitignore b/.gitignore index 7f5bd85..37d1b3e 100644 --- a/.gitignore +++ b/.gitignore @@ -33,7 +33,3 @@ build .env*.local .vercel next-env.d.ts - -# docs:references -docs/content/docs/references/*.mdx -!docs/content/docs/references/*.model.mdx diff --git a/cspell.config.yaml b/cspell.config.yaml index 147d2ff..99d4f7b 100644 --- a/cspell.config.yaml +++ b/cspell.config.yaml @@ -34,7 +34,6 @@ words: - Novita - ollama - openrouter - - pkgroll - Plateforme - qwen - reranker diff --git a/docs/content/docs/get-started/embed.mdx b/docs/content/docs/get-started/embed.mdx index 8f7d543..67a958e 100644 --- a/docs/content/docs/get-started/embed.mdx +++ b/docs/content/docs/get-started/embed.mdx @@ -45,4 +45,4 @@ const { embeddings } = await embedMany({ ## References -- [`@xsai/embed`](../references/embed) +- [`@xsai/embed`](https://tsdocs.dev/search/docs/@xsai/embed) diff --git a/docs/content/docs/get-started/generate/object.mdx b/docs/content/docs/get-started/generate/object.mdx index 4813ead..7680262 100644 --- a/docs/content/docs/get-started/generate/object.mdx +++ b/docs/content/docs/get-started/generate/object.mdx @@ -23,5 +23,5 @@ npm i @xsai/stream-object ## References -- [`@xsai/generate-object`](../../references/generate-object) -- [`@xsai/stream-object`](../../references/stream-object) +- [`@xsai/generate-object`](https://tsdocs.dev/search/docs/@xsai/generate-object) +- [`@xsai/stream-object`](https://tsdocs.dev/search/docs/@xsai/stream-object) diff --git a/docs/content/docs/get-started/generate/speech.mdx b/docs/content/docs/get-started/generate/speech.mdx index 644a488..6050c24 100644 --- a/docs/content/docs/get-started/generate/speech.mdx +++ b/docs/content/docs/get-started/generate/speech.mdx @@ -13,4 +13,4 @@ npm i @xsai/generate-speech ## References -- [`@xsai/generate-speech`](../../references/generate-speech) +- [`@xsai/generate-speech`](https://tsdocs.dev/search/docs/@xsai/generate-speech) diff --git a/docs/content/docs/get-started/generate/text.mdx b/docs/content/docs/get-started/generate/text.mdx index 9e64d72..2f5c2a6 100644 --- a/docs/content/docs/get-started/generate/text.mdx +++ b/docs/content/docs/get-started/generate/text.mdx @@ -82,5 +82,5 @@ console.log(text) ## References -- [`@xsai/generate-text`](../../references/generate-text) -- [`@xsai/stream-text`](../../references/stream-text) \ No newline at end of file +- [`@xsai/generate-text`](https://tsdocs.dev/search/docs/@xsai/generate-text) +- [`@xsai/stream-text`](https://tsdocs.dev/search/docs/@xsai/stream-text) \ No newline at end of file diff --git a/docs/content/docs/get-started/generate/transcription.mdx b/docs/content/docs/get-started/generate/transcription.mdx index 18abdc1..adaaeed 100644 --- a/docs/content/docs/get-started/generate/transcription.mdx +++ b/docs/content/docs/get-started/generate/transcription.mdx @@ -13,4 +13,4 @@ npm i @xsai/generate-transcription ## References -- [`@xsai/generate-transcription`](../../references/generate-transcription) +- [`@xsai/generate-transcription`](https://tsdocs.dev/search/docs/@xsai/generate-transcription) diff --git a/docs/content/docs/get-started/model.mdx b/docs/content/docs/get-started/model.mdx index b752bd7..5acb7c4 100644 --- a/docs/content/docs/get-started/model.mdx +++ b/docs/content/docs/get-started/model.mdx @@ -64,4 +64,4 @@ const model = await retrieveModel({ ## References -- [`@xsai/model`](../references/model) +- [`@xsai/model`](https://tsdocs.dev/search/docs/@xsai/model) diff --git a/docs/content/docs/get-started/providers.mdx b/docs/content/docs/get-started/providers.mdx index 39a78d7..c9d99e8 100644 --- a/docs/content/docs/get-started/providers.mdx +++ b/docs/content/docs/get-started/providers.mdx @@ -152,4 +152,4 @@ Other supported providers can be viewed at [References](#references). ## References -see [`@xsai/providers`](../references/providers) +see [`@xsai/providers`](https://tsdocs.dev/search/docs/@xsai/providers) diff --git a/docs/content/docs/get-started/stream-text.mdx b/docs/content/docs/get-started/stream-text.mdx index 77e22ee..ad314fc 100644 --- a/docs/content/docs/get-started/stream-text.mdx +++ b/docs/content/docs/get-started/stream-text.mdx @@ -17,4 +17,4 @@ npm i @xsai/stream-text ## References -see [`@xsai/stream-text`](../references/stream-text) +see [`@xsai/stream-text`](https://tsdocs.dev/search/docs/@xsai/stream-text) diff --git a/docs/content/docs/get-started/tool.mdx b/docs/content/docs/get-started/tool.mdx index b363245..49f24fc 100644 --- a/docs/content/docs/get-started/tool.mdx +++ b/docs/content/docs/get-started/tool.mdx @@ -98,4 +98,4 @@ const { text } = await generateText({ ## References -- [`@xsai/tool`](../references/tool) +- [`@xsai/tool`](https://tsdocs.dev/search/docs/@xsai/tool) diff --git a/docs/content/docs/references/embed.model.mdx b/docs/content/docs/references/embed.model.mdx deleted file mode 100644 index 44e8629..0000000 --- a/docs/content/docs/references/embed.model.mdx +++ /dev/null @@ -1,8 +0,0 @@ ---- -title: "@xsai/embed" -description: https://npmjs.com/package/@xsai/embed ---- - ----type-table--- -../../../lib/references/embed.ts ----end--- diff --git a/docs/content/docs/references/generate-object.model.mdx b/docs/content/docs/references/generate-object.model.mdx deleted file mode 100644 index cad46ff..0000000 --- a/docs/content/docs/references/generate-object.model.mdx +++ /dev/null @@ -1,8 +0,0 @@ ---- -title: "@xsai/generate-object" -description: https://npmjs.com/package/@xsai/generate-object ---- - ----type-table--- -../../../lib/references/generate-object.ts ----end--- diff --git a/docs/content/docs/references/generate-speech.model.mdx b/docs/content/docs/references/generate-speech.model.mdx deleted file mode 100644 index d3e1834..0000000 --- a/docs/content/docs/references/generate-speech.model.mdx +++ /dev/null @@ -1,8 +0,0 @@ ---- -title: "@xsai/generate-speech" -description: https://npmjs.com/package/@xsai/generate-speech ---- - ----type-table--- -../../../lib/references/generate-speech.ts ----end--- diff --git a/docs/content/docs/references/generate-text.model.mdx b/docs/content/docs/references/generate-text.model.mdx deleted file mode 100644 index d9a015a..0000000 --- a/docs/content/docs/references/generate-text.model.mdx +++ /dev/null @@ -1,8 +0,0 @@ ---- -title: "@xsai/generate-text" -description: https://npmjs.com/package/@xsai/generate-text ---- - ----type-table--- -../../../lib/references/generate-text.ts ----end--- diff --git a/docs/content/docs/references/generate-transcription.model.mdx b/docs/content/docs/references/generate-transcription.model.mdx deleted file mode 100644 index cfb6b5f..0000000 --- a/docs/content/docs/references/generate-transcription.model.mdx +++ /dev/null @@ -1,8 +0,0 @@ ---- -title: "@xsai/generate-transcription" -description: https://npmjs.com/package/@xsai/generate-transcription ---- - ----type-table--- -../../../lib/references/generate-transcription.ts ----end--- diff --git a/docs/content/docs/references/providers.model.mdx b/docs/content/docs/references/providers.model.mdx deleted file mode 100644 index ed21598..0000000 --- a/docs/content/docs/references/providers.model.mdx +++ /dev/null @@ -1,8 +0,0 @@ ---- -title: "@xsai/providers" -description: https://npmjs.com/package/@xsai/providers ---- - ----type-table--- -../../../lib/references/providers.ts ----end--- diff --git a/docs/content/docs/references/shared-chat.model.mdx b/docs/content/docs/references/shared-chat.model.mdx deleted file mode 100644 index b483087..0000000 --- a/docs/content/docs/references/shared-chat.model.mdx +++ /dev/null @@ -1,8 +0,0 @@ ---- -title: "@xsai/shared-chat" -description: https://npmjs.com/package/@xsai/shared-chat ---- - ----type-table--- -../../../lib/references/shared-chat.ts ----end--- diff --git a/docs/content/docs/references/stream-object.model.mdx b/docs/content/docs/references/stream-object.model.mdx deleted file mode 100644 index f7ed538..0000000 --- a/docs/content/docs/references/stream-object.model.mdx +++ /dev/null @@ -1,8 +0,0 @@ ---- -title: "@xsai/stream-object" -description: https://npmjs.com/package/@xsai/stream-object ---- - ----type-table--- -../../../lib/references/stream-object.ts ----end--- diff --git a/docs/content/docs/references/stream-text.model.mdx b/docs/content/docs/references/stream-text.model.mdx deleted file mode 100644 index 27c02a8..0000000 --- a/docs/content/docs/references/stream-text.model.mdx +++ /dev/null @@ -1,8 +0,0 @@ ---- -title: "@xsai/stream-text" -description: https://npmjs.com/package/@xsai/stream-text ---- - ----type-table--- -../../../lib/references/stream-text.ts ----end--- diff --git a/docs/content/docs/references/tool.model.mdx b/docs/content/docs/references/tool.model.mdx deleted file mode 100644 index 793186d..0000000 --- a/docs/content/docs/references/tool.model.mdx +++ /dev/null @@ -1,8 +0,0 @@ ---- -title: "@xsai/tool" -description: https://npmjs.com/package/@xsai/tool ---- - ----type-table--- -../../../lib/references/tool.ts ----end--- diff --git a/docs/content/docs/references/xsai.model.mdx b/docs/content/docs/references/xsai.model.mdx deleted file mode 100644 index 46e6300..0000000 --- a/docs/content/docs/references/xsai.model.mdx +++ /dev/null @@ -1,8 +0,0 @@ ---- -title: xsai -description: https://npmjs.com/package/xsai ---- - ----type-table--- -../../../lib/references/xsai.ts ----end--- diff --git a/docs/generate-files.ts b/docs/generate-files.ts deleted file mode 100644 index 8056555..0000000 --- a/docs/generate-files.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { generateFiles } from 'fumadocs-typescript' -import * as path from 'node:path' - -// eslint-disable-next-line @masknet/no-top-level -void generateFiles({ - input: ['./content/docs/**/*.model.mdx'], - // Rename x.model.mdx to x.mdx - output: file => - path.resolve( - path.dirname(file), - `${path.basename(file).split('.')[0]}.mdx`, - ), -}) diff --git a/docs/lib/references/embed.ts b/docs/lib/references/embed.ts deleted file mode 100644 index 4c45f0a..0000000 --- a/docs/lib/references/embed.ts +++ /dev/null @@ -1 +0,0 @@ -export * from '@xsai/embed' diff --git a/docs/lib/references/generate-object.ts b/docs/lib/references/generate-object.ts deleted file mode 100644 index 7aaa949..0000000 --- a/docs/lib/references/generate-object.ts +++ /dev/null @@ -1 +0,0 @@ -export * from '@xsai/generate-object' diff --git a/docs/lib/references/generate-speech.ts b/docs/lib/references/generate-speech.ts deleted file mode 100644 index 8b6170c..0000000 --- a/docs/lib/references/generate-speech.ts +++ /dev/null @@ -1 +0,0 @@ -export * from '@xsai/generate-speech' diff --git a/docs/lib/references/generate-text.ts b/docs/lib/references/generate-text.ts deleted file mode 100644 index 3395803..0000000 --- a/docs/lib/references/generate-text.ts +++ /dev/null @@ -1 +0,0 @@ -export * from '@xsai/generate-text' diff --git a/docs/lib/references/generate-transcription.ts b/docs/lib/references/generate-transcription.ts deleted file mode 100644 index 2f73c68..0000000 --- a/docs/lib/references/generate-transcription.ts +++ /dev/null @@ -1 +0,0 @@ -export * from '@xsai/generate-transcription' diff --git a/docs/lib/references/providers.ts b/docs/lib/references/providers.ts deleted file mode 100644 index 8d66578..0000000 --- a/docs/lib/references/providers.ts +++ /dev/null @@ -1 +0,0 @@ -export * from '@xsai/providers' diff --git a/docs/lib/references/shared-chat.ts b/docs/lib/references/shared-chat.ts deleted file mode 100644 index 4a2f812..0000000 --- a/docs/lib/references/shared-chat.ts +++ /dev/null @@ -1 +0,0 @@ -export * from '@xsai/shared-chat' diff --git a/docs/lib/references/stream-object.ts b/docs/lib/references/stream-object.ts deleted file mode 100644 index fd1695c..0000000 --- a/docs/lib/references/stream-object.ts +++ /dev/null @@ -1 +0,0 @@ -export * from '@xsai/stream-object' diff --git a/docs/lib/references/stream-text.ts b/docs/lib/references/stream-text.ts deleted file mode 100644 index e029329..0000000 --- a/docs/lib/references/stream-text.ts +++ /dev/null @@ -1 +0,0 @@ -export * from '@xsai/stream-text' diff --git a/docs/lib/references/tool.ts b/docs/lib/references/tool.ts deleted file mode 100644 index abdf30c..0000000 --- a/docs/lib/references/tool.ts +++ /dev/null @@ -1 +0,0 @@ -export * from '@xsai/tool' diff --git a/docs/lib/references/xsai.ts b/docs/lib/references/xsai.ts deleted file mode 100644 index 68b4c1f..0000000 --- a/docs/lib/references/xsai.ts +++ /dev/null @@ -1 +0,0 @@ -export * from 'xsai' diff --git a/docs/package.json b/docs/package.json index dd0092b..a6be113 100644 --- a/docs/package.json +++ b/docs/package.json @@ -4,9 +4,8 @@ "version": "0.1.0-beta.5", "private": true, "scripts": { - "build": "tsx generate-files.ts && next build", - "dev": "tsx generate-files.ts && next dev --turbo", - "generate-files": "tsx generate-files.ts", + "build": "next build", + "dev": "next dev --turbo", "postinstall": "fumadocs-mdx", "start": "next start" }, @@ -19,7 +18,6 @@ "fumadocs-docgen": "^1.3.5", "fumadocs-mdx": "^11.1.2", "fumadocs-twoslash": "^3.0.0", - "fumadocs-typescript": "^3.0.3", "fumadocs-ui": "^15.0.0", "lucide-react": "^0.474.0", "next": "15.0.3", diff --git a/package.json b/package.json index 95ad6b0..ebbb31a 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,6 @@ "repository": "github:moeru-ai/xsai", "scripts": { "build": "corepack pnpm -r build", - "build:watch": "corepack pnpm -r build:watch", "bump": "bumpp", "docs:dev": "corepack pnpm -rF @xsai/docs dev", "docs:generate-files": "corepack pnpm -rF @xsai/docs generate-files", @@ -18,6 +17,7 @@ "@antfu/eslint-config": "^4.1.0", "@importantimport/eslint-config": "^1.0.0-beta.0", "@importantimport/tsconfig": "^1.0.0-beta.0", + "@pnpm/find-workspace-dir": "^1000.0.2", "@types/eslint": "^9.6.1", "@types/node": "^22.12.0", "@vitest/coverage-v8": "3.0.4", @@ -25,7 +25,7 @@ "bumpp": "^10.0.1", "eslint": "^9.19.0", "jiti": "^2.4.2", - "pkgroll": "^2.6.1", + "tsup": "^8.3.6", "tsx": "^4.19.2", "vitest": "^3.0.4" } diff --git a/packages/embed/package.json b/packages/embed/package.json index 38cee5e..d6b7865 100644 --- a/packages/embed/package.json +++ b/packages/embed/package.json @@ -18,20 +18,23 @@ "ai" ], "sideEffects": false, - "exports": { - ".": { - "types": "./dist/index.d.ts", - "default": "./dist/index.js" - } - }, - "main": "./dist/index.js", - "types": "./dist/index.d.ts", + "exports": "./src/index.ts", "files": [ "dist" ], + "publishConfig": { + "exports": { + ".": { + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + }, + "./package.json": "./package.json" + }, + "main": "./dist/index.js", + "types": "./dist/index.d.ts" + }, "scripts": { - "build": "pkgroll", - "build:watch": "pkgroll --watch", + "build": "tsup", "test": "vitest run", "test:watch": "vitest" }, diff --git a/packages/generate-object/package.json b/packages/generate-object/package.json index fc00067..f6c0fb8 100644 --- a/packages/generate-object/package.json +++ b/packages/generate-object/package.json @@ -18,20 +18,23 @@ "ai" ], "sideEffects": false, - "exports": { - ".": { - "types": "./dist/index.d.ts", - "default": "./dist/index.js" - } - }, - "main": "./dist/index.js", - "types": "./dist/index.d.ts", + "exports": "./src/index.ts", "files": [ "dist" ], + "publishConfig": { + "exports": { + ".": { + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + }, + "./package.json": "./package.json" + }, + "main": "./dist/index.js", + "types": "./dist/index.d.ts" + }, "scripts": { - "build": "pkgroll", - "build:watch": "pkgroll --watch", + "build": "tsup", "test": "vitest run", "test:watch": "vitest" }, diff --git a/packages/generate-speech/package.json b/packages/generate-speech/package.json index 2ac5aed..fd99a93 100644 --- a/packages/generate-speech/package.json +++ b/packages/generate-speech/package.json @@ -18,20 +18,23 @@ "ai" ], "sideEffects": false, - "exports": { - ".": { - "types": "./dist/index.d.ts", - "default": "./dist/index.js" - } - }, - "main": "./dist/index.js", - "types": "./dist/index.d.ts", + "exports": "./src/index.ts", "files": [ "dist" ], + "publishConfig": { + "exports": { + ".": { + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + }, + "./package.json": "./package.json" + }, + "main": "./dist/index.js", + "types": "./dist/index.d.ts" + }, "scripts": { - "build": "pkgroll", - "build:watch": "pkgroll --watch", + "build": "tsup", "test": "vitest run", "test:watch": "vitest" }, diff --git a/packages/generate-text/package.json b/packages/generate-text/package.json index 9e6b1d7..f194aa8 100644 --- a/packages/generate-text/package.json +++ b/packages/generate-text/package.json @@ -18,20 +18,23 @@ "ai" ], "sideEffects": false, - "exports": { - ".": { - "types": "./dist/index.d.ts", - "default": "./dist/index.js" - } - }, - "main": "./dist/index.js", - "types": "./dist/index.d.ts", + "exports": "./src/index.ts", "files": [ "dist" ], + "publishConfig": { + "exports": { + ".": { + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + }, + "./package.json": "./package.json" + }, + "main": "./dist/index.js", + "types": "./dist/index.d.ts" + }, "scripts": { - "build": "pkgroll", - "build:watch": "pkgroll --watch", + "build": "tsup", "test": "vitest run", "test:watch": "vitest" }, diff --git a/packages/generate-transcription/package.json b/packages/generate-transcription/package.json index a44efc0..ea53b8e 100644 --- a/packages/generate-transcription/package.json +++ b/packages/generate-transcription/package.json @@ -18,20 +18,23 @@ "ai" ], "sideEffects": false, - "exports": { - ".": { - "types": "./dist/index.d.ts", - "default": "./dist/index.js" - } - }, - "main": "./dist/index.js", - "types": "./dist/index.d.ts", + "exports": "./src/index.ts", "files": [ "dist" ], + "publishConfig": { + "exports": { + ".": { + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + }, + "./package.json": "./package.json" + }, + "main": "./dist/index.js", + "types": "./dist/index.d.ts" + }, "scripts": { - "build": "pkgroll", - "build:watch": "pkgroll --watch", + "build": "tsup", "test": "vitest run", "test:watch": "vitest" }, diff --git a/packages/model/package.json b/packages/model/package.json index 80c0b3e..fb88550 100644 --- a/packages/model/package.json +++ b/packages/model/package.json @@ -18,20 +18,23 @@ "ai" ], "sideEffects": false, - "exports": { - ".": { - "types": "./dist/index.d.ts", - "default": "./dist/index.js" - } - }, - "main": "./dist/index.js", - "types": "./dist/index.d.ts", + "exports": "./src/index.ts", "files": [ "dist" ], + "publishConfig": { + "exports": { + ".": { + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + }, + "./package.json": "./package.json" + }, + "main": "./dist/index.js", + "types": "./dist/index.d.ts" + }, "scripts": { - "build": "pkgroll", - "build:watch": "pkgroll --watch", + "build": "tsup", "test": "vitest run", "test:watch": "vitest" }, diff --git a/packages/providers/package.json b/packages/providers/package.json index b7ada13..7d01863 100644 --- a/packages/providers/package.json +++ b/packages/providers/package.json @@ -19,23 +19,29 @@ ], "sideEffects": false, "exports": { - ".": { - "types": "./dist/index.d.ts", - "default": "./dist/index.js" - }, - "./list": { - "types": "./dist/list.d.ts", - "default": "./dist/list.js" - } + ".": "./src/index.ts", + "./list": "./src/list.ts" }, - "main": "./dist/index.js", - "types": "./dist/index.d.ts", "files": [ "dist" ], + "publishConfig": { + "exports": { + ".": { + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + }, + "./list": { + "types": "./dist/list.d.ts", + "default": "./dist/list.js" + }, + "./package.json": "./package.json" + }, + "main": "./dist/index.js", + "types": "./dist/index.d.ts" + }, "scripts": { - "build": "pkgroll", - "build:watch": "pkgroll --watch" + "build": "tsup" }, "dependencies": { "@xsai/shared": "workspace:" diff --git a/packages/providers/tsup.config.ts b/packages/providers/tsup.config.ts new file mode 100644 index 0000000..eaefc5f --- /dev/null +++ b/packages/providers/tsup.config.ts @@ -0,0 +1,11 @@ +import { defineConfig } from 'tsup' + +import defaults from '../../tsup.config' + +export default defineConfig({ + ...defaults, + entry: [ + 'src/index.ts', + 'src/list.ts', + ], +}) diff --git a/packages/shared-chat/package.json b/packages/shared-chat/package.json index ca39b73..96c0e6b 100644 --- a/packages/shared-chat/package.json +++ b/packages/shared-chat/package.json @@ -18,20 +18,23 @@ "ai" ], "sideEffects": false, - "exports": { - ".": { - "types": "./dist/index.d.ts", - "default": "./dist/index.js" - } - }, - "main": "./dist/index.js", - "types": "./dist/index.d.ts", + "exports": "./src/index.ts", "files": [ "dist" ], + "publishConfig": { + "exports": { + ".": { + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + }, + "./package.json": "./package.json" + }, + "main": "./dist/index.js", + "types": "./dist/index.d.ts" + }, "scripts": { - "build": "pkgroll", - "build:watch": "pkgroll --watch" + "build": "tsup" }, "dependencies": { "@xsai/shared": "workspace:" diff --git a/packages/shared/package.json b/packages/shared/package.json index 10e26bc..06cc60f 100644 --- a/packages/shared/package.json +++ b/packages/shared/package.json @@ -14,19 +14,22 @@ "bugs": "https://github.com/moeru-ai/xsai/issues", "keywords": ["xsai", "openai", "ai"], "sideEffects": false, - "exports": { - ".": { - "types": "./dist/index.d.ts", - "default": "./dist/index.js" - } - }, - "main": "./dist/index.js", - "types": "./dist/index.d.ts", + "exports": "./src/index.ts", "files": [ "dist" ], + "publishConfig": { + "exports": { + ".": { + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + }, + "./package.json": "./package.json" + }, + "main": "./dist/index.js", + "types": "./dist/index.d.ts" + }, "scripts": { - "build": "pkgroll", - "build:watch": "pkgroll --watch" + "build": "tsup" } } diff --git a/packages/stream-object/package.json b/packages/stream-object/package.json index 57b2f1d..74c7f0d 100644 --- a/packages/stream-object/package.json +++ b/packages/stream-object/package.json @@ -18,20 +18,23 @@ "ai" ], "sideEffects": false, - "exports": { - ".": { - "types": "./dist/index.d.ts", - "default": "./dist/index.js" - } - }, - "main": "./dist/index.js", - "types": "./dist/index.d.ts", + "exports": "./src/index.ts", "files": [ "dist" ], + "publishConfig": { + "exports": { + ".": { + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + }, + "./package.json": "./package.json" + }, + "main": "./dist/index.js", + "types": "./dist/index.d.ts" + }, "scripts": { - "build": "pkgroll", - "build:watch": "pkgroll --watch", + "build": "tsup", "test": "vitest run", "test:watch": "vitest" }, diff --git a/packages/stream-text/package.json b/packages/stream-text/package.json index f9048e2..f95af47 100644 --- a/packages/stream-text/package.json +++ b/packages/stream-text/package.json @@ -18,21 +18,24 @@ "ai" ], "sideEffects": false, - "exports": { - ".": { - "types": "./dist/index.d.ts", - "default": "./dist/index.js" - } - }, - "main": "./dist/index.js", - "types": "./dist/index.d.ts", + "exports": "./src/index.ts", "files": [ "dist" ], + "publishConfig": { + "exports": { + ".": { + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + }, + "./package.json": "./package.json" + }, + "main": "./dist/index.js", + "types": "./dist/index.d.ts" + }, "scripts": { - "build": "pkgroll", - "build:watch": "pkgroll --watch", - "test": "vitest run --coverage", + "build": "tsup", + "test": "vitest run", "test:watch": "vitest" }, "dependencies": { diff --git a/packages/tool/package.json b/packages/tool/package.json index 690431c..be83f64 100644 --- a/packages/tool/package.json +++ b/packages/tool/package.json @@ -18,20 +18,23 @@ "ai" ], "sideEffects": false, - "exports": { - ".": { - "types": "./dist/index.d.ts", - "default": "./dist/index.js" - } - }, - "main": "./dist/index.js", - "types": "./dist/index.d.ts", + "exports": "./src/index.ts", "files": [ "dist" ], + "publishConfig": { + "exports": { + ".": { + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + }, + "./package.json": "./package.json" + }, + "main": "./dist/index.js", + "types": "./dist/index.d.ts" + }, "scripts": { - "build": "pkgroll", - "build:watch": "pkgroll --watch", + "build": "tsup", "test": "vitest run", "test:watch": "vitest" }, diff --git a/packages/utils-chat/package.json b/packages/utils-chat/package.json index decf74a..06064c1 100644 --- a/packages/utils-chat/package.json +++ b/packages/utils-chat/package.json @@ -18,20 +18,23 @@ "ai" ], "sideEffects": false, - "exports": { - ".": { - "types": "./dist/index.d.ts", - "default": "./dist/index.js" - } - }, - "main": "./dist/index.js", - "types": "./dist/index.d.ts", + "exports": "./src/index.ts", "files": [ "dist" ], + "publishConfig": { + "exports": { + ".": { + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + }, + "./package.json": "./package.json" + }, + "main": "./dist/index.js", + "types": "./dist/index.d.ts" + }, "scripts": { - "build": "pkgroll", - "build:watch": "pkgroll --watch" + "build": "tsup" }, "dependencies": { "@xsai/shared-chat": "workspace:" diff --git a/packages/utils-stream/package.json b/packages/utils-stream/package.json index e955c38..7578cc4 100644 --- a/packages/utils-stream/package.json +++ b/packages/utils-stream/package.json @@ -14,19 +14,22 @@ "bugs": "https://github.com/moeru-ai/xsai/issues", "keywords": ["xsai", "openai", "ai"], "sideEffects": false, - "exports": { - ".": { - "types": "./dist/index.d.ts", - "default": "./dist/index.js" - } - }, - "main": "./dist/index.js", - "types": "./dist/index.d.ts", + "exports": "./src/index.ts", "files": [ "dist" ], + "publishConfig": { + "exports": { + ".": { + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + }, + "./package.json": "./package.json" + }, + "main": "./dist/index.js", + "types": "./dist/index.d.ts" + }, "scripts": { - "build": "pkgroll", - "build:watch": "pkgroll --watch" + "build": "tsup" } } diff --git a/packages/xsai/package.json b/packages/xsai/package.json index c2a7dcf..2f868da 100644 --- a/packages/xsai/package.json +++ b/packages/xsai/package.json @@ -19,23 +19,31 @@ ], "sideEffects": false, "exports": { - ".": { - "types": "./dist/index.d.ts", - "default": "./dist/index.js" - }, - "./providers": { - "types": "./dist/providers.d.ts", - "default": "./dist/providers.js" - } + ".": "./src/index.ts", + "./provider": "./src/provider.ts" }, - "main": "./dist/index.js", - "types": "./dist/index.d.ts", "files": [ "dist" ], + "publishConfig": { + "exports": { + ".": { + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + }, + "./providers": { + "types": "./dist/providers.d.ts", + "default": "./dist/providers.js" + }, + "./package.json": "./package.json" + }, + "main": "./dist/index.js", + "types": "./dist/index.d.ts" + }, "scripts": { - "build": "pkgroll", - "build:watch": "pkgroll --watch" + "build": "tsup", + "test": "vitest run", + "test:watch": "vitest" }, "dependencies": { "@xsai/embed": "workspace:", diff --git a/packages/xsai/tsup.config.ts b/packages/xsai/tsup.config.ts new file mode 100644 index 0000000..efbc4af --- /dev/null +++ b/packages/xsai/tsup.config.ts @@ -0,0 +1,11 @@ +import { defineConfig } from 'tsup' + +import defaults from '../../tsup.config' + +export default defineConfig({ + ...defaults, + entry: [ + 'src/index.ts', + 'src/providers.ts', + ], +}) diff --git a/packages/xsfetch/package.json b/packages/xsfetch/package.json index 23c2b0f..ab61706 100644 --- a/packages/xsfetch/package.json +++ b/packages/xsfetch/package.json @@ -17,19 +17,22 @@ "fetch" ], "sideEffects": false, - "exports": { - ".": { - "types": "./dist/index.d.ts", - "default": "./dist/index.js" - } - }, - "main": "./dist/index.js", - "types": "./dist/index.d.ts", + "exports": "./src/index.ts", "files": [ "dist" ], + "publishConfig": { + "exports": { + ".": { + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + }, + "./package.json": "./package.json" + }, + "main": "./dist/index.js", + "types": "./dist/index.d.ts" + }, "scripts": { - "build": "pkgroll", - "build:watch": "pkgroll --watch" + "build": "tsup" } } diff --git a/packages/xsschema/package.json b/packages/xsschema/package.json index 495da61..1c97038 100644 --- a/packages/xsschema/package.json +++ b/packages/xsschema/package.json @@ -18,20 +18,23 @@ "typeschema" ], "sideEffects": false, - "exports": { - ".": { - "types": "./dist/index.d.ts", - "default": "./dist/index.js" - } - }, - "main": "./dist/index.js", - "types": "./dist/index.d.ts", + "exports": "./src/index.ts", "files": [ "dist" ], + "publishConfig": { + "exports": { + ".": { + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + }, + "./package.json": "./package.json" + }, + "main": "./dist/index.js", + "types": "./dist/index.d.ts" + }, "scripts": { - "build": "pkgroll", - "build:watch": "pkgroll --watch" + "build": "tsup" }, "peerDependencies": { "@valibot/to-json-schema": "catalog:", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 357531d..b47b5bb 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -26,6 +26,9 @@ importers: '@importantimport/tsconfig': specifier: ^1.0.0-beta.0 version: 1.0.0-beta.0 + '@pnpm/find-workspace-dir': + specifier: ^1000.0.2 + version: 1000.0.2 '@types/eslint': specifier: ^9.6.1 version: 9.6.1 @@ -47,9 +50,9 @@ importers: jiti: specifier: ^2.4.2 version: 2.4.2 - pkgroll: - specifier: ^2.6.1 - version: 2.6.1(typescript@5.6.3) + tsup: + specifier: ^8.3.6 + version: 8.3.6(jiti@2.4.2)(postcss@8.5.1)(tsx@4.19.2)(typescript@5.6.3)(yaml@2.6.1) tsx: specifier: ^4.19.2 version: 4.19.2 @@ -83,9 +86,6 @@ importers: fumadocs-twoslash: specifier: ^3.0.0 version: 3.0.0(@types/react-dom@19.0.3(@types/react@19.0.8))(@types/react@19.0.8)(fumadocs-ui@15.0.0(@types/react-dom@19.0.3(@types/react@19.0.8))(@types/react@19.0.8)(fumadocs-core@15.0.0(@types/react@19.0.8)(next@15.0.3(@babel/core@7.26.0)(react-dom@19.0.0(react@19.0.0))(react@19.0.0))(react-dom@19.0.0(react@19.0.0))(react@19.0.0))(next@15.0.3(@babel/core@7.26.0)(react-dom@19.0.0(react@19.0.0))(react@19.0.0))(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(tailwindcss@4.0.1))(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(shiki@2.2.0)(typescript@5.6.3) - fumadocs-typescript: - specifier: ^3.0.3 - version: 3.0.3(typescript@5.6.3) fumadocs-ui: specifier: ^15.0.0 version: 15.0.0(@types/react-dom@19.0.3(@types/react@19.0.8))(@types/react@19.0.8)(fumadocs-core@15.0.0(@types/react@19.0.8)(next@15.0.3(@babel/core@7.26.0)(react-dom@19.0.0(react@19.0.0))(react@19.0.0))(react-dom@19.0.0(react@19.0.0))(react@19.0.0))(next@15.0.3(@babel/core@7.26.0)(react-dom@19.0.0(react@19.0.0))(react@19.0.0))(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(tailwindcss@4.0.1) @@ -1586,79 +1586,67 @@ packages: resolution: {integrity: sha512-9B+taZ8DlyyqzZQnoeIvDVR/2F4EbMepXMc/NdVbkzsJbzkUjhXv/70GQJ7tdLA4YJgNP25zukcxpX2/SueNrA==} cpu: [arm64] os: [linux] - libc: [glibc] '@img/sharp-libvips-linux-arm@1.0.5': resolution: {integrity: sha512-gvcC4ACAOPRNATg/ov8/MnbxFDJqf/pDePbBnuBDcjsI8PssmjoKMAz4LtLaVi+OnSb5FK/yIOamqDwGmXW32g==} cpu: [arm] os: [linux] - libc: [glibc] '@img/sharp-libvips-linux-s390x@1.0.4': resolution: {integrity: sha512-u7Wz6ntiSSgGSGcjZ55im6uvTrOxSIS8/dgoVMoiGE9I6JAfU50yH5BoDlYA1tcuGS7g/QNtetJnxA6QEsCVTA==} cpu: [s390x] os: [linux] - libc: [glibc] '@img/sharp-libvips-linux-x64@1.0.4': resolution: {integrity: sha512-MmWmQ3iPFZr0Iev+BAgVMb3ZyC4KeFc3jFxnNbEPas60e1cIfevbtuyf9nDGIzOaW9PdnDciJm+wFFaTlj5xYw==} cpu: [x64] os: [linux] - libc: [glibc] '@img/sharp-libvips-linuxmusl-arm64@1.0.4': resolution: {integrity: sha512-9Ti+BbTYDcsbp4wfYib8Ctm1ilkugkA/uscUn6UXK1ldpC1JjiXbLfFZtRlBhjPZ5o1NCLiDbg8fhUPKStHoTA==} cpu: [arm64] os: [linux] - libc: [musl] '@img/sharp-libvips-linuxmusl-x64@1.0.4': resolution: {integrity: sha512-viYN1KX9m+/hGkJtvYYp+CCLgnJXwiQB39damAO7WMdKWlIhmYTfHjwSbQeUK/20vY154mwezd9HflVFM1wVSw==} cpu: [x64] os: [linux] - libc: [musl] '@img/sharp-linux-arm64@0.33.5': resolution: {integrity: sha512-JMVv+AMRyGOHtO1RFBiJy/MBsgz0x4AWrT6QoEVVTyh1E39TrCUpTRI7mx9VksGX4awWASxqCYLCV4wBZHAYxA==} engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} cpu: [arm64] os: [linux] - libc: [glibc] '@img/sharp-linux-arm@0.33.5': resolution: {integrity: sha512-JTS1eldqZbJxjvKaAkxhZmBqPRGmxgu+qFKSInv8moZ2AmT5Yib3EQ1c6gp493HvrvV8QgdOXdyaIBrhvFhBMQ==} engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} cpu: [arm] os: [linux] - libc: [glibc] '@img/sharp-linux-s390x@0.33.5': resolution: {integrity: sha512-y/5PCd+mP4CA/sPDKl2961b+C9d+vPAveS33s6Z3zfASk2j5upL6fXVPZi7ztePZ5CuH+1kW8JtvxgbuXHRa4Q==} engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} cpu: [s390x] os: [linux] - libc: [glibc] '@img/sharp-linux-x64@0.33.5': resolution: {integrity: sha512-opC+Ok5pRNAzuvq1AG0ar+1owsu842/Ab+4qvU879ippJBHvyY5n2mxF1izXqkPYlGuP/M556uh53jRLJmzTWA==} engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} cpu: [x64] os: [linux] - libc: [glibc] '@img/sharp-linuxmusl-arm64@0.33.5': resolution: {integrity: sha512-XrHMZwGQGvJg2V/oRSUfSAfjfPxO+4DkiRh6p2AFjLQztWUuY/o8Mq0eMQVIY7HJ1CDQUJlxGGZRw1a5bqmd1g==} engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} cpu: [arm64] os: [linux] - libc: [musl] '@img/sharp-linuxmusl-x64@0.33.5': resolution: {integrity: sha512-WT+d/cgqKkkKySYmqoZ8y3pxx7lx9vVejxW/W4DOFMYVSkErR+w7mf2u8m/y4+xHe7yY9DAXQMWQhpnMuFfScw==} engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} cpu: [x64] os: [linux] - libc: [musl] '@img/sharp-wasm32@0.33.5': resolution: {integrity: sha512-ykUW4LVGaMcU9lu9thv85CbRMAwfeadCJHRsg2GmeRa/cJxsVY9Rbd57JcMxBkKHag5U/x7TSBpScF4U8ElVzg==} @@ -1745,28 +1733,24 @@ packages: engines: {node: '>= 10'} cpu: [arm64] os: [linux] - libc: [glibc] '@next/swc-linux-arm64-musl@15.0.3': resolution: {integrity: sha512-WkAk6R60mwDjH4lG/JBpb2xHl2/0Vj0ZRu1TIzWuOYfQ9tt9NFsIinI1Epma77JVgy81F32X/AeD+B2cBu/YQA==} engines: {node: '>= 10'} cpu: [arm64] os: [linux] - libc: [musl] '@next/swc-linux-x64-gnu@15.0.3': resolution: {integrity: sha512-gWL/Cta1aPVqIGgDb6nxkqy06DkwJ9gAnKORdHWX1QBbSZZB+biFYPFti8aKIQL7otCE1pjyPaXpFzGeG2OS2w==} engines: {node: '>= 10'} cpu: [x64] os: [linux] - libc: [glibc] '@next/swc-linux-x64-musl@15.0.3': resolution: {integrity: sha512-QQEMwFd8r7C0GxQS62Zcdy6GKx999I/rTO2ubdXEe+MlZk9ZiinsrjwoiBL5/57tfyjikgh6GOU2WRQVUej3UA==} engines: {node: '>= 10'} cpu: [x64] os: [linux] - libc: [musl] '@next/swc-win32-arm64-msvc@15.0.3': resolution: {integrity: sha512-9TEp47AAd/ms9fPNgtgnT7F3M1Hf7koIYYWCMQ9neOwjbVWJsHZxrFbI3iEDJ8rf1TDGpmHbKxXf2IFpAvheIQ==} @@ -1813,25 +1797,21 @@ packages: resolution: {integrity: sha512-AvAhryJTpOF0pJdroI0167cmRHDGv2aBBbTjEeNYW5b5KHNvmfeFF1eKT5e8pwj9ygR6DhwXQMIfYOsR2GBzrw==} cpu: [arm64] os: [linux] - libc: [glibc] '@oxc-transform/binding-linux-arm64-musl@0.47.1': resolution: {integrity: sha512-b3KDPQeC3yTZXF3vroOD9Mq6QfODxVt8OOeWkufytgOvNyM0NrHhXiiRLBvbNQyf7GfKd82B0l7is6hKuGELwg==} cpu: [arm64] os: [linux] - libc: [musl] '@oxc-transform/binding-linux-x64-gnu@0.47.1': resolution: {integrity: sha512-bvdPbWnAtfWhQ+hRLtZCeI+mHivHBR4oJL1Zk8HZdo61LEr32XrfTjAOjzoaRqcANKaZv5o9Skyotp71Pf+Xfg==} cpu: [x64] os: [linux] - libc: [glibc] '@oxc-transform/binding-linux-x64-musl@0.47.1': resolution: {integrity: sha512-E549H+YqzkkvX72QxJechLEAAIseHndrrSWW5lacfCpatZjpTEBoHaMfTf7L3B4Ha/hg/JRZrn/rudYOMJ7ztA==} cpu: [x64] os: [linux] - libc: [musl] '@oxc-transform/binding-win32-arm64-msvc@0.47.1': resolution: {integrity: sha512-GGbQBBKjIJ3CZ+lnOyPdKdyy1cbazZxTAJWN+EShfXJz+T1gY3BF6U3yhiRAvDefZ2SYLvALi2n4Wz//4vUz6A==} @@ -1872,42 +1852,36 @@ packages: engines: {node: '>= 10.0.0'} cpu: [arm] os: [linux] - libc: [glibc] '@parcel/watcher-linux-arm-musl@2.5.0': resolution: {integrity: sha512-6uHywSIzz8+vi2lAzFeltnYbdHsDm3iIB57d4g5oaB9vKwjb6N6dRIgZMujw4nm5r6v9/BQH0noq6DzHrqr2pA==} engines: {node: '>= 10.0.0'} cpu: [arm] os: [linux] - libc: [musl] '@parcel/watcher-linux-arm64-glibc@2.5.0': resolution: {integrity: sha512-BfNjXwZKxBy4WibDb/LDCriWSKLz+jJRL3cM/DllnHH5QUyoiUNEp3GmL80ZqxeumoADfCCP19+qiYiC8gUBjA==} engines: {node: '>= 10.0.0'} cpu: [arm64] os: [linux] - libc: [glibc] '@parcel/watcher-linux-arm64-musl@2.5.0': resolution: {integrity: sha512-S1qARKOphxfiBEkwLUbHjCY9BWPdWnW9j7f7Hb2jPplu8UZ3nes7zpPOW9bkLbHRvWM0WDTsjdOTUgW0xLBN1Q==} engines: {node: '>= 10.0.0'} cpu: [arm64] os: [linux] - libc: [musl] '@parcel/watcher-linux-x64-glibc@2.5.0': resolution: {integrity: sha512-d9AOkusyXARkFD66S6zlGXyzx5RvY+chTP9Jp0ypSTC9d4lzyRs9ovGf/80VCxjKddcUvnsGwCHWuF2EoPgWjw==} engines: {node: '>= 10.0.0'} cpu: [x64] os: [linux] - libc: [glibc] '@parcel/watcher-linux-x64-musl@2.5.0': resolution: {integrity: sha512-iqOC+GoTDoFyk/VYSFHwjHhYrk8bljW6zOhPuhi5t9ulqiYq1togGJB5e3PwYVFFfeVgc6pbz3JdQyDoBszVaA==} engines: {node: '>= 10.0.0'} cpu: [x64] os: [linux] - libc: [musl] '@parcel/watcher-win32-arm64@2.5.0': resolution: {integrity: sha512-twtft1d+JRNkM5YbmexfcH/N4znDtjgysFaV9zvZmmJezQsKpkfLYJ+JFV3uygugK6AtIM2oADPkB2AdhBrNig==} @@ -1939,6 +1913,18 @@ packages: resolution: {integrity: sha512-cq8o4cWH0ibXh9VGi5P20Tu9XF/0fFXl9EUinr9QfTM7a7p0oTA4iJRCQWppXR1Pg8dSM0UCItCkPwsk9qWWYA==} engines: {node: ^12.20.0 || ^14.18.0 || >=16.0.0} + '@pnpm/constants@1001.1.0': + resolution: {integrity: sha512-xb9dfSGi1qfUKY3r4Zy9JdC9+ZeaDxwfE7HrrGIEsBVY1hvIn6ntbR7A97z3nk44yX7vwbINNf9sizTp0WEtEw==} + engines: {node: '>=18.12'} + + '@pnpm/error@1000.0.2': + resolution: {integrity: sha512-2SfE4FFL73rE1WVIoESbqlj4sLy5nWW4M/RVdHvCRJPjlQHa9MH7m7CVJM204lz6I+eHoB+E7rL3zmpJR5wYnQ==} + engines: {node: '>=18.12'} + + '@pnpm/find-workspace-dir@1000.0.2': + resolution: {integrity: sha512-zhPR22Hl4JcxCesMUt7VOsy6XdJkN7yttG1x+T7XcQF4dZeOh36PpduGRhxAKv8eI9xFIdu4mcQRGIZt6leO7g==} + engines: {node: '>=18.12'} + '@radix-ui/number@1.1.0': resolution: {integrity: sha512-V3gRzhVNU1ldS5XhAPTom1fOIo4ccrjjJgmE+LI2h/WaFpHmx0MQApT+KZHnx8abG6Avtfcz4WoEciMnpFT3HQ==} @@ -2286,78 +2272,6 @@ packages: '@radix-ui/rect@1.1.0': resolution: {integrity: sha512-A9+lCBZoaMJlVKcRBz2YByCG+Cp2t6nAnMnNba+XiWxnj6r4JUFqfsgwocMBZU9LPtdxC6wB56ySYpc7LQIoJg==} - '@rollup/plugin-alias@5.1.1': - resolution: {integrity: sha512-PR9zDb+rOzkRb2VD+EuKB7UC41vU5DIwZ5qqCpk0KJudcWAyi8rvYOhS7+L5aZCspw1stTViLgN5v6FF1p5cgQ==} - engines: {node: '>=14.0.0'} - peerDependencies: - rollup: ^1.20.0||^2.0.0||^3.0.0||^4.0.0 - peerDependenciesMeta: - rollup: - optional: true - - '@rollup/plugin-commonjs@28.0.2': - resolution: {integrity: sha512-BEFI2EDqzl+vA1rl97IDRZ61AIwGH093d9nz8+dThxJNH8oSoB7MjWvPCX3dkaK1/RCJ/1v/R1XB15FuSs0fQw==} - engines: {node: '>=16.0.0 || 14 >= 14.17'} - peerDependencies: - rollup: ^2.68.0||^3.0.0||^4.0.0 - peerDependenciesMeta: - rollup: - optional: true - - '@rollup/plugin-dynamic-import-vars@2.1.5': - resolution: {integrity: sha512-Mymi24fd9hlRifdZV/jYIFj1dn99F34imiYu3KzlAcgBcRi3i9SucgW/VRo5SQ9K4NuQ7dCep6pFWgNyhRdFHQ==} - engines: {node: '>=14.0.0'} - peerDependencies: - rollup: ^1.20.0||^2.0.0||^3.0.0||^4.0.0 - peerDependenciesMeta: - rollup: - optional: true - - '@rollup/plugin-inject@5.0.5': - resolution: {integrity: sha512-2+DEJbNBoPROPkgTDNe8/1YXWcqxbN5DTjASVIOx8HS+pITXushyNiBV56RB08zuptzz8gT3YfkqriTBVycepg==} - engines: {node: '>=14.0.0'} - peerDependencies: - rollup: ^1.20.0||^2.0.0||^3.0.0||^4.0.0 - peerDependenciesMeta: - rollup: - optional: true - - '@rollup/plugin-json@6.1.0': - resolution: {integrity: sha512-EGI2te5ENk1coGeADSIwZ7G2Q8CJS2sF120T7jLw4xFw9n7wIOXHo+kIYRAoVpJAN+kmqZSoO3Fp4JtoNF4ReA==} - engines: {node: '>=14.0.0'} - peerDependencies: - rollup: ^1.20.0||^2.0.0||^3.0.0||^4.0.0 - peerDependenciesMeta: - rollup: - optional: true - - '@rollup/plugin-node-resolve@16.0.0': - resolution: {integrity: sha512-0FPvAeVUT/zdWoO0jnb/V5BlBsUSNfkIOtFHzMO4H9MOklrmQFY6FduVHKucNb/aTFxvnGhj4MNj/T1oNdDfNg==} - engines: {node: '>=14.0.0'} - peerDependencies: - rollup: ^2.78.0||^3.0.0||^4.0.0 - peerDependenciesMeta: - rollup: - optional: true - - '@rollup/plugin-replace@6.0.2': - resolution: {integrity: sha512-7QaYCf8bqF04dOy7w/eHmJeNExxTYwvKAmlSAH/EaWWUzbT0h5sbF6bktFoX/0F/0qwng5/dWFMyf3gzaM8DsQ==} - engines: {node: '>=14.0.0'} - peerDependencies: - rollup: ^1.20.0||^2.0.0||^3.0.0||^4.0.0 - peerDependenciesMeta: - rollup: - optional: true - - '@rollup/pluginutils@5.1.4': - resolution: {integrity: sha512-USm05zrsFxYLPdWWq+K3STlWiT/3ELn3RcV5hJMghpeAIhxfsUIg6mt12CBJBInWMV4VneoV7SfGv8xIwo2qNQ==} - engines: {node: '>=14.0.0'} - peerDependencies: - rollup: ^1.20.0||^2.0.0||^3.0.0||^4.0.0 - peerDependenciesMeta: - rollup: - optional: true - '@rollup/rollup-android-arm-eabi@4.30.1': resolution: {integrity: sha512-pSWY+EVt3rJ9fQ3IqlrEUtXh3cGqGtPDH1FQlNZehO2yYxCHEX1SPsz1M//NXwYfbTlcKr9WObLnJX9FsS9K1Q==} cpu: [arm] @@ -2392,61 +2306,51 @@ packages: resolution: {integrity: sha512-PaMRNBSqCx7K3Wc9QZkFx5+CX27WFpAMxJNiYGAXfmMIKC7jstlr32UhTgK6T07OtqR+wYlWm9IxzennjnvdJg==} cpu: [arm] os: [linux] - libc: [glibc] '@rollup/rollup-linux-arm-musleabihf@4.30.1': resolution: {integrity: sha512-B8Rcyj9AV7ZlEFqvB5BubG5iO6ANDsRKlhIxySXcF1axXYUyqwBok+XZPgIYGBgs7LDXfWfifxhw0Ik57T0Yug==} cpu: [arm] os: [linux] - libc: [musl] '@rollup/rollup-linux-arm64-gnu@4.30.1': resolution: {integrity: sha512-hqVyueGxAj3cBKrAI4aFHLV+h0Lv5VgWZs9CUGqr1z0fZtlADVV1YPOij6AhcK5An33EXaxnDLmJdQikcn5NEw==} cpu: [arm64] os: [linux] - libc: [glibc] '@rollup/rollup-linux-arm64-musl@4.30.1': resolution: {integrity: sha512-i4Ab2vnvS1AE1PyOIGp2kXni69gU2DAUVt6FSXeIqUCPIR3ZlheMW3oP2JkukDfu3PsexYRbOiJrY+yVNSk9oA==} cpu: [arm64] os: [linux] - libc: [musl] '@rollup/rollup-linux-loongarch64-gnu@4.30.1': resolution: {integrity: sha512-fARcF5g296snX0oLGkVxPmysetwUk2zmHcca+e9ObOovBR++9ZPOhqFUM61UUZ2EYpXVPN1redgqVoBB34nTpQ==} cpu: [loong64] os: [linux] - libc: [glibc] '@rollup/rollup-linux-powerpc64le-gnu@4.30.1': resolution: {integrity: sha512-GLrZraoO3wVT4uFXh67ElpwQY0DIygxdv0BNW9Hkm3X34wu+BkqrDrkcsIapAY+N2ATEbvak0XQ9gxZtCIA5Rw==} cpu: [ppc64] os: [linux] - libc: [glibc] '@rollup/rollup-linux-riscv64-gnu@4.30.1': resolution: {integrity: sha512-0WKLaAUUHKBtll0wvOmh6yh3S0wSU9+yas923JIChfxOaaBarmb/lBKPF0w/+jTVozFnOXJeRGZ8NvOxvk/jcw==} cpu: [riscv64] os: [linux] - libc: [glibc] '@rollup/rollup-linux-s390x-gnu@4.30.1': resolution: {integrity: sha512-GWFs97Ruxo5Bt+cvVTQkOJ6TIx0xJDD/bMAOXWJg8TCSTEK8RnFeOeiFTxKniTc4vMIaWvCplMAFBt9miGxgkA==} cpu: [s390x] os: [linux] - libc: [glibc] '@rollup/rollup-linux-x64-gnu@4.30.1': resolution: {integrity: sha512-UtgGb7QGgXDIO+tqqJ5oZRGHsDLO8SlpE4MhqpY9Llpzi5rJMvrK6ZGhsRCST2abZdBqIBeXW6WPD5fGK5SDwg==} cpu: [x64] os: [linux] - libc: [glibc] '@rollup/rollup-linux-x64-musl@4.30.1': resolution: {integrity: sha512-V9U8Ey2UqmQsBT+xTOeMzPzwDzyXmnAoO4edZhL7INkwQcaW1Ckv3WJX3qrrp/VHaDkEWIBWhRwP47r8cdrOow==} cpu: [x64] os: [linux] - libc: [musl] '@rollup/rollup-win32-arm64-msvc@4.30.1': resolution: {integrity: sha512-WabtHWiPaFF47W3PkHnjbmWawnX/aE57K47ZDT1BXTS5GgrBUEpvOzq0FI0V/UYzQJgdb8XlhVNH8/fwV8xDjw==} @@ -2550,28 +2454,24 @@ packages: engines: {node: '>= 10'} cpu: [arm64] os: [linux] - libc: [glibc] '@tailwindcss/oxide-linux-arm64-musl@4.0.1': resolution: {integrity: sha512-iuoFGhKDojtfloi5uj6MIk4kxEOGcsAk/kPbZItF9Dp7TnzVhxo2U/718tXhxGrg6jSL3ST3cQHIjA6yw3OeXw==} engines: {node: '>= 10'} cpu: [arm64] os: [linux] - libc: [musl] '@tailwindcss/oxide-linux-x64-gnu@4.0.1': resolution: {integrity: sha512-pNUrGQYyE8RK+N9yvkPmHnlKDfFbni9A3lsi37u4RoA/6Yn+zWVoegvAQMZu3w+jqnpb2A/bYJ+LumcclUZ3yg==} engines: {node: '>= 10'} cpu: [x64] os: [linux] - libc: [glibc] '@tailwindcss/oxide-linux-x64-musl@4.0.1': resolution: {integrity: sha512-xSGWaDcT6SJ75su9zWXj8GYb2jM/przXwZGH96RTS7HGDIoI1tvgpls88YajG5Sx7hXaqAWCufjw5L/dlu+lzg==} engines: {node: '>= 10'} cpu: [x64] os: [linux] - libc: [musl] '@tailwindcss/oxide-win32-arm64-msvc@4.0.1': resolution: {integrity: sha512-BUNL2isUZ2yWnbplPddggJpZxsqGHPZ1RJAYpu63W4znUnKCzI4m/jiy0WpyYqqOKL9jDM5q0QdsQ9mc3aw5YQ==} @@ -2648,9 +2548,6 @@ packages: '@types/react@19.0.8': resolution: {integrity: sha512-9P/o1IGdfmQxrujGbIMDyYaaCykhLKc0NGCtYcECNUr9UAaDe4gwvV9bR6tvd5Br1SG0j+PBpbKr2UYY8CwqSw==} - '@types/resolve@1.20.2': - resolution: {integrity: sha512-60BCwRFOZCQhDncwQdxxeOEEkbc5dIMccYLwbxsS4TUNeVECQ/pBJ0j09mrHOl/JJvpRPGwO9SvE4nR2Nb/a4Q==} - '@types/unist@2.0.11': resolution: {integrity: sha512-CmBKiL6NNo/OqgmMn95Fk9Whlp2mtvIv+KNpQKN2F4SjvrEesubTRWGYSg+BnWZOnlCaSTU1sMpsBOzgbYhnsA==} @@ -2845,6 +2742,9 @@ packages: resolution: {integrity: sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==} engines: {node: '>=12'} + any-promise@1.3.0: + resolution: {integrity: sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==} + are-docs-informative@0.0.2: resolution: {integrity: sha512-ixiS0nLNNG5jNQzgZJNoUpBKdo9yTYZMGJ+QgT2jmjR7G7+QHRCc4v6LQ3NgE7EBJq+o0ams3waJwkrlBom8Ig==} engines: {node: '>=14'} @@ -2958,6 +2858,12 @@ packages: engines: {node: '>=18'} hasBin: true + bundle-require@5.1.0: + resolution: {integrity: sha512-3WrrOuZiyaaZPWiEt4G3+IffISVC9HYlWueJEBWED4ZH4aIAC2PnkdnuRrR94M+w6yGWn4AglWtJtBI8YqvgoA==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + peerDependencies: + esbuild: '>=0.18' + busboy@1.6.0: resolution: {integrity: sha512-8SFQbg/0hQ9xy3UNTB0YEnsNBbWfhf7RtnzpL7TkBiTBRfrQ9Fxcnz7VJsleJpyp6rVLvXiuORqjlHi5q+PYuA==} engines: {node: '>=10.16.0'} @@ -3090,13 +2996,14 @@ packages: commander@2.20.3: resolution: {integrity: sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==} + commander@4.1.1: + resolution: {integrity: sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==} + engines: {node: '>= 6'} + comment-parser@1.4.1: resolution: {integrity: sha512-buhp5kePrmda3vhc5B9t7pUQXAb2Tnd0qgpkIhPhkHXxJpiPJ11H0ZEU0oBpJ2QztSbzG/ZxMj/CHsYJqRHmyg==} engines: {node: '>= 12.0.0'} - commondir@1.0.1: - resolution: {integrity: sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg==} - compute-scroll-into-view@3.1.0: resolution: {integrity: sha512-rj8l8pD4bJ1nx+dAkMhV1xB5RuZEyVysfxJqB1pRchh1KVvwOv9b7CGB8ZfjTImVv2oF+sYMUkMZq6Na5Ftmbg==} @@ -3176,10 +3083,6 @@ packages: deep-is@0.1.4: resolution: {integrity: sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==} - deepmerge@4.3.1: - resolution: {integrity: sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==} - engines: {node: '>=0.10.0'} - define-data-property@1.1.4: resolution: {integrity: sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==} engines: {node: '>= 0.4'} @@ -4020,9 +3923,6 @@ packages: resolution: {integrity: sha512-1Qed0/Hr2m+YqxnM09CjA2d/i6YZNfF6R2oRAOj36eUdS6qIV/huPJNSEpKbupewFs+ZsJlxsjjPbc0/afW6Lw==} engines: {node: '>= 0.4'} - is-module@1.0.0: - resolution: {integrity: sha512-51ypPSPCoTEIN9dy5Oy+h4pShgJmPCygKfyRCISBI+JoWT/2oJvK8QPxmwv7b/p239jXrm9M1mlQbyKJ5A152g==} - is-number-object@1.1.1: resolution: {integrity: sha512-lZhclumE1G6VYD8VHe35wFaIif+CTy5SJIi5+3y4psDgWu4wPDoBhF8NxUOinEc7pHgiTsT6MaBb92rKhhD+Xw==} engines: {node: '>= 0.4'} @@ -4035,9 +3935,6 @@ packages: resolution: {integrity: sha512-+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg==} engines: {node: '>=12'} - is-reference@1.2.1: - resolution: {integrity: sha512-U82MsXXiFIrjCK4otLT+o2NA2Cd2g5MLoOVXUZjIOhLurrRxpEXzI8O0KZHr3IjLvlAH1kTPYSuqer5T9ZVBKQ==} - is-regex@1.2.1: resolution: {integrity: sha512-MjYsKHO5O7mCsmRGxWcLWheFqN9DJ/2TmngvjKXihe6efViPqc274+Fx/4fYj/r03+ESvBdTXK0V6tA3rgez1g==} engines: {node: '>= 0.4'} @@ -4107,6 +4004,10 @@ packages: resolution: {integrity: sha512-rg9zJN+G4n2nfJl5MW3BMygZX56zKPNVEYYqq7adpmMh4Jn2QNEwhvQlFy6jPVdcod7txZtKHWnyZiA3a0zP7A==} hasBin: true + joycon@3.1.1: + resolution: {integrity: sha512-34wB/Y7MW7bzjKRjUKTa46I2Z7eV62Rkhva+KkopW7Qvv/OSWBqvkSY7vusOPrNuZcUG3tApvdVgNB8POj3SPw==} + engines: {node: '>=10'} + js-tokens@4.0.0: resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==} @@ -4203,28 +4104,24 @@ packages: engines: {node: '>= 12.0.0'} cpu: [arm64] os: [linux] - libc: [glibc] lightningcss-linux-arm64-musl@1.29.1: resolution: {integrity: sha512-UKMFrG4rL/uHNgelBsDwJcBqVpzNJbzsKkbI3Ja5fg00sgQnHw/VrzUTEc4jhZ+AN2BvQYz/tkHu4vt1kLuJyw==} engines: {node: '>= 12.0.0'} cpu: [arm64] os: [linux] - libc: [musl] lightningcss-linux-x64-gnu@1.29.1: resolution: {integrity: sha512-u1S+xdODy/eEtjADqirA774y3jLcm8RPtYztwReEXoZKdzgsHYPl0s5V52Tst+GKzqjebkULT86XMSxejzfISw==} engines: {node: '>= 12.0.0'} cpu: [x64] os: [linux] - libc: [glibc] lightningcss-linux-x64-musl@1.29.1: resolution: {integrity: sha512-L0Tx0DtaNUTzXv0lbGCLB/c/qEADanHbu4QdcNOXLIe1i8i22rZRpbT3gpWYsCh9aSL9zFujY/WmEXIatWvXbw==} engines: {node: '>= 12.0.0'} cpu: [x64] os: [linux] - libc: [musl] lightningcss-win32-arm64-msvc@1.29.1: resolution: {integrity: sha512-QoOVnkIEFfbW4xPi+dpdft/zAKmgLgsRHfJalEPYuJDOWf7cLQzYg0DEh8/sn737FaeMJxHZRc1oBreiwZCjog==} @@ -4242,9 +4139,17 @@ packages: resolution: {integrity: sha512-FmGoeD4S05ewj+AkhTY+D+myDvXI6eL27FjHIjoyUkO/uw7WZD1fBVs0QxeYWa7E17CUHJaYX/RUGISCtcrG4Q==} engines: {node: '>= 12.0.0'} + lilconfig@3.1.3: + resolution: {integrity: sha512-/vlFKAoH5Cgt3Ie+JLhRbwOsCQePABiU3tJ1egGvyQ+33R/vcwM2Zl2QR/LzjsBeItPt3oSVXapn+m4nQDvpzw==} + engines: {node: '>=14'} + lines-and-columns@1.2.4: resolution: {integrity: sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==} + load-tsconfig@0.2.5: + resolution: {integrity: sha512-IXO6OCs9yg8tMKzfPZ1YmheJbZCiEsnBdcB03l0OcfK9prKnJb96siuHCr5Fl37/yo9DnKU+TLpxzTUspw9shg==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + local-pkg@1.0.0: resolution: {integrity: sha512-bbgPw/wmroJsil/GgL4qjDzs5YLTBMQ99weRsok1XCDccQeehbHA/I1oRvk2NPtr7KGZgT/Y5tPRnAtMqeG2Kg==} engines: {node: '>=14'} @@ -4266,6 +4171,9 @@ packages: lodash.merge@4.6.2: resolution: {integrity: sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==} + lodash.sortby@4.7.0: + resolution: {integrity: sha512-HDWXG8isMntAyRF5vZ7xKuEvOhT4AhlRt/3czTSjvGUxjYCBVRQY48ViDHyfYz9VIoBkW4TMGQNapx+l3RUwdA==} + lodash@4.17.21: resolution: {integrity: sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==} @@ -4548,6 +4456,9 @@ packages: ms@2.1.3: resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==} + mz@2.7.0: + resolution: {integrity: sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q==} + nanoid@3.3.7: resolution: {integrity: sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==} engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} @@ -4641,6 +4552,10 @@ packages: engines: {node: ^14.16.0 || >=16.10.0} hasBin: true + object-assign@4.1.1: + resolution: {integrity: sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==} + engines: {node: '>=0.10.0'} + object-inspect@1.13.3: resolution: {integrity: sha512-kDCGIbxkDSXE3euJZZXzc6to7fCrKHNI/hSRQnRuQ+BWjFNzZwiFF8fj/6o2t2G9/jTj8PSIYTfCLelLZEeRpA==} engines: {node: '>= 0.4'} @@ -4791,22 +4706,16 @@ packages: resolution: {integrity: sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==} engines: {node: '>=12'} + pirates@4.0.6: + resolution: {integrity: sha512-saLsH7WeYYPiD25LDuLRRY/i+6HaPYr6G1OUlN39otzkSTxKnubR9RTxS3/Kk50s1g2JTgFwWQDQyplC5/SHZg==} + engines: {node: '>= 6'} + pkg-types@1.2.1: resolution: {integrity: sha512-sQoqa8alT3nHjGuTjuKgOnvjo4cljkufdtLMnO2LBP/wRwuDlo1tkaEdMxCRhyGRPacv/ztlZgDPm2b7FAmEvw==} pkg-types@1.3.1: resolution: {integrity: sha512-/Jm5M4RvtBFVkKWRu2BLUTNP8/M2a+UwuAX+ae4770q1qVGtfjG+WTCupoZixokjmHiry8uI+dlY8KXYV5HVVQ==} - pkgroll@2.6.1: - resolution: {integrity: sha512-n9ll3LHCvFVsoXzxAFN/Z+kO4E1ByRW/6YdcreLGKj6b7qpRnZI14Xd7nSfhhWcrF67aAVoT/00wGG7VQsSu9Q==} - engines: {node: '>=18'} - hasBin: true - peerDependencies: - typescript: ^4.1 || ^5.0 - peerDependenciesMeta: - typescript: - optional: true - pluralize@8.0.0: resolution: {integrity: sha512-Nc3IT5yHzflTfbjgqWcCPpo7DaKy4FnpB0l/zCAW0Tc7jxAiuqSxHasntB3D7887LSrA93kDJ9IXovxJYxyLCA==} engines: {node: '>=4'} @@ -4815,6 +4724,24 @@ packages: resolution: {integrity: sha512-d7Uw+eZoloe0EHDIYoe+bQ5WXnGMOpmiZFTuMWCwpjzzkL2nTjcKiAk4hh8TjnGye2TwWOk3UXucZ+3rbmBa8Q==} engines: {node: '>= 0.4'} + postcss-load-config@6.0.1: + resolution: {integrity: sha512-oPtTM4oerL+UXmx+93ytZVN82RrlY/wPUV8IeDxFrzIjXOLF1pN+EmKPLbubvKHT2HC20xXsCAH2Z+CKV6Oz/g==} + engines: {node: '>= 18'} + peerDependencies: + jiti: '>=1.21.0' + postcss: '>=8.0.9' + tsx: ^4.8.1 + yaml: ^2.4.2 + peerDependenciesMeta: + jiti: + optional: true + postcss: + optional: true + tsx: + optional: true + yaml: + optional: true + postcss-selector-parser@6.1.2: resolution: {integrity: sha512-Q8qQfPiZ+THO/3ZrOrO0cJJKfpYCagtMUkXbnEfmgUjwXg6z/WBeOyS9APBBPCTSiDV+s4SwQGu8yFsiMRIudg==} engines: {node: '>=4'} @@ -5013,6 +4940,10 @@ packages: resolution: {integrity: sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==} engines: {node: '>=4'} + resolve-from@5.0.0: + resolution: {integrity: sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==} + engines: {node: '>=8'} + resolve-pkg-maps@1.0.0: resolution: {integrity: sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==} @@ -5280,6 +5211,10 @@ packages: resolution: {integrity: sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA==} engines: {node: '>= 8'} + source-map@0.8.0-beta.0: + resolution: {integrity: sha512-2ymg6oRBpebeZi9UUNsgQ89bhx01TcTkmNTGnNO88imTmbSgy4nfujrgVEFKWpMTEGA11EDkTt7mqObTPdigIA==} + engines: {node: '>= 8'} + space-separated-tokens@2.0.2: resolution: {integrity: sha512-PEGlAwrG8yXGXRjW32fGbg66JAlOAwbObuqVoJpv/mRgoWDQfgH1wDPvtzWyUSNAXBGSk8h755YDbbcEy3SH2Q==} @@ -5377,6 +5312,11 @@ packages: babel-plugin-macros: optional: true + sucrase@3.35.0: + resolution: {integrity: sha512-8EbVDiu9iN/nESwxeSxDKe0dunta1GOlHufmSSXxMD2z2/tMZpDMpvXQGsc+ajGo8y2uYUmixaSRUc/QPoQ0GA==} + engines: {node: '>=16 || 14 >=14.17'} + hasBin: true + supports-color@7.2.0: resolution: {integrity: sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==} engines: {node: '>=8'} @@ -5428,6 +5368,13 @@ packages: resolution: {integrity: sha512-pFYqmTw68LXVjeWJMST4+borgQP2AyMNbg1BpZh9LbyhUeNkeaPF9gzfPGUAnSMV3qPYdWUwDIjjCLiSDOl7vg==} engines: {node: '>=18'} + thenify-all@1.6.0: + resolution: {integrity: sha512-RNxQH/qI8/t3thXJDwcstUO4zeqo64+Uy/+sNVRBx4Xn2OX+OZ9oP+iJnNFqplFra2ZUVeKCSa2oVWi3T4uVmA==} + engines: {node: '>=0.8'} + + thenify@3.3.1: + resolution: {integrity: sha512-RVZSIV5IG10Hk3enotrhvz0T9em6cyHBLkH/YAZuKqd8hRkKhSfCGIcP2KUY0EPxndzANBmNllzWPwak+bheSw==} + tinybench@2.9.0: resolution: {integrity: sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==} @@ -5461,6 +5408,13 @@ packages: tr46@0.0.3: resolution: {integrity: sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==} + tr46@1.0.1: + resolution: {integrity: sha512-dTpowEjclQ7Kgx5SdBkqRzVhERQXov8/l9Ft9dVM9fmg0W0KQSVaXX9T4i6twCPNtYiZM53lpSSUAwJbFPOHxA==} + + tree-kill@1.2.2: + resolution: {integrity: sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A==} + hasBin: true + trim-lines@3.0.1: resolution: {integrity: sha512-kRj8B+YHZCc9kQYdWfJB2/oUl9rA99qbowYYBtr4ui4mZyAQ2JpvVBd/6U2YloATfqBhBTSMhTpgBHtU0Mf3Rg==} @@ -5473,12 +5427,34 @@ packages: peerDependencies: typescript: '>=4.8.4' + ts-interface-checker@0.1.13: + resolution: {integrity: sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==} + ts-morph@25.0.0: resolution: {integrity: sha512-ERPTUVO5qF8cEGJgAejGOsCVlbk8d0SDyiJsucKQT5XgqoZslv0Qml+gnui6Yy6o+uQqw5SestyW2HvlVtT/Sg==} tslib@2.8.1: resolution: {integrity: sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==} + tsup@8.3.6: + resolution: {integrity: sha512-XkVtlDV/58S9Ye0JxUUTcrQk4S+EqlOHKzg6Roa62rdjL1nGWNUstG0xgI4vanHdfIpjP448J8vlN0oK6XOJ5g==} + engines: {node: '>=18'} + hasBin: true + peerDependencies: + '@microsoft/api-extractor': ^7.36.0 + '@swc/core': ^1 + postcss: ^8.4.12 + typescript: '>=4.5.0' + peerDependenciesMeta: + '@microsoft/api-extractor': + optional: true + '@swc/core': + optional: true + postcss: + optional: true + typescript: + optional: true + tsx@4.19.2: resolution: {integrity: sha512-pOUl6Vo2LUq/bSa8S5q7b91cgNSjctn9ugq/+Mvow99qW6x/UZYwzxy/3NmqoT66eHYfCVvFvACC58UBPFf28g==} engines: {node: '>=18.0.0'} @@ -5720,9 +5696,15 @@ packages: webidl-conversions@3.0.1: resolution: {integrity: sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==} + webidl-conversions@4.0.2: + resolution: {integrity: sha512-YQ+BmxuTgd6UXZW3+ICGfyqRyHXVlD5GtQr5+qjiNW7bF0cqrzX500HVXPBOvgXb5YnzDd+h0zqyv61KUD7+Sg==} + whatwg-url@5.0.0: resolution: {integrity: sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==} + whatwg-url@7.1.0: + resolution: {integrity: sha512-WUu7Rg1DroM7oQvGWfOiAK21n74Gg+T4elXEQYkOhtyLeWiJFoOGLXPKI/9gzIie9CtwVLm8wtw6YJdKyxSjeg==} + which-boxed-primitive@1.1.1: resolution: {integrity: sha512-TbX3mj8n0odCBFVlY8AxkqcHASw3L60jIuF8jFP78az3C2YhmGvqbHBpAjTRH2/xqYunrJ9g1jSyjCjpoWzIAA==} engines: {node: '>= 0.4'} @@ -7238,6 +7220,17 @@ snapshots: '@pkgr/core@0.1.1': {} + '@pnpm/constants@1001.1.0': {} + + '@pnpm/error@1000.0.2': + dependencies: + '@pnpm/constants': 1001.1.0 + + '@pnpm/find-workspace-dir@1000.0.2': + dependencies: + '@pnpm/error': 1000.0.2 + find-up: 5.0.0 + '@radix-ui/number@1.1.0': {} '@radix-ui/primitive@1.1.1': {} @@ -7579,71 +7572,6 @@ snapshots: '@radix-ui/rect@1.1.0': {} - '@rollup/plugin-alias@5.1.1(rollup@4.30.1)': - optionalDependencies: - rollup: 4.30.1 - - '@rollup/plugin-commonjs@28.0.2(rollup@4.30.1)': - dependencies: - '@rollup/pluginutils': 5.1.4(rollup@4.30.1) - commondir: 1.0.1 - estree-walker: 2.0.2 - fdir: 6.4.2(picomatch@4.0.2) - is-reference: 1.2.1 - magic-string: 0.30.17 - picomatch: 4.0.2 - optionalDependencies: - rollup: 4.30.1 - - '@rollup/plugin-dynamic-import-vars@2.1.5(rollup@4.30.1)': - dependencies: - '@rollup/pluginutils': 5.1.4(rollup@4.30.1) - astring: 1.9.0 - estree-walker: 2.0.2 - fast-glob: 3.3.2 - magic-string: 0.30.17 - optionalDependencies: - rollup: 4.30.1 - - '@rollup/plugin-inject@5.0.5(rollup@4.30.1)': - dependencies: - '@rollup/pluginutils': 5.1.4(rollup@4.30.1) - estree-walker: 2.0.2 - magic-string: 0.30.17 - optionalDependencies: - rollup: 4.30.1 - - '@rollup/plugin-json@6.1.0(rollup@4.30.1)': - dependencies: - '@rollup/pluginutils': 5.1.4(rollup@4.30.1) - optionalDependencies: - rollup: 4.30.1 - - '@rollup/plugin-node-resolve@16.0.0(rollup@4.30.1)': - dependencies: - '@rollup/pluginutils': 5.1.4(rollup@4.30.1) - '@types/resolve': 1.20.2 - deepmerge: 4.3.1 - is-module: 1.0.0 - resolve: 1.22.8 - optionalDependencies: - rollup: 4.30.1 - - '@rollup/plugin-replace@6.0.2(rollup@4.30.1)': - dependencies: - '@rollup/pluginutils': 5.1.4(rollup@4.30.1) - magic-string: 0.30.17 - optionalDependencies: - rollup: 4.30.1 - - '@rollup/pluginutils@5.1.4(rollup@4.30.1)': - dependencies: - '@types/estree': 1.0.6 - estree-walker: 2.0.2 - picomatch: 4.0.2 - optionalDependencies: - rollup: 4.30.1 - '@rollup/rollup-android-arm-eabi@4.30.1': optional: true @@ -7907,8 +7835,6 @@ snapshots: dependencies: csstype: 3.1.3 - '@types/resolve@1.20.2': {} - '@types/unist@2.0.11': {} '@types/unist@3.0.3': {} @@ -8169,6 +8095,8 @@ snapshots: ansi-styles@6.2.1: {} + any-promise@1.3.0: {} + are-docs-informative@0.0.2: {} argparse@1.0.10: @@ -8330,6 +8258,11 @@ snapshots: transitivePeerDependencies: - magicast + bundle-require@5.1.0(esbuild@0.24.2): + dependencies: + esbuild: 0.24.2 + load-tsconfig: 0.2.5 + busboy@1.6.0: dependencies: streamsearch: 1.1.0 @@ -8465,9 +8398,9 @@ snapshots: commander@2.20.3: optional: true - comment-parser@1.4.1: {} + commander@4.1.1: {} - commondir@1.0.1: {} + comment-parser@1.4.1: {} compute-scroll-into-view@3.1.0: {} @@ -8531,8 +8464,6 @@ snapshots: deep-is@0.1.4: {} - deepmerge@4.3.1: {} - define-data-property@1.1.4: dependencies: es-define-property: 1.0.1 @@ -9710,8 +9641,6 @@ snapshots: is-map@2.0.3: {} - is-module@1.0.0: {} - is-number-object@1.1.1: dependencies: call-bound: 1.0.3 @@ -9721,10 +9650,6 @@ snapshots: is-plain-obj@4.1.0: {} - is-reference@1.2.1: - dependencies: - '@types/estree': 1.0.6 - is-regex@1.2.1: dependencies: call-bound: 1.0.3 @@ -9799,6 +9724,8 @@ snapshots: jiti@2.4.2: {} + joycon@3.1.1: {} + js-tokens@4.0.0: {} js-yaml@3.14.1: @@ -9900,8 +9827,12 @@ snapshots: lightningcss-win32-arm64-msvc: 1.29.1 lightningcss-win32-x64-msvc: 1.29.1 + lilconfig@3.1.3: {} + lines-and-columns@1.2.4: {} + load-tsconfig@0.2.5: {} + local-pkg@1.0.0: dependencies: mlly: 1.7.4 @@ -9921,6 +9852,8 @@ snapshots: lodash.merge@4.6.2: {} + lodash.sortby@4.7.0: {} + lodash@4.17.21: {} longest-streak@3.1.0: {} @@ -10466,6 +10399,12 @@ snapshots: ms@2.1.3: {} + mz@2.7.0: + dependencies: + any-promise: 1.3.0 + object-assign: 4.1.1 + thenify-all: 1.6.0 + nanoid@3.3.7: {} nanoid@3.3.8: {} @@ -10546,6 +10485,8 @@ snapshots: pkg-types: 1.2.1 ufo: 1.5.4 + object-assign@4.1.1: {} + object-inspect@1.13.3: {} object-keys@1.1.1: {} @@ -10708,6 +10649,8 @@ snapshots: picomatch@4.0.2: {} + pirates@4.0.6: {} + pkg-types@1.2.1: dependencies: confbox: 0.1.8 @@ -10720,26 +10663,19 @@ snapshots: mlly: 1.7.4 pathe: 2.0.1 - pkgroll@2.6.1(typescript@5.6.3): - dependencies: - '@rollup/plugin-alias': 5.1.1(rollup@4.30.1) - '@rollup/plugin-commonjs': 28.0.2(rollup@4.30.1) - '@rollup/plugin-dynamic-import-vars': 2.1.5(rollup@4.30.1) - '@rollup/plugin-inject': 5.0.5(rollup@4.30.1) - '@rollup/plugin-json': 6.1.0(rollup@4.30.1) - '@rollup/plugin-node-resolve': 16.0.0(rollup@4.30.1) - '@rollup/plugin-replace': 6.0.2(rollup@4.30.1) - '@rollup/pluginutils': 5.1.4(rollup@4.30.1) - esbuild: 0.24.2 - magic-string: 0.30.17 - rollup: 4.30.1 - optionalDependencies: - typescript: 5.6.3 - pluralize@8.0.0: {} possible-typed-array-names@1.0.0: {} + postcss-load-config@6.0.1(jiti@2.4.2)(postcss@8.5.1)(tsx@4.19.2)(yaml@2.6.1): + dependencies: + lilconfig: 3.1.3 + optionalDependencies: + jiti: 2.4.2 + postcss: 8.5.1 + tsx: 4.19.2 + yaml: 2.6.1 + postcss-selector-parser@6.1.2: dependencies: cssesc: 3.0.0 @@ -11005,6 +10941,8 @@ snapshots: resolve-from@4.0.0: {} + resolve-from@5.0.0: {} + resolve-pkg-maps@1.0.0: {} resolve@1.22.8: @@ -11308,6 +11246,10 @@ snapshots: source-map@0.7.4: {} + source-map@0.8.0-beta.0: + dependencies: + whatwg-url: 7.1.0 + space-separated-tokens@2.0.2: {} spdx-correct@3.2.0: @@ -11408,6 +11350,16 @@ snapshots: optionalDependencies: '@babel/core': 7.26.0 + sucrase@3.35.0: + dependencies: + '@jridgewell/gen-mapping': 0.3.5 + commander: 4.1.1 + glob: 10.4.5 + lines-and-columns: 1.2.4 + mz: 2.7.0 + pirates: 4.0.6 + ts-interface-checker: 0.1.13 + supports-color@7.2.0: dependencies: has-flag: 4.0.0 @@ -11465,6 +11417,14 @@ snapshots: glob: 10.4.5 minimatch: 9.0.5 + thenify-all@1.6.0: + dependencies: + thenify: 3.3.1 + + thenify@3.3.1: + dependencies: + any-promise: 1.3.0 + tinybench@2.9.0: {} tinyexec@0.3.2: {} @@ -11490,6 +11450,12 @@ snapshots: tr46@0.0.3: {} + tr46@1.0.1: + dependencies: + punycode: 2.3.1 + + tree-kill@1.2.2: {} + trim-lines@3.0.1: {} trough@2.2.0: {} @@ -11498,6 +11464,8 @@ snapshots: dependencies: typescript: 5.6.3 + ts-interface-checker@0.1.13: {} + ts-morph@25.0.0: dependencies: '@ts-morph/common': 0.26.0 @@ -11505,6 +11473,33 @@ snapshots: tslib@2.8.1: {} + tsup@8.3.6(jiti@2.4.2)(postcss@8.5.1)(tsx@4.19.2)(typescript@5.6.3)(yaml@2.6.1): + dependencies: + bundle-require: 5.1.0(esbuild@0.24.2) + cac: 6.7.14 + chokidar: 4.0.1 + consola: 3.2.3 + debug: 4.4.0 + esbuild: 0.24.2 + joycon: 3.1.1 + picocolors: 1.1.1 + postcss-load-config: 6.0.1(jiti@2.4.2)(postcss@8.5.1)(tsx@4.19.2)(yaml@2.6.1) + resolve-from: 5.0.0 + rollup: 4.30.1 + source-map: 0.8.0-beta.0 + sucrase: 3.35.0 + tinyexec: 0.3.2 + tinyglobby: 0.2.10 + tree-kill: 1.2.2 + optionalDependencies: + postcss: 8.5.1 + typescript: 5.6.3 + transitivePeerDependencies: + - jiti + - supports-color + - tsx + - yaml + tsx@4.19.2: dependencies: esbuild: 0.23.1 @@ -11776,11 +11771,19 @@ snapshots: webidl-conversions@3.0.1: {} + webidl-conversions@4.0.2: {} + whatwg-url@5.0.0: dependencies: tr46: 0.0.3 webidl-conversions: 3.0.1 + whatwg-url@7.1.0: + dependencies: + lodash.sortby: 4.7.0 + tr46: 1.0.1 + webidl-conversions: 4.0.2 + which-boxed-primitive@1.1.1: dependencies: is-bigint: 1.1.0 diff --git a/tsconfig.node.json b/tsconfig.node.json index 49bca79..6ddf7c2 100644 --- a/tsconfig.node.json +++ b/tsconfig.node.json @@ -2,5 +2,5 @@ "extends": [ "@importantimport/tsconfig/node.json" ], - "include": ["*.config.ts"] + "include": ["**/*.config.ts"] } diff --git a/tsup.config.ts b/tsup.config.ts new file mode 100644 index 0000000..500ec84 --- /dev/null +++ b/tsup.config.ts @@ -0,0 +1,13 @@ +import { findWorkspaceDir } from '@pnpm/find-workspace-dir' +import { resolve } from 'node:path' +import { cwd } from 'node:process' +import { defineConfig } from 'tsup' + +const workspaceDir = await findWorkspaceDir(cwd()) + +export default defineConfig({ + dts: true, + entry: ['src/index.ts'], + format: 'esm', + tsconfig: resolve(workspaceDir!, 'tsconfig.lib.json'), +})