From fae143dc656e3de35d967f7cd8f4a4ff58d92314 Mon Sep 17 00:00:00 2001 From: UltimeLam <35449771+UltimeLam@users.noreply.github.com> Date: Wed, 11 Nov 2026 22:15:08 +0800 Subject: [PATCH 1/2] =?UTF-8?q?perf(build):=20=E9=BB=98=E8=AE=A4=E5=8E=8B?= =?UTF-8?q?=E7=BC=A9=E5=8F=91=E5=B8=83=E4=BA=A7=E7=89=A9=EF=BC=8C=E6=B3=A8?= =?UTF-8?q?=E9=87=8A=E7=95=99=E5=9C=A8=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit dist/*.js 开启 minify,去掉产物中的格式与注释;d.ts 保持可读, sourcemap 仍不包发布。README 同步产物说明。 --- README.md | 1 + vite.config.ts | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9d33643..198e3e1 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,7 @@ pnpm add @ultime/studio ``` - 运行环境 Node >= 22.18,或任何支持 ESM 的打包器(Vite / esbuild 等);包发的是编译后的 ESM(`dist/`),类型来自 `dist/*.d.ts`。 +- `dist/*.js` 默认压缩;类型与声明保持可读,注释与说明留在源码与文档。 - 本包**不 import** 任何领域包;领域定义放在各包的 `/studio` 子入口,本包只认通用协议。 ## 入口 diff --git a/vite.config.ts b/vite.config.ts index 5627775..8f3ff96 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -31,7 +31,8 @@ export default defineConfig({ platform: 'node', target: 'node22', dts: true, - minify: false, + // 发布产物默认压缩:注释与说明留在源码与文档,不随 dist 发布。 + minify: true, sourcemap: false, clean: true, publint: true, From fda323b05c52ce0450ed0877d7e11a9b22f9a788 Mon Sep 17 00:00:00 2001 From: UltimeLam <35449771+UltimeLam@users.noreply.github.com> Date: Wed, 11 Nov 2026 22:24:12 +0800 Subject: [PATCH 2/2] =?UTF-8?q?chore(studio):=20=E5=8F=91=E5=B8=83=200.2.2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 5 +++++ README.md | 1 + package.json | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 450c50c..d74d2d5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.2.2 - 2026-11-11 + +- 发布产物默认压缩:`dist/*.js` 开启 `minify`,去掉格式与注释;`dist/*.d.ts` 保持可读,`sourcemap` 仍不随包发布。 +- `README` 同步产物说明;协议与导出不变。 + ## 0.2.1 - 2026-11-11 - 构建改用 `vp pack`,产物同时生成 `dist/index.js` 与 `dist/index.d.ts`。 diff --git a/README.md b/README.md index 198e3e1..50acf2d 100644 --- a/README.md +++ b/README.md @@ -132,6 +132,7 @@ pnpm test ## 版本与兼容 - 当前 `0.2.x`;0.x 阶段 `ConfiguratorDefinition` 仍可能调整。 +- 0.2.2 发布产物默认压缩;协议与导出不变。 - 破坏性变更写进 [CHANGELOG](./CHANGELOG.md),并在本节目说明迁移方式;协议变更先发 studio,再发依赖包。 - 零第三方运行时依赖。 diff --git a/package.json b/package.json index fc16fa1..79cca97 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@ultime/studio", - "version": "0.2.1", + "version": "0.2.2", "description": "Ultime · studio:配置器无头运行时(定义 / 状态 / 规范化 / 诊断 / 预览模型 / 导出清单),纯 TS、零依赖、不碰 DOM 与文件系统", "keywords": [ "configuration",