@pawover/kit 0.9.4 → 0.9.5-alpha.1

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
 
@@ -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.4",
9
+ "version": "0.9.5-alpha.1",
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.2",
162
- "@pawover/kit-hooks": "0.0.5",
163
- "@pawover/kit-types": "0.0.2",
164
- "@pawover/kit-utils": "0.1.4",
165
- "@pawover/kit-zod": "0.0.2"
161
+ "@pawover/kit-hooks": "0.0.6-alpha.1",
162
+ "@pawover/kit-types": "0.0.3-alpha.1",
163
+ "@pawover/kit-eslint-rules": "0.0.3-alpha.1",
164
+ "@pawover/kit-zod": "0.0.3-alpha.1",
165
+ "@pawover/kit-utils": "0.1.5-alpha.1"
166
166
  },
167
167
  "devDependencies": {
168
168
  "@arethetypeswrong/cli": "^0.18.5",
@@ -257,8 +257,7 @@
257
257
  "package": "pnpm pack",
258
258
  "public": "turbo build && pnpm publish --access public",
259
259
  "changeset": "changeset",
260
- "ci:version": "pnpm changeset version && node scripts/bump-root.mjs && pnpm install",
261
- "ci:publish": "pnpm build && pnpm changeset publish",
260
+ "ci:version": "pnpm changeset version && node scripts/bump-root.mjs && node scripts/verify-release.mjs && pnpm install",
262
261
  "pre:enter-alpha": "pnpm changeset pre enter alpha",
263
262
  "pre:exit": "pnpm changeset pre exit",
264
263
  "release:merge": "node scripts/release-merge.mjs",