@pawover/kit 0.9.5 → 0.9.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.en.md CHANGED
@@ -119,5 +119,5 @@ tsdown (build:source) → metadata extraction (build:metadata) → turbo build
119
119
  ```
120
120
 
121
121
  - **tsdown** produces the bundles and type declarations
122
- - **metadata.ts** extracts the runtime exports of utils / hooks into `dist/metadata.json`
123
- - Every subpath export ships a `"development": "./src/index.ts"` alias so dev toolchains can consume the source directly
122
+ - **sync-entry.ts** (root postbuild) reads the runtime exports of utils / hooks from dist and writes `entry/metadata.json` and `entry/hooks-metadata.json`
123
+ - In-repo tests (`test:types` / vitest) resolve the source directly via tsconfig `paths` and `resolve.alias` no build needed before testing
package/README.md CHANGED
@@ -19,7 +19,7 @@ pawover-kit 是一个 pnpm 单体仓库(monorepo),由 5 个独立可发布
19
19
  - **ESLint 规则集** `@pawover/kit-eslint-rules`:9 大规则组(javascript / typescript / react / reactHooks / vue / stylistic / antfu / imports / importsSort)+ `GLOB_EXCLUDE` + `createRules`
20
20
  - **Zod v4 Schema** `@pawover/kit-zod`:id、string、number、boolean、bigint 等常用校验器
21
21
  - ESM / CJS 双格式产物,附带完整类型声明
22
- - `development` 导出条件,开发环境可直接使用源码,方便调试
22
+ - `exports` 仅指向 `dist` 产物,任意工具链(node / vite / vitest / webpack 等)均可正常解析
23
23
 
24
24
  ## 包结构
25
25
 
@@ -116,7 +116,7 @@ pnpm install
116
116
  由 Changesets v3 + GitHub Actions 驱动的**双通道发布模型**(完整细节见 [.changeset/README.md](./.changeset/README.md)):
117
117
 
118
118
  - **feature = alpha 预发布通道**:push feature 全自动——CI 守卫(`verify-release-plan.mjs`)→ select-mode → version PR → version job 等 CI 绿后合并 → dispatch 触发 publish,发布 `alpha` dist-tag
119
- - **main = 正式版通道**:只通过**发布合并**收代码——`pnpm release:merge`(同步校验 → 剥离 prerelease → 防撞车校验 → 建 release-main PR)→ **人工合并 PR**(正式版发布的人工确认节点)→ 发布 `latest`
119
+ - **main = 正式版通道**:只通过**发布合并**收代码——`pnpm release:merge`(同步校验 → 剥离 prerelease → 防撞车校验 → 建 release-main PR)→ **人工合并 PR**(正式版发布的人工确认节点)→ 发布 `latest` → CI 自动把稳定版版本号回推 feature(基线同步,下一轮 alpha 从新稳定版之上递增)
120
120
  - **核心设计**:alpha → 正式版之间必须经过人工确认节点,任何自动化都不会越过它
121
121
 
122
122
  常用命令:
@@ -126,7 +126,7 @@ pnpm install
126
126
  | 写变更说明 | `pnpm changeset` |
127
127
  | 发布 alpha(自动) | `git push origin feature` |
128
128
  | 发起正式版发布(人工闸门) | `pnpm release:merge` → 人工合并 PR |
129
- | 基线同步 | feature 上 `git merge origin/main`(取 main 侧版本) |
129
+ | 基线同步 | 自动(main 发布后 CI 回推);手动兜底:feature 上 `git merge origin/main`(取 main 侧版本) |
130
130
  | 应急手动发布 | `pnpm pre:enter-alpha && pnpm build && pnpm changeset publish` |
131
131
 
132
132
  > Trusted Publishing / OIDC:全程无需 npm token;分支保护、守卫明细、FAQ 见 `.changeset/README.md`。
@@ -144,5 +144,5 @@ tsdown (build:source) → metadata 提取 (build:metadata) → turbo build
144
144
  ```
145
145
 
146
146
  - **tsdown** 负责打包与类型声明生成
147
- - **metadata.ts** 提取 utils / hooks 的运行时导出名,写入 `dist/metadata.json`
148
- - 所有子路径导出均带 `"development": "./src/index.ts"` 别名,开发工具链可直接使用源码
147
+ - **sync-entry.ts**(根 postbuild)读取 utils / hooks dist 导出名,生成 `entry/metadata.json` 与 `entry/hooks-metadata.json`
148
+ - 仓库内测试(`test:types` / vitest)经 tsconfig `paths` 与 `resolve.alias` 直查源码,改源码无需先构建
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "url": "https://github.com/pawover"
7
7
  },
8
8
  "description": "一个基于 TypeScript 的开发工具包",
9
- "version": "0.9.5",
9
+ "version": "0.9.6",
10
10
  "type": "module",
11
11
  "engines": {
12
12
  "node": ">=22.20.0"
@@ -158,11 +158,11 @@
158
158
  "./metadata.json": "./entry/metadata.json"
159
159
  },
160
160
  "dependencies": {
161
- "@pawover/kit-eslint-rules": "0.0.3",
162
- "@pawover/kit-types": "0.0.3",
163
- "@pawover/kit-utils": "0.1.5",
164
- "@pawover/kit-zod": "0.0.3",
165
- "@pawover/kit-hooks": "0.0.6"
161
+ "@pawover/kit-eslint-rules": "0.0.4",
162
+ "@pawover/kit-hooks": "0.0.7",
163
+ "@pawover/kit-types": "0.0.4",
164
+ "@pawover/kit-utils": "0.1.6",
165
+ "@pawover/kit-zod": "0.0.4"
166
166
  },
167
167
  "devDependencies": {
168
168
  "@arethetypeswrong/cli": "^0.18.5",