@longzai-intelligence-builder/config 0.2.14 → 0.2.16
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 +11 -0
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -908,6 +908,16 @@ type BuilderConfig = {
|
|
|
908
908
|
* @default true
|
|
909
909
|
*/
|
|
910
910
|
legacyCjs?: boolean;
|
|
911
|
+
/**
|
|
912
|
+
* 是否在构建期检测 `import type` 声明的 binding 被用于值位置(调用/构造/读取等)
|
|
913
|
+
*
|
|
914
|
+
* 该用法是 TypeScript 非法用法;rolldown/oxc 不做类型检查,会静默删除 import binding
|
|
915
|
+
* 却保留值位置引用,产出含裸引用的损坏产物,运行时抛 ReferenceError。开启后构建期
|
|
916
|
+
* 显式报错(apex issue 001 回归增强)。
|
|
917
|
+
*
|
|
918
|
+
* @default true
|
|
919
|
+
*/
|
|
920
|
+
importTypeValue?: boolean;
|
|
911
921
|
};
|
|
912
922
|
/**
|
|
913
923
|
* @deprecated 使用 `unbundle` 代替
|
|
@@ -1204,6 +1214,7 @@ type ResolvedBuilderConfig = Required<Omit<BuilderConfig, 'format' | 'dts' | 'ts
|
|
|
1204
1214
|
*/
|
|
1205
1215
|
checks: ChecksOptions & {
|
|
1206
1216
|
legacyCjs: boolean;
|
|
1217
|
+
importTypeValue: boolean;
|
|
1207
1218
|
};
|
|
1208
1219
|
/**
|
|
1209
1220
|
* 解析后的环境变量(合并 envFile + process.env + config.env,按 envPrefix 过滤)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@longzai-intelligence-builder/config",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.16",
|
|
4
4
|
"private": false,
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"files": [
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
"scripts": {
|
|
19
|
-
"build": "lzi-builder",
|
|
19
|
+
"build": "bun --bun ../../node_modules/.bin/lzi-builder",
|
|
20
20
|
"build:prod": "NODE_ENV=production bun run build",
|
|
21
21
|
"prepublishOnly": "bun run build:prod",
|
|
22
22
|
"typecheck": "bun run typecheck:app && bun run typecheck:node",
|
|
@@ -31,10 +31,10 @@
|
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@longzai-intelligence-builder/esm": "0.2.
|
|
34
|
+
"@longzai-intelligence-builder/esm": "0.2.16"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
|
-
"@longzai-intelligence-builder/rolldown-plugin-dts": "0.2.
|
|
37
|
+
"@longzai-intelligence-builder/rolldown-plugin-dts": "0.2.16",
|
|
38
38
|
"hookable": "^6.1.1",
|
|
39
39
|
"rolldown": "^1.0.0"
|
|
40
40
|
}
|