@longzai-intelligence-builder/config 0.2.21 → 0.2.23
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/dist/index.d.ts +9 -2
- package/package.json +8 -10
package/dist/index.d.ts
CHANGED
|
@@ -239,6 +239,7 @@ type CleanOptions = {
|
|
|
239
239
|
* resolveClean 归一化后的 clean 配置
|
|
240
240
|
*
|
|
241
241
|
* 所有 clean 形态(boolean / string[] / CleanOptions)归一化为本结构。
|
|
242
|
+
*
|
|
242
243
|
* - `paths`:构建前直接删除的路径(glob 模式)。默认模式含 outDir;原子模式仅含 extraTargets
|
|
243
244
|
* - `atomic`:是否启用原子替换(构建写 tmpDir,成功后替换 outDir)
|
|
244
245
|
* - `tmpDir`:原子模式的临时目录绝对路径(atomic 为 true 时有值)
|
|
@@ -379,6 +380,7 @@ type CIOption = 'ci-only' | 'local-only';
|
|
|
379
380
|
* 带 enabled 开关的选项类型(对齐 tsdown WithEnabled)
|
|
380
381
|
*
|
|
381
382
|
* 支持以下形态:
|
|
383
|
+
*
|
|
382
384
|
* - `boolean`:true 用默认值,false 关闭
|
|
383
385
|
* - `undefined`:同 true
|
|
384
386
|
* - `CIOption`:按 CI 环境条件判定
|
|
@@ -412,6 +414,7 @@ type NoExternalFn = (id: string, importer: string | undefined) => boolean | null
|
|
|
412
414
|
* 入口配置类型,支持 glob 与取反模式
|
|
413
415
|
*
|
|
414
416
|
* 对齐 tsdown `TsdownInputOption`:
|
|
417
|
+
*
|
|
415
418
|
* - 字符串:单个入口或 glob 模式
|
|
416
419
|
* - 数组:多个字符串/对象,支持 `!` 取反
|
|
417
420
|
* - 对象:键为入口名(可含 glob),值为路径或 glob 数组
|
|
@@ -459,6 +462,7 @@ type DepsOptions = {
|
|
|
459
462
|
* 允许打包的依赖白名单
|
|
460
463
|
*
|
|
461
464
|
* 对齐 tsdown `deps.onlyBundle`:
|
|
465
|
+
*
|
|
462
466
|
* - `undefined`(默认):检测到内联依赖时打提示,建议配置白名单
|
|
463
467
|
* - 数组或单值:仅允许列出的依赖被打包,未列出的内联依赖触发构建错误;未使用的白名单项打提示
|
|
464
468
|
* - `false`:关闭内联依赖检测提示
|
|
@@ -512,9 +516,9 @@ type BuilderConfig = {
|
|
|
512
516
|
*/
|
|
513
517
|
dts?: DtsOptions | boolean;
|
|
514
518
|
/**
|
|
515
|
-
* tsconfig
|
|
519
|
+
* tsconfig 文件路径(`false` 表示显式禁用,resolve 后为 `undefined`)
|
|
516
520
|
*/
|
|
517
|
-
tsconfig?: string;
|
|
521
|
+
tsconfig?: string | false;
|
|
518
522
|
/**
|
|
519
523
|
* 是否压缩产物
|
|
520
524
|
*
|
|
@@ -595,6 +599,7 @@ type BuilderConfig = {
|
|
|
595
599
|
* 控制 Node 内置模块的 `node:` 协议
|
|
596
600
|
*
|
|
597
601
|
* 对齐 tsdown `nodeProtocol`:
|
|
602
|
+
*
|
|
598
603
|
* - `'strip'`:移除 `node:` 前缀(`node:fs` → `fs`)
|
|
599
604
|
* - `true`:添加 `node:` 前缀(`fs` → `node:fs`)
|
|
600
605
|
* - `false`(默认):不转换
|
|
@@ -753,6 +758,7 @@ type BuilderConfig = {
|
|
|
753
758
|
* (`(hooks) => { hooks.hook('build:prepare', fn) }`)。
|
|
754
759
|
*
|
|
755
760
|
* 三个生命周期事件:
|
|
761
|
+
*
|
|
756
762
|
* - `build:prepare`:构建开始前
|
|
757
763
|
* - `build:before`:每次 rolldown 构建前(dual-format 每个 format 一次)
|
|
758
764
|
* - `build:done`:每次构建完成后
|
|
@@ -784,6 +790,7 @@ type BuilderConfig = {
|
|
|
784
790
|
* Workspace 模式
|
|
785
791
|
*
|
|
786
792
|
* 对齐 tsdown `workspace`。启用 monorepo 多包构建:
|
|
793
|
+
*
|
|
787
794
|
* - true:自动检测所有含 package.json 的子包
|
|
788
795
|
* - string / string[]:glob 匹配子包目录
|
|
789
796
|
* - Workspace 对象:精细配置 include/exclude/config
|
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@longzai-intelligence-builder/config",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.23",
|
|
4
|
+
"private": false,
|
|
4
5
|
"description": "Longzai Intelligence Builder 配置类型",
|
|
5
6
|
"keywords": [
|
|
6
|
-
"longzai-intelligence",
|
|
7
7
|
"builder",
|
|
8
8
|
"config",
|
|
9
|
-
"
|
|
10
|
-
"schema"
|
|
9
|
+
"longzai-intelligence",
|
|
10
|
+
"schema",
|
|
11
|
+
"types"
|
|
11
12
|
],
|
|
12
|
-
"private": false,
|
|
13
13
|
"license": "UNLICENSED",
|
|
14
14
|
"files": [
|
|
15
15
|
"dist"
|
|
@@ -27,9 +27,10 @@
|
|
|
27
27
|
"build": "lzi-builder",
|
|
28
28
|
"build:prod": "NODE_ENV=production bun run build",
|
|
29
29
|
"prepublishOnly": "bun run build:prod",
|
|
30
|
-
"typecheck": "bun run typecheck:app && bun run typecheck:node",
|
|
30
|
+
"typecheck": "bun run typecheck:app && bun run typecheck:node && bun run typecheck:test",
|
|
31
31
|
"typecheck:app": "lzi-tsgo typecheck tsconfig/app.json",
|
|
32
32
|
"typecheck:node": "lzi-tsgo typecheck tsconfig/node.json",
|
|
33
|
+
"typecheck:test": "lzi-tsgo typecheck tsconfig/test.json",
|
|
33
34
|
"lint": "oxlint && oxfmt --check",
|
|
34
35
|
"lint:fix": "oxlint --fix && oxfmt",
|
|
35
36
|
"test": "bun test",
|
|
@@ -38,11 +39,8 @@
|
|
|
38
39
|
"clean": "lzi-dev-cli clean"
|
|
39
40
|
},
|
|
40
41
|
"dependencies": {},
|
|
41
|
-
"devDependencies": {
|
|
42
|
-
"@longzai-intelligence-builder/esm": "0.2.21"
|
|
43
|
-
},
|
|
44
42
|
"peerDependencies": {
|
|
45
|
-
"@longzai-intelligence-builder/rolldown-plugin-dts": "0.2.
|
|
43
|
+
"@longzai-intelligence-builder/rolldown-plugin-dts": "0.2.23",
|
|
46
44
|
"hookable": "^6.1.1",
|
|
47
45
|
"rolldown": "^1.0.0"
|
|
48
46
|
}
|