@longzai-intelligence-builder/core 0.0.2 → 0.0.4
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/core/index.d.ts +1 -1
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js.map +1 -1
- package/dist/core/types.d.ts +1 -129
- package/dist/core/types.d.ts.map +1 -1
- package/dist/core/types.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +4 -2
package/dist/core/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type { BuildFormat, BuilderConfig, ConfigOptions, DepsOptions, DtsOptions, EntryConfig,
|
|
1
|
+
export type { BuildFormat, BuilderConfig, ConfigOptions, DepsOptions, DtsOptions, EntryConfig, PresetDefinition, } from './types.js';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/core/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/core/index.ts"],"names":[],"mappings":"AAAA,YAAY,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/core/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,WAAW,EACX,aAAa,EACb,aAAa,EACb,WAAW,EACX,UAAU,EACV,WAAW,EACX,gBAAgB,GACjB,MAAM,YAAY,CAAC"}
|
package/dist/core/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/core/index.ts"],"names":[],"mappings":"","sourcesContent":["export type {
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/core/index.ts"],"names":[],"mappings":"","sourcesContent":["export type {\n BuildFormat,\n BuilderConfig,\n ConfigOptions,\n DepsOptions,\n DtsOptions,\n EntryConfig,\n PresetDefinition,\n} from './types.js';\n"]}
|
package/dist/core/types.d.ts
CHANGED
|
@@ -1,130 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
/**
|
|
3
|
-
* 构建格式类型
|
|
4
|
-
*/
|
|
5
|
-
type BuildFormat = ModuleFormat | 'es' | 'cjs';
|
|
6
|
-
/**
|
|
7
|
-
* dts 配置选项
|
|
8
|
-
*/
|
|
9
|
-
type DtsOptions = {
|
|
10
|
-
/**
|
|
11
|
-
* 是否生成声明文件
|
|
12
|
-
*/
|
|
13
|
-
enabled?: boolean;
|
|
14
|
-
/**
|
|
15
|
-
* tsconfig 文件路径,未指定时由 resolveTsconfig 自动检测
|
|
16
|
-
*/
|
|
17
|
-
tsconfig?: string;
|
|
18
|
-
/**
|
|
19
|
-
* 是否生成 sourcemap
|
|
20
|
-
*/
|
|
21
|
-
sourcemap?: boolean;
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* 依赖处理选项
|
|
25
|
-
*/
|
|
26
|
-
type DepsOptions = {
|
|
27
|
-
/**
|
|
28
|
-
* 始终打包进产物的依赖
|
|
29
|
-
*/
|
|
30
|
-
alwaysBundle?: (string | RegExp)[];
|
|
31
|
-
/**
|
|
32
|
-
* 始终外部化的依赖
|
|
33
|
-
*/
|
|
34
|
-
neverBundle?: ExternalOption;
|
|
35
|
-
/**
|
|
36
|
-
* 是否跳过 node_modules 打包(库包默认 true,应用默认 false)
|
|
37
|
-
*/
|
|
38
|
-
skipNodeModulesBundle?: boolean;
|
|
39
|
-
};
|
|
40
|
-
/**
|
|
41
|
-
* builder 构建配置,基于 rolldown 的输入输出选项扩展
|
|
42
|
-
*/
|
|
43
|
-
type BuilderConfig = {
|
|
44
|
-
/**
|
|
45
|
-
* 入口配置,字符串或记录对象
|
|
46
|
-
*/
|
|
47
|
-
entry?: string | Record<string, string>;
|
|
48
|
-
/**
|
|
49
|
-
* 输出格式
|
|
50
|
-
*/
|
|
51
|
-
format?: BuildFormat[] | BuildFormat;
|
|
52
|
-
/**
|
|
53
|
-
* 输出目录
|
|
54
|
-
*/
|
|
55
|
-
outdir?: string;
|
|
56
|
-
/**
|
|
57
|
-
* 是否生成 dts 声明文件
|
|
58
|
-
*/
|
|
59
|
-
dts?: DtsOptions | boolean;
|
|
60
|
-
/**
|
|
61
|
-
* tsconfig 文件路径
|
|
62
|
-
*/
|
|
63
|
-
tsconfig?: string;
|
|
64
|
-
/**
|
|
65
|
-
* 是否压缩产物
|
|
66
|
-
*/
|
|
67
|
-
minify?: boolean;
|
|
68
|
-
/**
|
|
69
|
-
* 是否生成 sourcemap
|
|
70
|
-
*/
|
|
71
|
-
sourcemap?: boolean | 'inline';
|
|
72
|
-
/**
|
|
73
|
-
* 构建前是否清理输出目录
|
|
74
|
-
*/
|
|
75
|
-
clean?: boolean;
|
|
76
|
-
/**
|
|
77
|
-
* 输出文件扩展名
|
|
78
|
-
*/
|
|
79
|
-
outExtensions?: () => {
|
|
80
|
-
js?: string;
|
|
81
|
-
dts?: string;
|
|
82
|
-
};
|
|
83
|
-
/**
|
|
84
|
-
* 依赖处理选项
|
|
85
|
-
*/
|
|
86
|
-
deps?: DepsOptions;
|
|
87
|
-
/**
|
|
88
|
-
* 额外的 rolldown 输入选项
|
|
89
|
-
*/
|
|
90
|
-
inputOptions?: InputOptions;
|
|
91
|
-
/**
|
|
92
|
-
* 额外的 rolldown 输出选项
|
|
93
|
-
*/
|
|
94
|
-
outputOptions?: OutputOptions;
|
|
95
|
-
/**
|
|
96
|
-
* 额外的 rolldown 插件
|
|
97
|
-
*/
|
|
98
|
-
plugins?: Plugin[];
|
|
99
|
-
/**
|
|
100
|
-
* 外部依赖声明
|
|
101
|
-
*/
|
|
102
|
-
external?: InputOptions['external'];
|
|
103
|
-
};
|
|
104
|
-
/**
|
|
105
|
-
* 配置选项类型,消费方传入 defineConfig 的参数
|
|
106
|
-
*/
|
|
107
|
-
type ConfigOptions = Partial<BuilderConfig>;
|
|
108
|
-
/**
|
|
109
|
-
* 入口配置类型
|
|
110
|
-
*/
|
|
111
|
-
type EntryConfig = string | Record<string, string>;
|
|
112
|
-
/**
|
|
113
|
-
* 预设配置定义
|
|
114
|
-
*/
|
|
115
|
-
type PresetDefinition = {
|
|
116
|
-
/**
|
|
117
|
-
* 入口配置
|
|
118
|
-
*/
|
|
119
|
-
entry: EntryConfig;
|
|
120
|
-
/**
|
|
121
|
-
* 外部依赖
|
|
122
|
-
*/
|
|
123
|
-
external?: string[];
|
|
124
|
-
/**
|
|
125
|
-
* 额外配置
|
|
126
|
-
*/
|
|
127
|
-
extraConfig?: Partial<BuilderConfig>;
|
|
128
|
-
};
|
|
129
|
-
export type { BuildFormat, BuilderConfig, ConfigOptions, DepsOptions, DtsOptions, EntryConfig, ExternalOption, Plugin, PresetDefinition };
|
|
1
|
+
export type { BuildFormat, BuilderConfig, ConfigOptions, DepsOptions, DtsOptions, EntryConfig, PresetDefinition, } from '@longzai-intelligence-builder/config';
|
|
130
2
|
//# sourceMappingURL=types.d.ts.map
|
package/dist/core/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/core/types.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/core/types.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,WAAW,EACX,aAAa,EACb,aAAa,EACb,WAAW,EACX,UAAU,EACV,WAAW,EACX,gBAAgB,GACjB,MAAM,sCAAsC,CAAC"}
|
package/dist/core/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/core/types.ts"],"names":[],"mappings":"","sourcesContent":["
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/core/types.ts"],"names":[],"mappings":"","sourcesContent":["export type {\n BuildFormat,\n BuilderConfig,\n ConfigOptions,\n DepsOptions,\n DtsOptions,\n EntryConfig,\n PresetDefinition,\n} from '@longzai-intelligence-builder/config';\n"]}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type { BuildFormat, BuilderConfig, ConfigOptions, DepsOptions, DtsOptions, EntryConfig,
|
|
1
|
+
export type { BuildFormat, BuilderConfig, ConfigOptions, DepsOptions, DtsOptions, EntryConfig, PresetDefinition } from './core/types.js';
|
|
2
2
|
export { resolveTsconfig, mergeArrayConfig, normalizeExternal, mergeExternalConfig, } from './utils/index.js';
|
|
3
3
|
export { createConfigFactory } from './factories/index.js';
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,aAAa,EAAE,WAAW,EAAE,UAAU,EAAE,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,aAAa,EAAE,WAAW,EAAE,UAAU,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAEzI,OAAO,EACL,eAAe,EACf,gBAAgB,EAChB,iBAAiB,EACjB,mBAAmB,GACpB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC"}
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,eAAe,EACf,gBAAgB,EAChB,iBAAiB,EACjB,mBAAmB,GACpB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC","sourcesContent":["export type { BuildFormat, BuilderConfig, ConfigOptions, DepsOptions, DtsOptions, EntryConfig,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,eAAe,EACf,gBAAgB,EAChB,iBAAiB,EACjB,mBAAmB,GACpB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC","sourcesContent":["export type { BuildFormat, BuilderConfig, ConfigOptions, DepsOptions, DtsOptions, EntryConfig, PresetDefinition } from './core/types.js';\n\nexport {\n resolveTsconfig,\n mergeArrayConfig,\n normalizeExternal,\n mergeExternalConfig,\n} from './utils/index.js';\n\nexport { createConfigFactory } from './factories/index.js';\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@longzai-intelligence-builder/core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"type": "module",
|
|
@@ -30,7 +30,9 @@
|
|
|
30
30
|
"test:coverage": "bun test --coverage",
|
|
31
31
|
"clean": "rimraf dist out .cache"
|
|
32
32
|
},
|
|
33
|
-
"dependencies": {
|
|
33
|
+
"dependencies": {
|
|
34
|
+
"@longzai-intelligence-builder/config": "0.0.4"
|
|
35
|
+
},
|
|
34
36
|
"devDependencies": {
|
|
35
37
|
"@typescript/native-preview": "^7.0.0-dev.20260707.2"
|
|
36
38
|
},
|