@pawover/kit 1.0.0 → 1.1.0-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/LICENSE +1 -1
- package/README.en.md +31 -35
- package/README.md +32 -36
- package/entry/hooks-metadata.json +2 -13
- package/package.json +41 -45
package/LICENSE
CHANGED
package/README.en.md
CHANGED
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
<img src="site/public/logo.svg" width="64" alt="pawover-kit logo">
|
|
3
3
|
<h1>pawover-kit</h1>
|
|
4
4
|
<p><a href="README.md">简体中文</a> | <b>English</b></p>
|
|
5
|
-
</div>
|
|
6
5
|
|
|
7
|
-
[](https://www.npmjs.com/package/@pawover/kit)
|
|
8
|
-
[](https://nodejs.org)
|
|
9
|
-
[](LICENSE)
|
|
10
|
-
[](https://pawover.github.io/pawover-kit/)
|
|
6
|
+
[](https://www.npmjs.com/package/@pawover/kit)
|
|
7
|
+
[](https://nodejs.org)
|
|
8
|
+
[](LICENSE)
|
|
9
|
+
[](https://pawover.github.io/pawover-kit/)
|
|
10
|
+
</div>
|
|
11
11
|
|
|
12
12
|
> An open-source TypeScript toolkit: type utilities, static utility classes, React / Alova hooks, ESLint rulesets and Zod schemas, ready to use with complete type definitions.
|
|
13
13
|
|
|
@@ -17,47 +17,45 @@ pawover-kit is a pnpm monorepo made of 5 independently publishable packages. The
|
|
|
17
17
|
|
|
18
18
|
## Features
|
|
19
19
|
|
|
20
|
-
- **Type-only utilities** `@pawover/kit-types`: no runtime code, providing `AnyObject`, `TreeLike`, the `AnyFunction` family, `AdvancedRecord`, `ApiNameCheck` and more
|
|
21
|
-
- **Static utility classes** `@pawover/kit-utils`: 15+ utility classes covering arrays, strings, objects, trees, currency, dates, math and more
|
|
22
|
-
- **React / Alova hooks** `@pawover/kit-hooks`: `useMount`, `useUnmount`, `useLatest`, `useResponsive`, `useTitle` and Alova request hooks
|
|
23
|
-
- **ESLint rulesets** `@pawover/kit-eslint-rules`: 9 rule groups (javascript / typescript / react / reactHooks / vue / stylistic / antfu / imports / importsSort) plus `GLOB_EXCLUDE` and `createRules`
|
|
24
|
-
- **Zod v4 schemas** `@pawover/kit-zod`: common validators for id, string, number, boolean, bigint and more
|
|
25
20
|
- Dual ESM / CJS builds with full type declarations
|
|
26
21
|
- `exports` only points to `dist` outputs, resolvable by any toolchain (node / vite / vitest / webpack, etc.)
|
|
27
22
|
|
|
28
23
|
## Packages
|
|
29
24
|
|
|
30
|
-
| Package | Description |
|
|
31
|
-
|
|
|
32
|
-
| `@pawover/kit
|
|
33
|
-
| `@pawover/kit-
|
|
34
|
-
| `@pawover/kit-
|
|
35
|
-
| `@pawover/kit-
|
|
36
|
-
| `@pawover/kit-
|
|
25
|
+
| Package | Description | Latest version | Downloads |
|
|
26
|
+
| :-- | :-- | :-- | :-- |
|
|
27
|
+
| `@pawover/kit` | Umbrella root package re-exporting every subpackage | [](https://www.npmjs.com/package/@pawover/kit) | [](https://www.npmjs.com/package/@pawover/kit) |
|
|
28
|
+
| `@pawover/kit-types` | Type-only utilities (no runtime code) | [](https://www.npmjs.com/package/@pawover/kit-types) | [](https://www.npmjs.com/package/@pawover/kit-types) |
|
|
29
|
+
| `@pawover/kit-utils` | 15+ static utility classes | [](https://www.npmjs.com/package/@pawover/kit-utils) | [](https://www.npmjs.com/package/@pawover/kit-utils) |
|
|
30
|
+
| `@pawover/kit-hooks` | React + Alova hooks | [](https://www.npmjs.com/package/@pawover/kit-hooks) | [](https://www.npmjs.com/package/@pawover/kit-hooks) |
|
|
31
|
+
| `@pawover/kit-eslint-rules` | ESLint rulesets (flat config) | [](https://www.npmjs.com/package/@pawover/kit-eslint-rules) | [](https://www.npmjs.com/package/@pawover/kit-eslint-rules) |
|
|
32
|
+
| `@pawover/kit-zod` | Zod v4 validators | [](https://www.npmjs.com/package/@pawover/kit-zod) | [](https://www.npmjs.com/package/@pawover/kit-zod) |
|
|
37
33
|
|
|
38
|
-
>
|
|
39
|
-
|
|
34
|
+
<blockquote style="background: rgba(9, 105, 218, 0.05); border-left: 4px solid #0969da; border-radius: 6px; padding: 12px 16px;">
|
|
35
|
+
<b>📝 Note</b>: The root export of <code>@pawover/kit-hooks</code> is empty. Always import from the <code>@pawover/kit/hooks/react</code> or <code>@pawover/kit/hooks/alova</code> subpaths.
|
|
36
|
+
</blockquote>
|
|
40
37
|
|
|
41
38
|
## Installation
|
|
42
39
|
|
|
43
40
|
Install the umbrella package:
|
|
44
41
|
|
|
45
42
|
```bash
|
|
46
|
-
|
|
43
|
+
pnpm add @pawover/kit
|
|
47
44
|
```
|
|
48
45
|
|
|
49
46
|
Or install individual subpackages:
|
|
50
47
|
|
|
51
48
|
```bash
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
49
|
+
pnpm add @pawover/kit-types
|
|
50
|
+
pnpm add @pawover/kit-utils
|
|
51
|
+
pnpm add @pawover/kit-hooks
|
|
52
|
+
pnpm add @pawover/kit-eslint-rules
|
|
53
|
+
pnpm add @pawover/kit-zod
|
|
57
54
|
```
|
|
58
55
|
|
|
59
|
-
>
|
|
60
|
-
>
|
|
56
|
+
<blockquote style="background: rgba(191, 135, 16, 0.05); border-left: 4px solid #bf870f; border-radius: 6px; padding: 12px 16px;">
|
|
57
|
+
<b>⚠️ Warning</b>: <code>alova</code>, <code>mathjs</code>, <code>react</code>, <code>vite</code> and <code>zod</code> are optional peer dependencies: install them yourself when using the related features (for example <code>alova</code> and <code>react</code> are required for <code>@pawover/kit/hooks/alova</code>).
|
|
58
|
+
</blockquote>
|
|
61
59
|
|
|
62
60
|
## Quick start
|
|
63
61
|
|
|
@@ -66,7 +64,7 @@ import { TypeUtil } from "@pawover/kit/utils";
|
|
|
66
64
|
import { useMount } from "@pawover/kit/hooks/react";
|
|
67
65
|
import { useAlovaRequest } from "@pawover/kit/hooks/alova";
|
|
68
66
|
import type { AnyObject } from "@pawover/kit/types";
|
|
69
|
-
import
|
|
67
|
+
import pawover from "@pawover/kit/eslint-rules";
|
|
70
68
|
import { id } from "@pawover/kit/zod";
|
|
71
69
|
|
|
72
70
|
// Type utilities
|
|
@@ -80,11 +78,8 @@ useMount(() => {
|
|
|
80
78
|
console.log("mounted");
|
|
81
79
|
});
|
|
82
80
|
|
|
83
|
-
// ESLint
|
|
84
|
-
export default
|
|
85
|
-
{ ignores: eslintRules.GLOB_EXCLUDE },
|
|
86
|
-
{ files: ["**/*.ts"], rules: { ...eslintRules.javascript, ...eslintRules.typescript } },
|
|
87
|
-
];
|
|
81
|
+
// ESLint flat config preset (self-contained)
|
|
82
|
+
export default pawover({ typescript: true });
|
|
88
83
|
|
|
89
84
|
// Zod schemas
|
|
90
85
|
id.parse("abc"); // "abc"
|
|
@@ -119,7 +114,7 @@ Common commands:
|
|
|
119
114
|
|
|
120
115
|
A **dual-channel release model** driven by Changesets v3 + GitHub Actions (full details in [.changeset/README.md](./.changeset/README.md)):
|
|
121
116
|
|
|
122
|
-
- **feature = alpha pre-release channel**: pushing to `feature` is fully automatic — CI guard (`
|
|
117
|
+
- **feature = alpha pre-release channel**: pushing to `feature` is fully automatic — CI guard (`verifyReleasePlan.ts`) → select-mode → version PR → version job merges once CI is green → dispatch triggers publish, releasing under the `alpha` dist-tag
|
|
123
118
|
- **main = stable channel**: code only lands via a **release merge** — `pnpm release:merge` (sync checks → strip prerelease → collision guard → create release-main PR) → **manual merge of the PR** (the human gate for stable releases) → publish `latest` → CI pushes the stable version back to `feature` (baseline sync, next alpha bumps on top of the new stable)
|
|
124
119
|
- **Core design**: there is always a human gate between alpha and stable — no automation ever crosses it
|
|
125
120
|
|
|
@@ -130,6 +125,7 @@ Common commands:
|
|
|
130
125
|
| Write a changeset | `pnpm changeset` |
|
|
131
126
|
| Publish alpha (automatic) | `git push origin feature` |
|
|
132
127
|
| Start a stable release (human gate) | `pnpm release:merge` → manually merge the PR |
|
|
128
|
+
| Sync non-release content to main | `pnpm sync:main` → manually merge the PR (version stays on main side, no publish) |
|
|
133
129
|
| Baseline sync | Automatic (CI pushes back after a main release); manual fallback: `git merge origin/main` on `feature` (take the main-side version) |
|
|
134
130
|
| Emergency manual release | `pnpm pre:enter-alpha && pnpm build && pnpm changeset publish` |
|
|
135
131
|
|
|
@@ -148,5 +144,5 @@ tsdown (build:source) → metadata extraction (build:metadata) → turbo build
|
|
|
148
144
|
```
|
|
149
145
|
|
|
150
146
|
- **tsdown** produces the bundles and type declarations
|
|
151
|
-
- **
|
|
147
|
+
- **syncEntry.ts** (root postbuild) reads the runtime exports of utils / hooks from dist and writes `entry/metadata.json` and `entry/hooks-metadata.json`
|
|
152
148
|
- 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
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
<img src="site/public/logo.svg" width="64" alt="pawover-kit logo">
|
|
3
3
|
<h1>pawover-kit</h1>
|
|
4
4
|
<p><b>简体中文</b> | <a href="README.en.md">English</a></p>
|
|
5
|
-
</div>
|
|
6
5
|
|
|
7
|
-
[](https://www.npmjs.com/package/@pawover/kit)
|
|
8
|
-
[](https://nodejs.org)
|
|
9
|
-
[](LICENSE)
|
|
10
|
-
[](https://pawover.github.io/pawover-kit/)
|
|
6
|
+
[](https://www.npmjs.com/package/@pawover/kit)
|
|
7
|
+
[](https://nodejs.org)
|
|
8
|
+
[](LICENSE)
|
|
9
|
+
[](https://pawover.github.io/pawover-kit/)
|
|
10
|
+
</div>
|
|
11
11
|
|
|
12
12
|
> 一个基于 TypeScript 的开源工具包合集:类型工具、静态工具类、React / Alova Hooks、ESLint 规则集与 Zod Schema,开箱即用、类型完备。
|
|
13
13
|
|
|
@@ -17,47 +17,45 @@ pawover-kit 是一个 pnpm 单体仓库(monorepo),由 5 个独立可发布
|
|
|
17
17
|
|
|
18
18
|
## 特性
|
|
19
19
|
|
|
20
|
-
- **纯类型工具** `@pawover/kit-types`:无运行时代码,提供 `AnyObject`、`TreeLike`、`AnyFunction` 族、`AdvancedRecord`、`ApiNameCheck` 等常用类型
|
|
21
|
-
- **静态工具类** `@pawover/kit-utils`:数组、字符串、对象、树、货币、日期、数学等 15+ 个工具类
|
|
22
|
-
- **React / Alova Hooks** `@pawover/kit-hooks`:`useMount`、`useUnmount`、`useLatest`、`useResponsive`、`useTitle` 与 Alova 请求系列 Hooks
|
|
23
|
-
- **ESLint 规则集** `@pawover/kit-eslint-rules`:9 大规则组(javascript / typescript / react / reactHooks / vue / stylistic / antfu / imports / importsSort)+ `GLOB_EXCLUDE` + `createRules`
|
|
24
|
-
- **Zod v4 Schema** `@pawover/kit-zod`:id、string、number、boolean、bigint 等常用校验器
|
|
25
20
|
- ESM / CJS 双格式产物,附带完整类型声明
|
|
26
21
|
- `exports` 仅指向 `dist` 产物,任意工具链(node / vite / vitest / webpack 等)均可正常解析
|
|
27
22
|
|
|
28
|
-
##
|
|
23
|
+
## 子包
|
|
29
24
|
|
|
30
|
-
| 包 | 说明 |
|
|
31
|
-
|
|
|
32
|
-
| `@pawover/kit
|
|
33
|
-
| `@pawover/kit-
|
|
34
|
-
| `@pawover/kit-
|
|
35
|
-
| `@pawover/kit-
|
|
36
|
-
| `@pawover/kit-
|
|
25
|
+
| 包 | 说明 | 最新版本 | 下载量 |
|
|
26
|
+
| :-- | :-- | :-- | :-- |
|
|
27
|
+
| `@pawover/kit` | 聚合根包,重新导出所有子包 | [](https://www.npmjs.com/package/@pawover/kit) | [](https://www.npmjs.com/package/@pawover/kit) |
|
|
28
|
+
| `@pawover/kit-types` | 纯类型工具包(无运行时代码) | [](https://www.npmjs.com/package/@pawover/kit-types) | [](https://www.npmjs.com/package/@pawover/kit-types) |
|
|
29
|
+
| `@pawover/kit-utils` | 15+ 个静态工具类 | [](https://www.npmjs.com/package/@pawover/kit-utils) | [](https://www.npmjs.com/package/@pawover/kit-utils) |
|
|
30
|
+
| `@pawover/kit-hooks` | React + Alova Hooks | [](https://www.npmjs.com/package/@pawover/kit-hooks) | [](https://www.npmjs.com/package/@pawover/kit-hooks) |
|
|
31
|
+
| `@pawover/kit-eslint-rules` | ESLint 规则集(flat config) | [](https://www.npmjs.com/package/@pawover/kit-eslint-rules) | [](https://www.npmjs.com/package/@pawover/kit-eslint-rules) |
|
|
32
|
+
| `@pawover/kit-zod` | Zod v4 校验器 | [](https://www.npmjs.com/package/@pawover/kit-zod) | [](https://www.npmjs.com/package/@pawover/kit-zod) |
|
|
37
33
|
|
|
38
|
-
>
|
|
39
|
-
|
|
34
|
+
<blockquote style="background: rgba(9, 105, 218, 0.05); border-left: 4px solid #0969da; border-radius: 6px; padding: 12px 16px;">
|
|
35
|
+
<b>📝 注意</b>:<code>@pawover/kit-hooks</code> 的根导出为空,请始终从 <code>@pawover/kit/hooks/react</code> 或 <code>@pawover/kit/hooks/alova</code> 子路径导入。
|
|
36
|
+
</blockquote>
|
|
40
37
|
|
|
41
38
|
## 安装
|
|
42
39
|
|
|
43
40
|
使用根包聚合导入:
|
|
44
41
|
|
|
45
42
|
```bash
|
|
46
|
-
|
|
43
|
+
pnpm add @pawover/kit
|
|
47
44
|
```
|
|
48
45
|
|
|
49
46
|
或按需安装单个子包:
|
|
50
47
|
|
|
51
48
|
```bash
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
49
|
+
pnpm add @pawover/kit-types
|
|
50
|
+
pnpm add @pawover/kit-utils
|
|
51
|
+
pnpm add @pawover/kit-hooks
|
|
52
|
+
pnpm add @pawover/kit-eslint-rules
|
|
53
|
+
pnpm add @pawover/kit-zod
|
|
57
54
|
```
|
|
58
55
|
|
|
59
|
-
>
|
|
60
|
-
>
|
|
56
|
+
<blockquote style="background: rgba(191, 135, 16, 0.05); border-left: 4px solid #bf870f; border-radius: 6px; padding: 12px 16px;">
|
|
57
|
+
<b>⚠️ 警告</b>:<code>alova</code>、<code>mathjs</code>、<code>react</code>、<code>vite</code>、<code>zod</code> 为可选 peer 依赖:使用对应功能前需自行安装(如使用 <code>@pawover/kit/hooks/alova</code> 需要 <code>alova</code> 与 <code>react</code>)。
|
|
58
|
+
</blockquote>
|
|
61
59
|
|
|
62
60
|
## 快速开始
|
|
63
61
|
|
|
@@ -66,7 +64,7 @@ import { TypeUtil } from "@pawover/kit/utils";
|
|
|
66
64
|
import { useMount } from "@pawover/kit/hooks/react";
|
|
67
65
|
import { useAlovaRequest } from "@pawover/kit/hooks/alova";
|
|
68
66
|
import type { AnyObject } from "@pawover/kit/types";
|
|
69
|
-
import
|
|
67
|
+
import pawover from "@pawover/kit/eslint-rules";
|
|
70
68
|
import { id } from "@pawover/kit/zod";
|
|
71
69
|
|
|
72
70
|
// 类型工具
|
|
@@ -80,11 +78,8 @@ useMount(() => {
|
|
|
80
78
|
console.log("mounted");
|
|
81
79
|
});
|
|
82
80
|
|
|
83
|
-
// ESLint
|
|
84
|
-
export default
|
|
85
|
-
{ ignores: eslintRules.GLOB_EXCLUDE },
|
|
86
|
-
{ files: ["**/*.ts"], rules: { ...eslintRules.javascript, ...eslintRules.typescript } },
|
|
87
|
-
];
|
|
81
|
+
// ESLint flat config 预设(自包含)
|
|
82
|
+
export default pawover({ typescript: true });
|
|
88
83
|
|
|
89
84
|
// Zod Schema
|
|
90
85
|
id.parse("abc"); // "abc"
|
|
@@ -119,7 +114,7 @@ pnpm install
|
|
|
119
114
|
|
|
120
115
|
由 Changesets v3 + GitHub Actions 驱动的**双通道发布模型**(完整细节见 [.changeset/README.md](./.changeset/README.md)):
|
|
121
116
|
|
|
122
|
-
- **feature = alpha 预发布通道**:push feature 全自动——CI 守卫(`
|
|
117
|
+
- **feature = alpha 预发布通道**:push feature 全自动——CI 守卫(`verifyReleasePlan.ts`)→ select-mode → version PR → version job 等 CI 绿后合并 → dispatch 触发 publish,发布 `alpha` dist-tag
|
|
123
118
|
- **main = 正式版通道**:只通过**发布合并**收代码——`pnpm release:merge`(同步校验 → 剥离 prerelease → 防撞车校验 → 建 release-main PR)→ **人工合并 PR**(正式版发布的人工确认节点)→ 发布 `latest` → CI 自动把稳定版版本号回推 feature(基线同步,下一轮 alpha 从新稳定版之上递增)
|
|
124
119
|
- **核心设计**:alpha → 正式版之间必须经过人工确认节点,任何自动化都不会越过它
|
|
125
120
|
|
|
@@ -130,6 +125,7 @@ pnpm install
|
|
|
130
125
|
| 写变更说明 | `pnpm changeset` |
|
|
131
126
|
| 发布 alpha(自动) | `git push origin feature` |
|
|
132
127
|
| 发起正式版发布(人工闸门) | `pnpm release:merge` → 人工合并 PR |
|
|
128
|
+
| 非发布内容同步到 main | `pnpm sync:main` → 人工合并 PR(版本保持 main 侧,不触发发布) |
|
|
133
129
|
| 基线同步 | 自动(main 发布后 CI 回推);手动兜底:feature 上 `git merge origin/main`(取 main 侧版本) |
|
|
134
130
|
| 应急手动发布 | `pnpm pre:enter-alpha && pnpm build && pnpm changeset publish` |
|
|
135
131
|
|
|
@@ -148,5 +144,5 @@ tsdown (build:source) → metadata 提取 (build:metadata) → turbo build
|
|
|
148
144
|
```
|
|
149
145
|
|
|
150
146
|
- **tsdown** 负责打包与类型声明生成
|
|
151
|
-
- **
|
|
147
|
+
- **syncEntry.ts**(根 postbuild)读取 utils / hooks 的 dist 导出名,生成 `entry/metadata.json` 与 `entry/hooks-metadata.json`
|
|
152
148
|
- 仓库内测试(`test:types` / vitest)经 tsconfig `paths` 与 `resolve.alias` 直查源码,改源码无需先构建
|
|
@@ -1,15 +1,4 @@
|
|
|
1
1
|
{
|
|
2
|
-
"alova": [
|
|
3
|
-
|
|
4
|
-
"useAlovaRequest",
|
|
5
|
-
"useAlovaWatcher"
|
|
6
|
-
],
|
|
7
|
-
"react": [
|
|
8
|
-
"BREAK_POINT_TOKEN",
|
|
9
|
-
"useLatest",
|
|
10
|
-
"useMount",
|
|
11
|
-
"useResponsive",
|
|
12
|
-
"useTitle",
|
|
13
|
-
"useUnmount"
|
|
14
|
-
]
|
|
2
|
+
"alova": ["useAlovaPagination", "useAlovaRequest", "useAlovaWatcher"],
|
|
3
|
+
"react": ["BREAK_POINT_TOKEN", "useLatest", "useMount", "useResponsive", "useTitle", "useUnmount"]
|
|
15
4
|
}
|
package/package.json
CHANGED
|
@@ -6,15 +6,15 @@
|
|
|
6
6
|
"url": "https://github.com/pawover"
|
|
7
7
|
},
|
|
8
8
|
"description": "一个基于 TypeScript 的开发工具包",
|
|
9
|
-
"version": "1.0.
|
|
9
|
+
"version": "1.1.0-alpha.1",
|
|
10
10
|
"type": "module",
|
|
11
11
|
"engines": {
|
|
12
|
-
"node": ">=
|
|
12
|
+
"node": ">=24.21.0"
|
|
13
13
|
},
|
|
14
14
|
"devEngines": {
|
|
15
15
|
"runtime": {
|
|
16
16
|
"name": "node",
|
|
17
|
-
"version": "24.
|
|
17
|
+
"version": "24.21.0"
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
20
|
"keywords": [
|
|
@@ -157,56 +157,53 @@
|
|
|
157
157
|
},
|
|
158
158
|
"./metadata.json": "./entry/metadata.json"
|
|
159
159
|
},
|
|
160
|
+
"publishConfig": {
|
|
161
|
+
"access": "public"
|
|
162
|
+
},
|
|
160
163
|
"dependencies": {
|
|
161
|
-
"@pawover/kit-eslint-rules": "0.0.
|
|
162
|
-
"@pawover/kit-hooks": "0.0.
|
|
163
|
-
"@pawover/kit-
|
|
164
|
-
"@pawover/kit-
|
|
165
|
-
"@pawover/kit-
|
|
164
|
+
"@pawover/kit-eslint-rules": "0.1.0-alpha.1",
|
|
165
|
+
"@pawover/kit-hooks": "0.0.9-alpha.0",
|
|
166
|
+
"@pawover/kit-utils": "1.0.1-alpha.0",
|
|
167
|
+
"@pawover/kit-zod": "0.0.4",
|
|
168
|
+
"@pawover/kit-types": "0.0.4"
|
|
166
169
|
},
|
|
167
170
|
"devDependencies": {
|
|
168
171
|
"@arethetypeswrong/cli": "^0.18.5",
|
|
169
|
-
"@changesets/cli": "^3.0.
|
|
170
|
-
"@commitlint/cli": "^21.2.
|
|
171
|
-
"@commitlint/config-conventional": "^21.2.
|
|
172
|
-
"@eslint-react/eslint-plugin": "^5.18.6",
|
|
172
|
+
"@changesets/cli": "^3.0.3",
|
|
173
|
+
"@commitlint/cli": "^21.2.3",
|
|
174
|
+
"@commitlint/config-conventional": "^21.2.3",
|
|
173
175
|
"@fontsource/ibm-plex-mono": "^5.3.0",
|
|
174
|
-
"@
|
|
175
|
-
"@stylistic/eslint-plugin": "^6.0.0-beta.5",
|
|
176
|
-
"@testing-library/react": "^16.3.2",
|
|
176
|
+
"@testing-library/react": "^16.3.3",
|
|
177
177
|
"@types/fs-extra": "^11.0.4",
|
|
178
|
-
"@types/node": "^26.
|
|
179
|
-
"@types/react": "^19.
|
|
180
|
-
"@vitejs/plugin-react": "^6.
|
|
181
|
-
"@vitest/
|
|
182
|
-
"
|
|
183
|
-
"alova": "^3.5.1",
|
|
178
|
+
"@types/node": "^26.6.5",
|
|
179
|
+
"@types/react": "^19.3.0",
|
|
180
|
+
"@vitejs/plugin-react": "^6.1.2",
|
|
181
|
+
"@vitest/coverage-v8": "^5.0.3",
|
|
182
|
+
"alova": "^3.5.5",
|
|
184
183
|
"commitizen": "^4.3.2",
|
|
185
184
|
"cross-env": "^10.1.0",
|
|
186
185
|
"cz-customizable": "^7.5.4",
|
|
187
|
-
"eslint": "^10.
|
|
188
|
-
"
|
|
189
|
-
"eslint-plugin-import-lite": "^0.6.0",
|
|
190
|
-
"eslint-plugin-react-hooks": "^7.1.1",
|
|
191
|
-
"fs-extra": "^11.4.0",
|
|
186
|
+
"eslint": "^10.12.0",
|
|
187
|
+
"fs-extra": "^11.4.1",
|
|
192
188
|
"husky": "^9.1.7",
|
|
193
|
-
"jsdom": "^30.
|
|
194
|
-
"lint-staged": "^17.
|
|
189
|
+
"jsdom": "^30.1.2",
|
|
190
|
+
"lint-staged": "^17.6.0",
|
|
195
191
|
"mathjs": "^15.2.0",
|
|
196
|
-
"prettier": "^3.9.
|
|
192
|
+
"prettier": "^3.9.10",
|
|
197
193
|
"react-dom": "19.2.6",
|
|
198
194
|
"rimraf": "^6.1.3",
|
|
199
|
-
"
|
|
200
|
-
"
|
|
195
|
+
"rollup-plugin-visualizer": "^7.1.1",
|
|
196
|
+
"tsdown": "^0.23.1",
|
|
197
|
+
"turbo": "^2.11.7",
|
|
201
198
|
"typedoc": "^0.28.20",
|
|
202
|
-
"typedoc-plugin-markdown": "^4.
|
|
199
|
+
"typedoc-plugin-markdown": "^4.13.1",
|
|
203
200
|
"typescript": "^6.0.3",
|
|
204
|
-
"typescript-eslint": "^8.67.0",
|
|
205
201
|
"vitepress": "^1.6.4",
|
|
206
|
-
"vitest": "^
|
|
202
|
+
"vitest": "^5.0.3",
|
|
203
|
+
"@pawover/kit-internal": "0.0.0"
|
|
207
204
|
},
|
|
208
205
|
"peerDependencies": {
|
|
209
|
-
"alova": "^3.5.
|
|
206
|
+
"alova": "^3.5.5",
|
|
210
207
|
"mathjs": "^15.0.0",
|
|
211
208
|
"react": "^19.2.0",
|
|
212
209
|
"vite": "^7 || ^8",
|
|
@@ -229,9 +226,6 @@
|
|
|
229
226
|
"optional": true
|
|
230
227
|
}
|
|
231
228
|
},
|
|
232
|
-
"publishConfig": {
|
|
233
|
-
"access": "public"
|
|
234
|
-
},
|
|
235
229
|
"config": {
|
|
236
230
|
"commitizen": {
|
|
237
231
|
"path": "node_modules/cz-customizable"
|
|
@@ -247,35 +241,37 @@
|
|
|
247
241
|
"test:unit": "vitest run test/unit",
|
|
248
242
|
"test:integration": "vitest run test/integration",
|
|
249
243
|
"test:types": "tsc -p test/tsconfig.json --noEmit",
|
|
250
|
-
"test:smoke": "node test/scripts/smoke.
|
|
244
|
+
"test:smoke": "node test/scripts/smoke.ts",
|
|
251
245
|
"test:ci": "pnpm test:types && pnpm test && pnpm build && pnpm test:smoke && pnpm check:pack",
|
|
252
|
-
"postbuild": "node scripts/
|
|
246
|
+
"postbuild": "node scripts/syncEntry.ts",
|
|
253
247
|
"build": "turbo build",
|
|
248
|
+
"build:analyze": "cross-env VISUALIZER=1 turbo build",
|
|
254
249
|
"build:force": "turbo build --force",
|
|
255
250
|
"build:package": "turbo build:package && pnpm package",
|
|
256
251
|
"build:package:force": "turbo build:package --force && pnpm package",
|
|
257
252
|
"package": "pnpm pack",
|
|
258
253
|
"public": "turbo build && pnpm publish --access public",
|
|
259
254
|
"changeset": "changeset",
|
|
260
|
-
"ci:version": "pnpm changeset version && node scripts/
|
|
255
|
+
"ci:version": "pnpm changeset version && node scripts/bumpRoot.ts && node scripts/verifyRelease.ts && pnpm install",
|
|
261
256
|
"pre:enter-alpha": "pnpm changeset pre enter alpha",
|
|
262
257
|
"pre:exit": "pnpm changeset pre exit",
|
|
263
|
-
"release:merge": "node scripts/
|
|
258
|
+
"release:merge": "node scripts/releaseMerge.ts",
|
|
259
|
+
"sync:main": "node scripts/syncMain.ts",
|
|
264
260
|
"docs:dev": "vitepress dev site",
|
|
265
261
|
"docs:build": "vitepress build site",
|
|
266
262
|
"docs:preview": "vitepress preview site",
|
|
267
|
-
"docs:gen": "node scripts/
|
|
263
|
+
"docs:gen": "node scripts/generateDocs.ts",
|
|
268
264
|
"check": "pnpm check:types & pnpm check:eslint & pnpm check:format",
|
|
269
265
|
"check:types": "tsc --noEmit",
|
|
270
266
|
"check:eslint": "eslint --fix \"**/*.{js,cjs,mjs,ts,cts,mts,jsx,tsx,vue}\" --cache-location=.cache/eslint.cache.json --cache",
|
|
271
267
|
"check:format": "prettier --write \"**/*.{html,json,jsonc}\" --cache-location=.cache/prettier.cache.json --cache",
|
|
272
|
-
"check:pack": "cross-env HUSKY=0 node scripts/
|
|
268
|
+
"check:pack": "cross-env HUSKY=0 node scripts/checkPack.ts",
|
|
273
269
|
"clean": "pnpm clean:cache & pnpm clean:lib & pnpm clean:output",
|
|
274
270
|
"clean:turbo": "rimraf -g **/.turbo",
|
|
275
271
|
"clean:cache": "rimraf -g .cache",
|
|
276
272
|
"clean:lib": "rimraf -g node_modules",
|
|
277
273
|
"clean:output": "rimraf -g **/dist **/*.tgz",
|
|
278
|
-
"lib:up": "pnpm dlx taze -I -r --exclude pnpm",
|
|
274
|
+
"lib:up": "pnpm dlx taze -I -r --exclude pnpm --exclude node --include all --no-github-actions",
|
|
279
275
|
"commit": "git cz"
|
|
280
276
|
}
|
|
281
277
|
}
|