@pawover/kit 1.0.0 → 1.0.1-alpha.0
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 +28 -29
- package/README.md +29 -30
- package/package.json +18 -15
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
|
|
|
@@ -119,7 +117,7 @@ Common commands:
|
|
|
119
117
|
|
|
120
118
|
A **dual-channel release model** driven by Changesets v3 + GitHub Actions (full details in [.changeset/README.md](./.changeset/README.md)):
|
|
121
119
|
|
|
122
|
-
- **feature = alpha pre-release channel**: pushing to `feature` is fully automatic — CI guard (`
|
|
120
|
+
- **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
121
|
- **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
122
|
- **Core design**: there is always a human gate between alpha and stable — no automation ever crosses it
|
|
125
123
|
|
|
@@ -130,6 +128,7 @@ Common commands:
|
|
|
130
128
|
| Write a changeset | `pnpm changeset` |
|
|
131
129
|
| Publish alpha (automatic) | `git push origin feature` |
|
|
132
130
|
| Start a stable release (human gate) | `pnpm release:merge` → manually merge the PR |
|
|
131
|
+
| Sync non-release content to main | `pnpm sync:main` → manually merge the PR (version stays on main side, no publish) |
|
|
133
132
|
| Baseline sync | Automatic (CI pushes back after a main release); manual fallback: `git merge origin/main` on `feature` (take the main-side version) |
|
|
134
133
|
| Emergency manual release | `pnpm pre:enter-alpha && pnpm build && pnpm changeset publish` |
|
|
135
134
|
|
|
@@ -148,5 +147,5 @@ tsdown (build:source) → metadata extraction (build:metadata) → turbo build
|
|
|
148
147
|
```
|
|
149
148
|
|
|
150
149
|
- **tsdown** produces the bundles and type declarations
|
|
151
|
-
- **
|
|
150
|
+
- **syncEntry.ts** (root postbuild) reads the runtime exports of utils / hooks from dist and writes `entry/metadata.json` and `entry/hooks-metadata.json`
|
|
152
151
|
- 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
|
|
|
@@ -119,7 +117,7 @@ pnpm install
|
|
|
119
117
|
|
|
120
118
|
由 Changesets v3 + GitHub Actions 驱动的**双通道发布模型**(完整细节见 [.changeset/README.md](./.changeset/README.md)):
|
|
121
119
|
|
|
122
|
-
- **feature = alpha 预发布通道**:push feature 全自动——CI 守卫(`
|
|
120
|
+
- **feature = alpha 预发布通道**:push feature 全自动——CI 守卫(`verifyReleasePlan.ts`)→ select-mode → version PR → version job 等 CI 绿后合并 → dispatch 触发 publish,发布 `alpha` dist-tag
|
|
123
121
|
- **main = 正式版通道**:只通过**发布合并**收代码——`pnpm release:merge`(同步校验 → 剥离 prerelease → 防撞车校验 → 建 release-main PR)→ **人工合并 PR**(正式版发布的人工确认节点)→ 发布 `latest` → CI 自动把稳定版版本号回推 feature(基线同步,下一轮 alpha 从新稳定版之上递增)
|
|
124
122
|
- **核心设计**:alpha → 正式版之间必须经过人工确认节点,任何自动化都不会越过它
|
|
125
123
|
|
|
@@ -130,6 +128,7 @@ pnpm install
|
|
|
130
128
|
| 写变更说明 | `pnpm changeset` |
|
|
131
129
|
| 发布 alpha(自动) | `git push origin feature` |
|
|
132
130
|
| 发起正式版发布(人工闸门) | `pnpm release:merge` → 人工合并 PR |
|
|
131
|
+
| 非发布内容同步到 main | `pnpm sync:main` → 人工合并 PR(版本保持 main 侧,不触发发布) |
|
|
133
132
|
| 基线同步 | 自动(main 发布后 CI 回推);手动兜底:feature 上 `git merge origin/main`(取 main 侧版本) |
|
|
134
133
|
| 应急手动发布 | `pnpm pre:enter-alpha && pnpm build && pnpm changeset publish` |
|
|
135
134
|
|
|
@@ -148,5 +147,5 @@ tsdown (build:source) → metadata 提取 (build:metadata) → turbo build
|
|
|
148
147
|
```
|
|
149
148
|
|
|
150
149
|
- **tsdown** 负责打包与类型声明生成
|
|
151
|
-
- **
|
|
150
|
+
- **syncEntry.ts**(根 postbuild)读取 utils / hooks 的 dist 导出名,生成 `entry/metadata.json` 与 `entry/hooks-metadata.json`
|
|
152
151
|
- 仓库内测试(`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": "1.0.0",
|
|
9
|
+
"version": "1.0.1-alpha.0",
|
|
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.5",
|
|
162
161
|
"@pawover/kit-hooks": "0.0.8",
|
|
163
|
-
"@pawover/kit-types": "0.0.4",
|
|
164
162
|
"@pawover/kit-utils": "1.0.0",
|
|
165
|
-
"@pawover/kit-zod": "0.0.4"
|
|
163
|
+
"@pawover/kit-zod": "0.0.4",
|
|
164
|
+
"@pawover/kit-eslint-rules": "0.0.6-alpha.0",
|
|
165
|
+
"@pawover/kit-types": "0.0.4"
|
|
166
166
|
},
|
|
167
167
|
"devDependencies": {
|
|
168
168
|
"@arethetypeswrong/cli": "^0.18.5",
|
|
@@ -172,19 +172,19 @@
|
|
|
172
172
|
"@eslint-react/eslint-plugin": "^5.18.6",
|
|
173
173
|
"@fontsource/ibm-plex-mono": "^5.3.0",
|
|
174
174
|
"@playwright/test": "^1.62.1",
|
|
175
|
-
"@stylistic/eslint-plugin": "^6.0.0-beta.
|
|
175
|
+
"@stylistic/eslint-plugin": "^6.0.0-beta.6",
|
|
176
176
|
"@testing-library/react": "^16.3.2",
|
|
177
177
|
"@types/fs-extra": "^11.0.4",
|
|
178
178
|
"@types/node": "^26.2.0",
|
|
179
179
|
"@types/react": "^19.2.18",
|
|
180
|
-
"@vitejs/plugin-react": "^6.0
|
|
180
|
+
"@vitejs/plugin-react": "^6.1.0",
|
|
181
181
|
"@vitest/browser-playwright": "^4.1.11",
|
|
182
182
|
"@vitest/coverage-v8": "^4.1.11",
|
|
183
|
-
"alova": "^3.5.
|
|
183
|
+
"alova": "^3.5.5",
|
|
184
184
|
"commitizen": "^4.3.2",
|
|
185
185
|
"cross-env": "^10.1.0",
|
|
186
186
|
"cz-customizable": "^7.5.4",
|
|
187
|
-
"eslint": "^10.
|
|
187
|
+
"eslint": "^10.9.0",
|
|
188
188
|
"eslint-plugin-antfu": "^3.2.3",
|
|
189
189
|
"eslint-plugin-import-lite": "^0.6.0",
|
|
190
190
|
"eslint-plugin-react-hooks": "^7.1.1",
|
|
@@ -196,6 +196,7 @@
|
|
|
196
196
|
"prettier": "^3.9.6",
|
|
197
197
|
"react-dom": "19.2.6",
|
|
198
198
|
"rimraf": "^6.1.3",
|
|
199
|
+
"rollup-plugin-visualizer": "^7.1.1",
|
|
199
200
|
"tsdown": "^0.22.14",
|
|
200
201
|
"turbo": "^2.10.11",
|
|
201
202
|
"typedoc": "^0.28.20",
|
|
@@ -206,7 +207,7 @@
|
|
|
206
207
|
"vitest": "^4.1.11"
|
|
207
208
|
},
|
|
208
209
|
"peerDependencies": {
|
|
209
|
-
"alova": "^3.5.
|
|
210
|
+
"alova": "^3.5.5",
|
|
210
211
|
"mathjs": "^15.0.0",
|
|
211
212
|
"react": "^19.2.0",
|
|
212
213
|
"vite": "^7 || ^8",
|
|
@@ -247,29 +248,31 @@
|
|
|
247
248
|
"test:unit": "vitest run test/unit",
|
|
248
249
|
"test:integration": "vitest run test/integration",
|
|
249
250
|
"test:types": "tsc -p test/tsconfig.json --noEmit",
|
|
250
|
-
"test:smoke": "node test/scripts/smoke.
|
|
251
|
+
"test:smoke": "node test/scripts/smoke.ts",
|
|
251
252
|
"test:ci": "pnpm test:types && pnpm test && pnpm build && pnpm test:smoke && pnpm check:pack",
|
|
252
|
-
"postbuild": "node scripts/
|
|
253
|
+
"postbuild": "node scripts/syncEntry.ts",
|
|
253
254
|
"build": "turbo build",
|
|
255
|
+
"build:analyze": "cross-env VISUALIZER=1 turbo build",
|
|
254
256
|
"build:force": "turbo build --force",
|
|
255
257
|
"build:package": "turbo build:package && pnpm package",
|
|
256
258
|
"build:package:force": "turbo build:package --force && pnpm package",
|
|
257
259
|
"package": "pnpm pack",
|
|
258
260
|
"public": "turbo build && pnpm publish --access public",
|
|
259
261
|
"changeset": "changeset",
|
|
260
|
-
"ci:version": "pnpm changeset version && node scripts/
|
|
262
|
+
"ci:version": "pnpm changeset version && node scripts/bumpRoot.ts && node scripts/verifyRelease.ts && pnpm install",
|
|
261
263
|
"pre:enter-alpha": "pnpm changeset pre enter alpha",
|
|
262
264
|
"pre:exit": "pnpm changeset pre exit",
|
|
263
|
-
"release:merge": "node scripts/
|
|
265
|
+
"release:merge": "node scripts/releaseMerge.ts",
|
|
266
|
+
"sync:main": "node scripts/syncMain.ts",
|
|
264
267
|
"docs:dev": "vitepress dev site",
|
|
265
268
|
"docs:build": "vitepress build site",
|
|
266
269
|
"docs:preview": "vitepress preview site",
|
|
267
|
-
"docs:gen": "node scripts/
|
|
270
|
+
"docs:gen": "node scripts/generateDocs.ts",
|
|
268
271
|
"check": "pnpm check:types & pnpm check:eslint & pnpm check:format",
|
|
269
272
|
"check:types": "tsc --noEmit",
|
|
270
273
|
"check:eslint": "eslint --fix \"**/*.{js,cjs,mjs,ts,cts,mts,jsx,tsx,vue}\" --cache-location=.cache/eslint.cache.json --cache",
|
|
271
274
|
"check:format": "prettier --write \"**/*.{html,json,jsonc}\" --cache-location=.cache/prettier.cache.json --cache",
|
|
272
|
-
"check:pack": "cross-env HUSKY=0 node scripts/
|
|
275
|
+
"check:pack": "cross-env HUSKY=0 node scripts/checkPack.ts",
|
|
273
276
|
"clean": "pnpm clean:cache & pnpm clean:lib & pnpm clean:output",
|
|
274
277
|
"clean:turbo": "rimraf -g **/.turbo",
|
|
275
278
|
"clean:cache": "rimraf -g .cache",
|